0

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。然而,我错了。asterisk -rvvvvv 没有告诉我问题出在哪里。

4

2 回答 2

2

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

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

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

于 2014-05-03T16:07:36.153 回答
1

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

nat=force_rport,comedia

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

于 2014-05-07T09:45:41.787 回答