首页 > 解决方案 > 拨号后继续执行上下文的下一个扩展

问题描述

在 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 优先级继续。

标签: asterisk

解决方案


据我所知,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

推荐阅读