【问题标题】:How to update my Asterisk Dial-Plan for combination of Telephone Number?如何更新我的 Asterisk 拨号计划以组合电话号码?
【发布时间】:2015-08-23 02:48:48
【问题描述】:

我正在尝试为给定号码的传入/传出创建拨号计划:

+xx xxx [xxxxxxxxx|xxxxxxxx]

我已经在sip.conf中配置了我的服务商信息

[sipprovider]
type=friend
secret=xxxxx
defaultusername=xxxxx
host=xxx.xx.xx.xxx
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
allow=gsm
insecure=port,invite
;fromdomain=xxx.xx.xx.xxx
context=default
nat=yes

现在,我想创建呼入/呼出中继,我的分机允许拨打国际电话和给定号码收到的来电。

+xx xxx [xxxxxxxxx|xxxxxxxx]

[default]
    switch => Realtime

    exten => 55,1,Verbose(1,Echo test application)
    exten => 55,n,Dial(SIP/sipprovider/0091XXXXX99999@sipprovider); Here is the outbound call, the exact dialstring depends on outgoing provider and channeltype
    exten => 55,n,Hangup()

显示:呼叫.... 然后,VM 播放:Person you are calling is unavailable

星号控制台:

== Using SIP RTP CoS mark 5
    -- Executing [55@default:1] Verbose("SIP/3001-00000029", "1,Echo test application") in new stack
 Echo test application
    -- Executing [55@default:2] Dial("SIP/3001-00000029", "SIP/sipprovider/0091XXXXX99999@sipprovider") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/sipprovider/0091XXXXX99999@sipprovider
[Aug 17 18:29:02] WARNING[32467]: chan_sip.c:4024 retrans_pkt: Retransmission timeout reached on transmission 78a9b28011fd522601047c9317adca91@xx.xx.xx.xx:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
[Aug 17 18:29:02] WARNING[32467]: chan_sip.c:4053 retrans_pkt: Hanging up call 78a9b28011fd522601047c9317adca91@xx.xx.xx.xx:5060 - no reply to our critical packet (see https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions).
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [55@default:3] Hangup("SIP/3001-00000029", "") in new stack
  == Spawn extension (default, 55, 3) exited non-zero on 'SIP/3001-00000029'
    -- Executing [h@default:1] Verbose("SIP/3001-00000029", "Hangup...") in new stack
Hangup...

【问题讨论】:

    标签: linux asterisk telecommunication


    【解决方案1】:

    基本上,拨号字符串可以是 'SIP/devicename/extension' 或 'SIP/username@host' 格式。 SIP/sipprovider/0091XXXXX99999@sipprovider 错了。

    “已达到重传超时”表示星号尝试向 sipprovider 发送 INVITE,但无法访问 sipprovider 的 SIP 端口 (5060 UDP)。您可以在 SIP 调试中看到这一点。

    【讨论】:

    • 感谢您的快速响应,就像我的情况一样,在 sip.conf 文件中的sipprovider 添加了主机详细信息并在拨号计划中添加为SIP/sipprovider/${EXTEN},因为传出不起作用,正如您告诉 5060 UDP 是不可访问的。我需要在 linux 的防火墙/NAT 中做任何配置吗?
    • 你可以ping sipprovider。如果有响应,您可以联系您的 sipproviders 支持并询问他们在您尝试通过此中继呼叫时是否看到 SIP 数据包。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多