【问题标题】:Asterisk cannot hear sound on specific WIFI networkAsterisk 在特定的 WIFI 网络上听不到声音
【发布时间】:2014-05-03 10:30:15
【问题描述】:

Asterisk 11 无法在特定的 WIFI 网络上传递主叫和被叫语音。

WIFI 手机 ==> 4G LTE 手机(可以听到声音/工作)

== Using SIP RTP CoS mark 5
-- Called SIP/01036504100
-- SIP/01036504100-00000594 is ringing
-- SIP/01036504100-00000594 answered SIP/01010001004-00000593
-- Locally bridging SIP/01010001004-00000593 and SIP/01036504100-00000594
   > 0x7f5a401b6800 -- Probation passed - setting RTP source address to 1XX.63.12.134:7076
   > 0x7f5a401b6800 -- Probation passed - setting RTP source address to 1XX.63.12.134:7076
   > 0x7f5a3800bf90 -- Probation passed - setting RTP source address to 2XX.62.163.73:51658

3G 手机 ==> 4G LTE 手机(可以听到声音/工作)

== Using SIP RTP CoS mark 5
-- Called SIP/01088143268
-- SIP/01088143268-00000596 is ringing
-- SIP/01088143268-00000596 answered SIP/01036504100-00000595
-- Remotely bridging SIP/01036504100-00000595 and SIP/01088143268-00000596
   > 0x7f5a3800bf90 -- Probation passed - setting RTP source address to 3X.7.29.226:2779
   > 0x7f5a40017050 -- Probation passed - setting RTP source address to 2XX.62.163.73:51944
   > 0x7f5a3800bf90 -- Probation passed - setting RTP source address to 3X.7.29.226:2779

另一部 WIFI 手机 ==> 4G LTE 手机(听不到声音/不工作)

== Using SIP RTP CoS mark 5
-- Called SIP/01036504100
-- SIP/01036504100-00000598 is ringing
-- SIP/01036504100-00000598 answered SIP/01088143268-00000597
-- Remotely bridging SIP/01088143268-00000597 and SIP/01036504100-00000598
   > 0x7f5a40116470 -- Probation passed - setting RTP source address to 5X.237.58.102:7076
   > 0x7f5a40116470 -- Probation passed - setting RTP source address to 5X.237.58.102:7076
   > 0x7f5a38027a20 -- Probation passed - setting RTP source address to 2XX.62.163.73:52040
   > 0x7f5a38027a20 -- Probation passed - setting RTP source address to 2XX.62.163.73:52040

我在想也许我只打开 10,000 到 20,000 之间的 UDP。然而,我错了。星号 -rvvvvv 没有告诉我问题出在哪里。

【问题讨论】:

    标签: wifi sip asterisk 3g 4g


    【解决方案1】:

    通过打开控制台检查 SIP 和 RTP 调试日志:sip set debug onrtp set debug on

    通过这种方式,您可以找出 RTP 音频流的哪一段没有到达它应该到达的地方。这主要是由 NAT 问题引起的(请参阅sip.conf 的 NAT 部分。

    如果您看不到来自电话的传入 RTP 数据包,则可能是防火墙阻止了流量或存在 NAT 问题。

    【讨论】:

      【解决方案2】:

      我将用户的 nat 值更改为“force_rport,comedia”,现在两个用户都可以听到声音了。

      nat=force_rport,comedia
      

      很奇怪,nat = yes 和 nat = force_rport,comdia 应该是一样的,但是第二个是在 Asteirks 11 上工作。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-09-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-02
        相关资源
        最近更新 更多