【发布时间】:2017-02-20 23:55:02
【问题描述】:
通过一些基本的 Asterisk 配置,我正在尝试生成一个自动拨号文件。虽然这个呼叫脚本对内部号码工作得很好,但对外部号码尝试同样的操作会导致以下错误:
Attempting call on SIP/provider/0049176xxxxxxx for 0049176xxxxxx@outgoing_spidey:1 (Retry 1)
== Using SIP RTP CoS mark 5
-- Called provider/0049176xxxxxx
-- Got SIP response 603 "Decline" back from 9xx.1xx.1xx.2xx:5060
-- SIP/provider-00000000 is busy
[Feb 20 12:16:37] NOTICE[32721]: pbx_spool.c:413 attempt_thread: Call failed to go through, reason (5) Remote end is Busy
调用文件有一个简单的任务要做:
- 拨打电话
- 发送消息
- 挂断
调用文件的目的地: /var/spool/asterisk/outgoing
调用文件(test.call):
Channel: SIP/provider/0049176xxxxxx
CallerID: 0221223366
MaxRetries: 1
RetryTime: 600
WaitTime: 30
Context: outgoing_spidey
Extension: 0049176xxxxxx
Priority: 1
Sip.conf
[provider]
type=friend
context=provider
allow=ulaw,alaw
secret=xxxxxx
host=sip.xxxxx.com
nat=force_rport,comedia
insecure=invite
fromdomain=sip.xxx.com
defaultuser=sipuser
扩展.conf
[outgoing_spidey]
exten => _X.,1,Answer()
exten => _X.,n,Wait(2)
exten => _X.,n,Playback(tt-monkeysintro)
exten => _X.,n,Hangup()
已尽我所能在谷歌上搜索任何最接近的答案,但都是徒劳的。因此,我将不胜感激。
谢谢
【问题讨论】:
-
尝试另一个外部号码,如果没有,请咨询您的
host=sip.xxxxx.com网关提供商为什么它会收到忙音。这似乎不是星号问题。