[asterisk-bugs] [JIRA] Updated: (ASTERISK-20216) Bridged channels both have inbound RTP to Asterisk, but no RTP outbound from Asterisk

Rusty Newton (JIRA) noreply at issues.asterisk.org
Mon Aug 20 20:07:07 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-20216:
------------------------------------

    Component/s:     (was: General)
                 Channels/chan_sip/General
        Summary: Bridged channels both have inbound RTP to Asterisk, but no RTP outbound from Asterisk  (was: RTP is not being relayed by Asterisk between a call from a remote extension to any external number going over a SIP trunk even though the PBX is receiving RTP from both sides)

> Bridged channels both have inbound RTP to Asterisk, but no RTP outbound from Asterisk
> -------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20216
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20216
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 1.8.14.1
>         Environment: AstLinux 1.0.4, Dual core Atom D525 1.8. PBX has a public IP and connects to multiple SIP trunk providers. Remote soft phone is the Counterpath Bria Android application running on ICS. 
>            Reporter: James Babiak
>            Assignee: Matt Jordan
>            Severity: Minor
>         Attachments: example.pcap, sip-debug.txt
>
>
> I'm having an unusual issue when trying to place external calls via my remote soft phone extension (cell phone on AT&T 3G). Long story short, while the SIP traffic is passed OK, and both endpoints send RTP traffic to the PBX, the PBX does not relay either RTP stream to the other endpoint or even recognize receipt of them. The sip trace looks fine, and I confirmed the receipt of RTP traffic via packet captures. However, when I run an rtp debug, I do not see any activity on the console. This is only affecting calls from remote extensions to external numbers (ie: extension 201 remote phone calling 8005551212). If I call a local extension (ie: 123) located behind the PBX (NAT'd), it works fine. If I call an extension on the PBX (ie: a meetme conf, IVR, etc.) it works fine. If I call the remote extension in question from a local extension, it works fine as well. But if I dial a number that will go out to an external SIP Trunk, I get no audio on either side. I've tried three different SIP ITSPs, with no difference. I've also tried every possible combination of UDP/TCP/TLS and RTP/SRTP with no difference. Additionally, I just recently upgraded my PBX from Asterisk 1.4, and this problem was not present on that version. It only manifested itself after the upgrade, which leads me to believe it's a bug inside of 1.8. 
> The UA's sip.conf is setup properly, and clearly configured to stay in the media path (ie: directmedia=no, nat=yes). I've tried various codecs as well, including non-compatible combinations to even further force the PBX to transcode (ie: ulaw->g729, gsm->ulaw, etc.)
> For simplicity's sake, here is a diagram of the connection:
> Phone(10.124.255.176)---->AT&T 3G Public IP(32.163.38.200)---->PBX(71.180.124.149)---->SIP TRUNK(various public IPs)
> The PBX receives the invite with the correct IN IP4 address of 32.163.38.200. It sends out a reply with it's own address of 71.180.124.149, which is where my phone is sending the RTP.
> On the other leg of the call, to the ITSP, it sends out it's public IP, which the ITSP sends RTP to, and receives a valid address in response.
> There is nothing in front of the PBX that would block/filter/modify packets.
> Some additional information:
> In the process of troubleshooting, I tried various different scenarios. In addition to the above mentioned UDP/TCP/TLS/RTP/SRTP options, I also changed up the dialplan. I tried a straight/simple Dial() without the various macros I normally use, but that had no effect. I also tried Answering the call first and then doing the Dial, with no effect. However, when I Answered the call then Playback'd a sound clip and then Dial'd the call, THAT worked, and I was able to receive and send RTP from the PBX. So it looks like as long as the PBX starts off sending RTP itself, it's fine. However, if it's dependant on the RTP from the two sides, it gets "confused" and doesn't pass it along. In fact, Asterisk itself doesn't seem to even recognize that RTP is being received from both parties (as evident in the rtp debug).
> I spoke with various people on IRC #asterisk and no one had any ideas what was wrong. mjordan who also helped asked me to submit it here.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list