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

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

问题描述

有谁知道调试 asterisk 的 agi secript (a2billing.php) 所需的步骤.如果我从 linux 控制台调用它,我可以远程调试 php cli.但如果它从 asterisk 内运行,它就不起作用.

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 的调试模式,你必须去 config,并在 agi-confX 中 put verbose ->DEBUG(see comments)

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.

附言一般来说,聘请有 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.

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

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