Asterisk 和 a2billing 通话问题

发布于 2024-12-20 04:55:08 字数 2481 浏览 0 评论 0原文

在过去的 4 天里,我一直在尝试让 a2billing 工作,我遵循了 4 个教程,它们都让我对事情的工作原理有了一些了解.. 但 a2billing 仍然无法工作..

我的 Asterisk 工作正常,freepbx 我可以拨打分机并在中继上拨打电话,内部结构完美...

我安装了a2billing..管理员,用户,代理..所有的工作 - 我可以登录添加费率,中继,模拟器得到正确的路线、费率和中继..

我可以让用户使用 sip 设备登录..但是看在上帝的份上..每次我拨号时都会收到错误 q931_disconnect_code_21

ISDN 代码说-- 原因 21 - 呼叫被拒绝。 该原因表明发送该原因的设备不希望接受该呼叫。尽管它可以接受呼叫,因为发送此原因的设备既不忙也不不兼容。该原因也可能是由网络产生的,表明呼叫由于补充服务限制而被清除。诊断字段可能包含有关补充服务和拒绝原因的附加信息。

这意味着主机(a2billing 和星号)知道呼叫,但主动拒绝路由呼叫。在模拟器中,我使用与在我的啜饮中起作用。

我使用的是 Ubuntu 10.4LTS - Asterisk 是使用 apt-get 安装的 -> /usr/share/asterisk 但我也有一个 /var/lib/asterisk

我做了一个 ln -s 到 /usr/src/a2billing/AGI/a2billing.php /usr/share/asterisk/agi-bin (星号conf将其定义为 agi 位置和 freepbx 时间,freebpx echo 有效)

另一个问题是 a2billing 没有创建 1 个单个日志文件,我无法确定到底发生了什么(权限是设置写入全局并属于星号).. 星号日志是干净的.. sip、中继都已注册。

我连接到 2billing 用户,拨打电话——沉默。如果我使用 freepbx 扩展,则错误 q931(iphone 上的 zoiper)我可以与任何使用 freepbx 路由的人交谈。

我遵循了这个指南 http://www.data4ict.com/tutorials/a2billing/a2billing.asp

