[asterisk-bugs] [JIRA] (ASTERISK-26851) pjsip rtp sessions use wrong source address on multi-homed hosts

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Mar 10 00:12:10 CST 2017


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

Asterisk Team commented on ASTERISK-26851:
------------------------------------------

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].

> pjsip rtp sessions use wrong source address on multi-homed hosts
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-26851
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26851
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_sdp_rtp
>    Affects Versions: 13.14.0
>         Environment: Centos 7
>            Reporter: Richard Begg
>            Severity: Minor
>
> When establishing an RTP session, unless the endpoint has a defined media_address, pjsip will bind the local socket to a wildcard address.  This works fine where we can rely on the OS routing table to determine the correct interface, however it doesn't necessarily provide the correct behaviour in situations where there are multiple interfaces - especially if the host has multiple IP addresses on the same subnet (common in HA deployments).
> If the endpoint is bound to a transport which is then bound to a specific local IP address, I would expect that the RTP socket should follow the behaviour of the SIP socket and ensure that all traffic is sent/received from this address.  Unfortunately this is not what happens.
> Attached is a patch which attempts to fix this.  In short, in the absence of a media_address on the endpoint, and if the transport has a bound IP address - it will use this address for the local end of the RTP socket.
> Note: This issue is probably a duplicate of that logged in the closed ticket: ASTERISK-26656.



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



More information about the asterisk-bugs mailing list