asterisk - 拨号后继续执行上下文的下一个扩展
问题描述
在 dial() 呼叫被应答后,我想继续执行以下上下文的下一个扩展。
[sondage-80]
exten => 78767239,1,Answer(500)
same => 2, Set(CHANNEL(language)=moore)
same => 3, Dial(sip/2700, 20, G)
same => 4,AGI(test.php,1612198672)
same => 5,Hangup()
如果 Dial(sip/2700) 被应答,则立即在下一个分机中以 4 优先级继续。
解决方案
据我所知,G 需要一个目标。所以试试...
same => 3, Dial(sip/2700, 20, G(4))
...然后呼叫者在接听优先级 4 的呼叫和被呼叫者接听优先级 4+1 后继续。所以如果你想让被调用者去 AGI 那么......
same => 4,Hangup() ; Hangup the caller and...
same => 5,AGI(test.php,1612198672) ; ...this is for callee
推荐阅读
- autodesk-forge - Autodesk 用户管理 API
- javascript - 当我最小化窗口时,如何控制应该显示图像的哪些部分?
- python - 如何返回字符串向量匹配的numpy矩阵行的索引?
- python - Python 3.7.3 路径和 VS 代码冲突
- python - 如何使用 AWS CLI 创建 python AWS Lambda 函数?
- javascript - 如何从 php 中的 soundcloud 剧集获取最新剧集?
- php - 如何根据 ID 回显 WordPress 图像
- snapchat - Snapkit 中的friendUserId 是什么?
- r - 使用 R 从论坛抓取网页,如何删除以前用户的引用并导航到下一页?
- python-3.x - 为什么我无法在 Mac 上显示 Tkinter Python 中按钮的背景颜色?