[asterisk-bugs] [JIRA] (ASTERISK-27341) [patch] res_pjsip_session: SIP/SDP origin (o=) contains local address.
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Wed Dec 20 12:59:17 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-27341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-27341:
-------------------------------------
Target Release Version/s: 13.19.0
> [patch] res_pjsip_session: SIP/SDP origin (o=) contains local address.
> ----------------------------------------------------------------------
>
> Key: ASTERISK-27341
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27341
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip_session
> Affects Versions: 13.18.0, 14.7.0, 15.1.0
> Reporter: Alexander Traud
> Severity: Minor
> Labels: pjsip
> Target Release: 13.19.0
>
> Attachments: pjsip_dynamic_external_media_address_for_origin.patch
>
>
> Since 1st of August 2017 ([Commit 114602f|http://github.com/asterisk/asterisk/commit/114602f43436b91bb043f832285180e74332c941], [Gerrit 6068|http://gerrit.asterisk.org/6068]) in the upcoming Asterisk 13.18.0, I am able to use the channel driver based on PJSIP not only behind a NAT but also with my daily changing IP, by using my domain name for {{external_media_address}} and {{external_signaling_address}}. See also the [Wiki…|http://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip+to+work+through+NAT]
> However, the current implementation changes only the connection address (c=) in SDP, not the originator of the session (o=). Therefore, o= contains the local address of my Asterisk, for example IP4 192.168.x.x. However, [RFC 4566|http://tools.ietf.org/html/rfc4566#section-5.2] (and its predecessor RFC 2327) state:
> bq. A local IP address MUST NOT be used in any context where the SDP description might leave the scope in which the address is meaningful \[…\].
> Nevertheless, local addresses are accepted by many (all?) VoIP/SIP user agents in that place. Anyway, to be compliant with that RFC, I would have to set the attribute {{media_address}} on each endpoint, which requires the current IP address and does not allow a domain name. Consequently, to be compliant with the RFC, I would have to overwrite/disable that new dynamic IP feature of {{external_media_address}}.
> The attached patch also rewrites the origin address.
> Not sure, which affected versions I should mention in the issue tracker. Because I am not aware of any implementation which is affected by this, I classified the severity as Minor. If somebody knows an implementation, please, raise the severity here.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list