Asterisk 星号调用文件调用失败

Asterisk 星号调用文件调用失败,asterisk,channel,Asterisk,Channel,通过一些基本的星号配置,我试图生成一个自动拨号文件。尽管此调用脚本对内部号码的效果非常好,但对外部号码尝试相同的操作会导致以下错误: 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

通过一些基本的星号配置,我试图生成一个自动拨号文件。尽管此调用脚本对内部号码的效果非常好,但对外部号码尝试相同的操作会导致以下错误:

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
调用文件有一个简单的任务要做:

  • 打电话
  • 传递信息
  • 挂断
调用文件的目标: /变量/假脱机/星号/传出

调用文件(test.Call):

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
Extension.conf

[outgoing_spidey]
        exten => _X.,1,Answer()
        exten => _X.,n,Wait(2)
        exten => _X.,n,Playback(tt-monkeysintro)
        exten => _X.,n,Hangup()
我已经尽了最大努力去谷歌寻找最接近的答案,但都是徒劳的。因此,如果有任何帮助,我将不胜感激


谢谢

对调试错误消息的深入研究使事情变得更加清楚

Got SIP response 603 "Decline"
我(在我的问题中)提到,脚本中没有错误。调试错误表示Asterisk尝试使用SIP提供程序详细信息进行调用,但得到的响应为否定

我通过联系SIP提供商解决了问题。然而,我为纠正错误所做的研究让我对星号系统有了深刻的理解


希望这可以帮助一些面临类似问题的初学者。

尝试另一个外部号码,如果没有,请咨询您的
host=sip.xxxxx.com
网关提供商,了解其为何会收到繁忙信号。这似乎不是星号问题。
Got SIP response 603 "Decline"