星号agi(php)文件调试 [英] asterisk agi (php) file debugging

查看:121
本文介绍了星号agi(php)文件调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道调试asterisk的agi secript(a2billing.php)所需的步骤。如果我将其称为linux控制台,则可以远程调试php cli。

does anyone know the steps required to debug the agi secript (a2billing.php) of asterisk . I am able to remote debug php cli if i call it form the linux console. but if it runs from within asterisk , it does not work.

不知道如何调试它吗?

推荐答案

要打开a2billing的调试模式,您必须先进行配置,然后在agi-confX中放入详细信息-> DEBUG(请参阅注释)

To turn debug mode of a2billing you have to go config, and in agi-confX put verbose ->DEBUG(see comments)

之后,您可以检查a2billign调试文件(在/etc/a2billng.conf中指定)或从控制台执行

After that you can check a2billign debug file(specified in /etc/a2billng.conf) or do from console

asterisk -r
agi set debug on
core set verbose 4

足够的信息来调试脚本。它显示了调用消息的行和文件,因此您可以检查那些文件并与日志进行比较。

that will typicaly give you enought info to debug script. it show lines and files where message invoked, so you can check thoose files and compare with log.

p.s。总的来说,雇用具有a2billign经验的人是一个好主意。在大多数情况下,花费少得多然后了解a2billing的逻辑,这并不总是很清楚。

p.s. in general it is nice idea hire someone with a2billign experience. in most cases that will cost you MUCH less then understand logic of a2billing, it is not always clear.

这篇关于星号agi(php)文件调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