【问题标题】:DEVICE_STATE(SIP/mypeer) in Asterisk returning only UNAVAILABLE and NOT_INUSE, not returning other status why?Asterisk 中的 DEVICE_STATE(SIP/mypeer) 只返回 UNAVAILABLE 和 NOT_INUSE,为什么不返回其他状态?
【发布时间】:2015-02-26 07:00:59
【问题描述】:

DEVICE_STATE(SIP/mypeer) 仅返回 UNAVAILABLENOT_INUSE,但不返回其他可用选项,例如 UNKNOWNINUSEBUSYINVALIDRINGING、@9876543329@、@987645 @。

exten=>1,NoOp(SIP/mypeer has state ${DEVICE_STATE(SIP/mypeer)})
same=>2,ExecIf($[${DEVICE_STATE(SIP/mypeer)}=NOT_INUSE]?Goto(5):Goto(2))

在这里,我期待device_state 应该返回busyringinginuseonholdmypeer,同时接到第二个电话,但我只收到UNAVAILABLENOT_INUSE输出。

我已经设置了callcounter=yescall-limit=1000。我现在该怎么办?

【问题讨论】:

    标签: asterisk sip pbx


    【解决方案1】:

    你已经添加

    qualify=yes
    

    如果您想获得其他状态,请发送给您的同行。

    【讨论】:

      【解决方案2】:

      callcounter=yes 在 [general] 部分 sip.conf

      【讨论】:

      • 能否请您为您的答案添加更多上下文。仅代码的答案很难理解。如果您可以在帖子中添加更多信息,这将对提问者和未来的读者都有帮助。
      【解决方案3】:

      如官方页面所述: asterisk chan_sip state and presence

      必须为 SIP 设备(例如 SIP/Alice)启用 sip.conf 中的 callcounter 选项以提供高级设备状态。如果没有它,您可能会看到一些状态,例如不可用或空闲,但不会更多。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-03-16
        • 1970-01-01
        • 2019-02-15
        • 1970-01-01
        • 2012-12-06
        • 2012-08-27
        • 2022-12-07
        • 2023-04-05
        相关资源
        最近更新 更多