<p>Christian Savinovich has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8760">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_session: Rewrite o= with external_media_address.<br><br>This change fixes an issue that was addressed but not<br>adequately fixed in ASTERISK-27341.<br>It now correctly appends the external IP address on the<br>o= line of the SDP packet<br><br>ASTERISK-27614 #close<br><br>Change-Id: I84f3360f3606b8c4e8d161edb228799ec0b8a302<br>---<br>M res/res_pjsip_session.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/60/8760/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c<br>index 982fd28..26e5c39 100644<br>--- a/res/res_pjsip_session.c<br>+++ b/res/res_pjsip_session.c<br>@@ -3168,7 +3168,7 @@<br> if (ast_sip_transport_is_local(transport_state, &our_sdp_addr) || !transport_state->localnet) {<br> ast_debug(5, "Setting external media address to %s\n", ast_sockaddr_stringify_host(&transport_state->external_media_address));<br> pj_strdup2(tdata->pool, &sdp->conn->addr, ast_sockaddr_stringify_host(&transport_state->external_media_address));<br>- pj_strdup2(tdata->pool, &sdp->origin.addr, transport->external_media_address);<br>+ pj_strassign(&sdp->origin.addr, &sdp->conn->addr);<br> }<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8760">change 8760</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/8760"/><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: I84f3360f3606b8c4e8d161edb228799ec0b8a302 </div>
<div style="display:none"> Gerrit-Change-Number: 8760 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Christian Savinovich <csavinovich@digium.com> </div>