呼叫文件 Asterisk 中的多个源号码

Multiple Source Number in Call File Asterisk

我想在两个人之间打电话,这意味着我想给第一个人打电话,如果他接听电话,就拨第二个人的号码。 第一人称有多个号码,它应该一个一个地拨每个号码,直到有一个号码接听。

我正在使用呼叫文件并为第一人称使用 'Channel'(预计它应该在开始时呼叫第一人称然后呼叫第二人称)并且它使用 'Dial' 应用程序与第二人称 调用文件:
Channel:SIP/313
Context:ext-local
Application:Dial
Data:SIP/300
Priority:1
Archive:yes
Account:888000

是否可以在'Channel'中进行多次调用,然后一个一个调用?如果可以,我该如何实现?

记住,我不想要目的地号码的这个功能,我知道如何拨打多个目的地的电话(数据:SIP/300&SIP/400)

提前谢谢你,任何建议都很好:)

你可以通过拨号规则做任何你想做的事,并使用本地类型的通道。铃声组,followme,任何东西。

对于freepbx来说就是这样

Channel:Local/313@from-internal/n
Context:ext-local
Application:Dial
Data:SIP/300
Priority:1
Archive:yes
Account:888000

https://www.voip-info.org/asterisk-local-channels/

PS 我强烈建议不要自己做拨号核心,会有更多的问题。使用已知的项目,例如 vicidial.org

如果我理解正确,请在 313@ext_local 中执行此操作 ...

exten => 313,1,dial(SIP/first_extension,15)
; if dial was timed out (15s) or answered and hanguped then next priority will executed
; so next should check ${DIALSTATUS} and only if not answered dial another extension
; for example...
exten => 313,2,execif($["${DIALSTATUS}"="ANSWERED"]?hangup(16):dial(SIP/second_extension,20))
; If first dial was answered the second priority only makes a hangup (sign ?) else (sign :) second extension will be dialed