【问题标题】:Asterisk dial call warning Purely numeric hostname星号拨号警告纯数字主机名
【发布时间】:2019-06-19 11:13:52
【问题描述】:

我安装了一个 FreePbx。但我有一个问题。我想打电话给自己的手机,但我不能。

我有一个IP电话。我把他的类型从 pjsip 改成了 sip。

扩展:102

extensions.conf:

[cocugunuzukarsilayin]
exten => myphonenumber,1,Answer()
exten => myphonenumber,n,Wait(1)
exten => myphonenumber,n,Playback(custom/sound2)
exten => myphonenumber,n,Wait(1)
exten => myphonenumber,n,Hangup()

test.call

Channel: SIP/102/myphonenumber
MaxRetries: 2
RetryTime: 30
WaitTime: 15
Context: cocugunuzukarsilayin
Extension: cocugunuzukarsilayin
Priority: 2

错误:

[2019-06-19 14:08:39] WARNING[8744]: chan_sip.c:6274 create_addr: Purely numeric hostname (102), and not a peer--rejecting!
[2019-06-19 14:08:39] NOTICE[8744]: pbx_spool.c:447 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
[2019-06-19 14:08:39] WARNING[8744]: pbx_spool.c:350 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/test.call: Operation not permitted

问题出在哪里?

【问题讨论】:

    标签: call asterisk out


    【解决方案1】:

    我收到了同样的错误信息。此外,我无法拨打电话。我的消息日志的顺序如下:

    chan_sip.c: Purely numeric hostname (1001), and not a peer--rejecting!
    app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
    

    通过阅读here 提示,我终于找到了解决方案。我的问题是由 extensions.conf 中的技术类型不匹配引起的。我正在从 sip.conf 切换到 pjsip.conf。但我未能正确更新我的 extensions.conf

    exten => 1001,1,Dial(SIP/1001,20,Ttm)
    same  => n,Hangup
    

    修改如下:

    exten => 1001,1,Dial(PJSIP/1001,20,Ttm)
    same  => n,Hangup
    

    SIP 更改为 PJSIP 后,错误消息将被消除并恢复正常功能。

    【讨论】:

      【解决方案2】:

      频道格式如下:

      Channel: <Technology/Channel_Type>/<Resource/Gateway>/<Extension/Number>
      

      请检查提到的“102”是一个有效的网关。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-09-26
        • 1970-01-01
        • 2013-04-17
        • 2011-09-25
        相关资源
        最近更新 更多