以下几种写法都可以:
<action application="bridge" data="sofia/gateway/${distributor(<listname> ${sofia(profile <profilename> gwlist down)})}/$1"/>
<action application="bridge" data="sofia/gateway/${distributor <listname> ${sofia profile <profilename> gwlist down}}/$1"/>
<action application="bridge" data="sofia/gateway/${expand(distributor <listname> \${sofia(profile <profilename> gwlist down)})}/$1"/>
API命令如下:
expand distributor <listname> ${sofia profile <profilename> gwlist down}
本文探讨了在Asterisk中使用Sofia Gateway进行呼叫路由的不同写法,包括使用distributor和expand函数来动态选择网关的方法,以及相关的API命令。
1009

被折叠的 条评论
为什么被折叠?



