星号AGI-使用php agi发起呼叫 [英] Asterisk AGI - Originate a call using php agi
问题描述
有人知道吗,我们如何使用PHP AGI脚本发起外部号码呼叫?
Is anybody knows , how we can Originate an external number call using PHP AGI script ?
推荐答案
您有两个可能的选择.一种是使用原始"命令.参见 http://www.voip-info.org/wiki /view/Asterisk + manager + Example:+ Originate (示例).
You have got two possible options. One is use the "Originate" command. See http://www.voip-info.org/wiki/view/Asterisk+manager+Example:+Originate for an example.
由于不需要AMI,因此我喜欢我的解决方案中的另一个,它正在使用假脱机调用文件.参见 https://wiki.asterisk.org/wiki/display/AST/星号+通话+文件了解操作方法.技巧是,我对此不太强调,是在/tmp中创建假脱机文件,然后将其移动"到../spool/asterisk/outgoing目录中.
The other one, which is what I favor in my solutions, since it does not require AMI, is using spooled call files. See https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files for how to do them. The trick, and I cannot stress it enough, is to create the spool file in /tmp and then "move" the file into the ../spool/asterisk/outgoing directory.
如果您为假脱机呼叫分配了唯一的频道变量键/值,则可以使用拨号计划将其接听并适当地路由呼叫.
If you assign a unique channel variable key/value to the spooled call, you can then pick it up with your dial plan and route the call appropriately.
这篇关于星号AGI-使用php agi发起呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!