我正在使用 phpAgi 编写拨号计划,在某些情况下它应该拒绝错误代码为 503(服务不可用)的 SIP 呼叫
我很感激你的帮助
答案1
使用拥塞命令
pro-sip*CLI> core show application Congestion
-= Info about application 'Congestion' =-
[Synopsis]
Indicate the Congestion condition.
[Description]
This application will indicate the congestion condition to the calling
channel.
[Syntax]
Congestion([timeout])
[Arguments]
timeout
If specified, the calling channel will be hung up after the specified
number of seconds. Otherwise, this application will wait until the calling
channel hangs up.
[See Also]
Busy(), Progress(), Playtones(), Hangup()
答案2
Hangup(34) 就可以了。
exten => _NXXNXXXXXX,n,Hangup(34)