[asterisk-bugs] [JIRA] (ASTERISK-28901) pjsip behaves incorrectly when sending RTP, it sends it to a private IP

Asterisk Team (JIRA) noreply at issues.asterisk.org
Sun May 17 08:22:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250800#comment-250800 ] 

Asterisk Team commented on ASTERISK-28901:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

> pjsip behaves incorrectly when sending RTP, it sends it to a private IP
> -----------------------------------------------------------------------
>
>                 Key: ASTERISK-28901
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28901
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.33.0, 16.10.0
>         Environment: Linux
>            Reporter: Private Name
>
> I found that the PJSIP incorrectly sends RTP back to a private address, while in the same exact circumstances the old sip channel works correctly.
> My phone is located behind a NAT, 172.16.0.0/21.
> Asterisk 16 is on a public IP.
> PJSIP has the config below:
> force_rport=yes
> direct_media=yes
> disable_direct_media_on_nat = yes
> direct_media_method=invite
> But when I send a call I see the RTP being sent to my private address, vs the public IP. This only happens when Asterisk  has dialed the call to another carrier. If instead of Dial I choose Answer() and MusicOnHold, then the RTP gets shipped to the right address.
> This is a sample of the erroneous behavior:
> Got  RTP packet from    XX.XX.XX.XX:17510 (type 00, seq 024786, ts 017440, len 000160)
> Sent RTP packet to      172.16.7.254:50798 (type 00, seq 010736, ts 017440, len 000160)
> 172.16.7.254 is my private address
> This is the call flow:
> Sostphone --->Router---->Asterisk16Public--->Asterisk16Public (musicOnHold)
> On the first Asterisk16Public I see the RTP being sent to the Private IP.
> I am uploading my PJSIP.conf
> The dialplan is: dial(${EXTEN}@asterisk)



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list