我尝试配置FreeSwitch。
我希望桥接呼叫并限制持续时间,对于样本,最多30秒。 我该怎么办?
此配置只允许无限制通话。
<extension name="Test4">
<condition field="destination_number" expression="^00(\d+)$">
<action application="bridge" data="sofia/gate1/011$1@x.x.x.x"/>
</condition>
</extension>
或者可以用另一种方式完成吗?
答案 0 :(得分:1)
也许你已经弄明白了,但这里的答案仅供参考。
在桥接之前,设置app:
<action application="sched_hangup" data="+60"/>
<action application="bridge" data="sofia/gate1/011$1@x.x.x.x"/>
但这会在60秒后挂断,包括设置通话和振铃的时间。如果你想在建立电话后60秒内挂机而不是你需要在答案上执行指令:
<action application="set" data="execute_on_answer=sched_hangup +60" />
<action application="bridge" data="sofia/gate1/011$1@x.x.x.x"/>
您还可以在FS维基上阅读更多关于它的细节: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_hangup