<p>Vitezslav Novy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6419">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip: Do not change IP address in SDP origin line (o=) in SIP reINVITE<br><br>If directmedia=yes is configured, when call is answered, asterisk sends reINVITE<br>to both parties to set up media path directly between the endpoints.<br>In this reINVITE msg SDP origin line (o=) contains IP address of endpoint<br>instead of IP of asterisk. This behavior violates RFC3264, sec 8:<br>"When issuing an offer that modifies the session,<br>the "o=" line of the new SDP MUST be identical to that in the<br>previous SDP, except that the version in the origin field MUST<br>increment by one from the previous SDP."<br>This patch assures IP address of astrisk is always sent in<br>SDP origin line.<br><br>ASTERISK-17540<br>Reported by: saghul<br><br>Change-Id: I533a047490c43dcff32eeca8378b2ba02345b64e<br>---<br>M channels/chan_sip.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/19/6419/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_sip.c b/channels/chan_sip.c<br>index b19c669..ee0eb67 100644<br>--- a/channels/chan_sip.c<br>+++ b/channels/chan_sip.c<br>@@ -13517,7 +13517,7 @@<br> p->sessionid, p->sessionversion,<br> (ast_sockaddr_is_ipv6(&dest) && !ast_sockaddr_is_ipv4_mapped(&dest)) ?<br> "IP6" : "IP4",<br>- ast_sockaddr_stringify_addr_remote(&dest));<br>+ ast_sockaddr_stringify_addr_remote(&p->ourip));<br> <br> snprintf(connection, sizeof(connection), "c=IN %s %s\r\n",<br> (ast_sockaddr_is_ipv6(&dest) && !ast_sockaddr_is_ipv4_mapped(&dest)) ?<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6419">change 6419</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6419"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I533a047490c43dcff32eeca8378b2ba02345b64e </div>
<div style="display:none"> Gerrit-Change-Number: 6419 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vitezslav Novy <a1@vnovy.net> </div>