基本上我跳过了 freepbx 的图片,所以它只是星号直接到 a2billing.. 所有的步骤和验证就像他展示的那样(除了我使用/usr/share/asterisk 而不是 /var/lib/asterisk... ??.. 一步一步的白痴教程,我仍然无法让它工作。

我将所有版本设置为 1_6,权限很好 - 我什至编写了测试。进入 a2billing_agi.log 并显示管理端的测试字符串..但从未将任何内容写入日志文件

apache2 运行为 www-data:www-data 。 asterisk 运行为 asterisk:asterisk freepbx(我暂时禁用它,但以星号运行)

我将 var 和 usr agi-bin 文件夹链接回放置 a2billing.php 和 lib 链接,

我当前的配置类似于 turorial 扩展、sips、iax 中的配置'作为

~# php -v PHP 已弃用:以 '#' 开头的注释已弃用 /etc/php5/cli/conf.d/mcrypt.ini 位于 Unknown on line 0 PHP 中的第 1 行 5.3.2-1ubuntu4.10 与 Suhosin-Patch (cli)(构建时间:2011 年 10 月 15 日 00:09:58) 版权所有 (c) 1997-2009 PHP Group Zend Engine v2.3.0, 版权所有 (c) 1998-2010 Zend Technologies

asterisk -v Asterisk 1.8.8.0~rc4-1digium0+1~lucid,版权所有 (C) 1999 - 2011 Digium, Inc. 等。由 Mark Spencer 创建 Asterisk 不附带任何保证;类型 '核心显示保修'了解详细信息。这是免费软件,带有 根据 GNU 通用公共许可证版本 2 许可的组件和 其他许可证;欢迎您在某些情况下重新分发它 状况。输入“核心表演许可证”了解详细信息。 =================================================== ======================= 以组“asterisk”运行 以用户“asterisk”运行 无法 访问运行目录(权限被拒绝)。更改为“/” 兼容性。星号已经在运行 /var/run/asterisk/asterisk.ctl。使用“asterisk -r”进行连接..

星号1.8.8.0~rc4-1digium0+1~lucid

A2Billing 1.9.4(Cuprum)

有没有人对如何调试正在发生的事情有任何建议。也许如果我能让日志工作会有所帮助..我现在真的很沮丧..5天后。

或者是否有一个我不知道的现成的 2billing 发行版..

I have been trying to get a2billing to work for the past 4 days now, i followed 4 tutorials and they all gave me some insight into how things work.. but the a2billing is still not working..

my Asterisk works fine, freepbx i can make extension and place calls on trunks, internals perfect...

I installed a2billing.. the admin,user,agents.. all that works - i can log in add rates,trunks, the simulator get the correct routes,rates and trunks..

I can make a user log in using a sip device.. but for the love of god.. every single time i dial I get error q931_disconnect_code_21

ISDN Code says--
Cause No. 21 - call rejected.
This cause indicates that the equipment sending this cause does not wish to accept this call. although it could have accepted the call because the equipment sending this cause is neither busy nor incompatible. This cause may also be generated by the network, indicating that the call was cleared due to a supplementary service constraint. The diagnostic field may contain additional information about the supplementary service and reason for rejection.

Which means the host(a2billing and asterisk) knows about the call but activbely denied routing the call.. IN the simulator i use the same number that works in there on my sip.

I am on Ubuntu 10.4LTS - Asterisk was installed using apt-get -> /usr/share/asterisk but i also have a /var/lib/asterisk

i made a ln -s to /usr/src/a2billing/AGI/a2billing.php /usr/share/asterisk/agi-bin (the asterisk conf defines this as the agi location-and freepbx time,freebpx echo works)

Another problem is that a2billing has not made 1 single log file and i cannot determine what the heck is going on(the permissions are set write global and belong to asterisk).. asterisk logs are clean.. sip, trunks are all registered.

I connect to a2billing user, place call-- silence. and just error q931(zoiper on iphone) if i use the freepbx extension i can talk with anybody iusing freepbx routes.

I followed this guide
http://www.data4ict.com/tutorials/a2billing/a2billing.asp

basically i skipped freepbx out of the picture, so its just asterisk direct to a2billing.. and all the steps and verifications are just like he shows (execpt i use /usr/share/asterisk instead of /var/lib/asterisk... ??.. step by step idiot tutorial and i still cant get it working.

I set all the version to 1_6, permissions are good- i even wrote test into the a2billing_agi.log and it shows the test string on the admin end.. but never writes anything to the log file.

apache2 runs runs as www-data:www-data
asterisk runs as asterisk:asterisk
freepbx (i disabled it for now but runs as asterisk)

I made links to both var and usr agi-bin folder back to placed the a2billing.php with the lib link

my current config is like the ones in the turorial extensions,sips,iax'as

~# php -v PHP Deprecated: Comments starting with '#' are deprecated in
/etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 PHP
5.3.2-1ubuntu4.10 with Suhosin-Patch (cli) (built: Oct 15 2011 00:09:58) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0,
Copyright (c) 1998-2010 Zend Technologies

asterisk -v Asterisk 1.8.8.0~rc4-1digium0+1~lucid, Copyright (C) 1999
- 2011 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type
'core show warranty' for details. This is free software, with
components licensed under the GNU General Public License version 2 and
other licenses; you are welcome to redistribute it under certain
conditions. Type 'core show license' for details.
========================================================================= Running as group 'asterisk' Running as user 'asterisk' Unable to
access the running directory (Permission denied). Changing to '/' for
compatibility. Asterisk already running on
/var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect..

Asterisk 1.8.8.0~rc4-1digium0+1~lucid

A2Billing 1.9.4 (Cuprum)

Has anybody have any suggestion how to debug what is going on. Maybe if i can jsut get the logs to work that will help.. I am really bumbed out now .. 5days later.

Or is there a ready to go a2billing distro i dont know about maybe..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚雾 2024-12-27 04:55:08

您遇到 PHPAGI 无法正确连接回星号的问题。

使用 FreePBX 将分层,freepcb 中的任何扩展将不适用于 A2Billing,除非您使用自定义扩展路由。

A2Billing 设置起来并不容易。

另外,尝试通过在控制台中输入

asterisk -rvvvvvvvvvvvvvvv

来调试 Asterisk并读取它记录回屏幕的内容,所有 v 将其设置为最高详细级别,因此它会一步一步告诉你发生的一切

祝你好运

You have a problem with the PHPAGI not connecting properly back to asterisk.

Using FreePBX will be layered out, any extensions in freepcb will not apply in A2Billing unless you use custom extension routes.

A2Billing is not very easy to setup.

Also, try to debug Asterisk by typing in the console

asterisk -rvvvvvvvvvvvvvvv

And read what it logs back to screen, all the v set it to the higherst verbosity level, so it will tell you everything that happens step by step

Good Luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文