ubuntu - Asterisk 和 a2billing 通话问题

标签 ubuntu asterisk

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

我的 Asterisk 工作正常,freepbx 我可以在中继上进行分机和调用电话,内部完美......

我安装了 a2billing .. 管理员、用户、代理 .. 一切正常 - 我可以登录添加费率、中继线、模拟器获得正确的路线、费率和中继线..

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

ISDN 代码说——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.
这意味着主机(a2billing 和 Asterisk )知道调用但 activbely 拒绝路由调用.. 在模拟器中,我使用在我的 sip 上工作的相同号码。

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

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

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

我连接到 a2billing 用户,调用电话 - 静音。并且只是错误 q931(iphone 上的 zoiper)如果我使用 freepbx 扩展,我可以与任何使用 freepbx 路由的人交谈。

我按照本指南
http://www.data4ict.com/tutorials/a2billing/a2billing.asp

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

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

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

我创建了指向 var 和 usr agi-bin 文件夹的链接,以将 a2billing.php 与 lib 链接一起放置

我当前的配置就像 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)



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

或者有没有准备好去a2billing发行版我不知道也许..

最佳答案

您遇到了 PHPAGI 无法正确连接回 Asterisk 的问题。

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

A2Billing 不是很容易设置。

另外,尝试通过在控制台中输入来调试 Asterisk
asterisk -rvvvvvvvvvvvvvvv
并阅读它在屏幕上记录的所有内容,所有 v将它设置为最高的详细级别,这样它就会一步一步地告诉你发生的一切

祝你好运

关于ubuntu - Asterisk 和 a2billing 通话问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8428848/

相关文章:

linux - clone()/fork()/进程创建在某些机器上很慢

linux - 在 Linux 中使用 AD 组进行颠覆?

c# - 从 Asterisk 12 获取所有事件

linux - 在没有硬件调制解调器的 Linux 上模拟 PSTN 或 GS​​M

mysql - 如何在 char 列中选择真正的 MAX 整数?

rest - Asterisk ARI 创建外呼

linux - 通过grandstream FXO GXW4108 FXO设备在Freepbx上呼出

ubuntu - sshd preauth child 被信号 31 终止

mongodb - 通过命令行正确卸载 MongoDB

ubuntu - 安装本地版本的 postman-to-k6 会导致 npm 错误