<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6794">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_session: Rewrite o= with dynamic external_media_address.<br><br>PJSIP allows a domain name as external_media_address. This allows chan_pjsip to<br>be used behind a NAT with changing IP addresses. This change resolves that<br>domain name not only to the IP address of the c= but also the o= line in a SDP.<br><br>Asterisk-27341 #close<br><br>Change-Id: I690163b6e762042ec38b3995aa5c9bea909d8ec4<br>---<br>M res/res_pjsip_session.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/94/6794/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 d8789ae..55cdf2b 100644<br>--- a/res/res_pjsip_session.c<br>+++ b/res/res_pjsip_session.c<br>@@ -4006,6 +4006,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, ast_sockaddr_stringify_host(&transport_state->external_media_address));<br> }<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6794">change 6794</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/6794"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I690163b6e762042ec38b3995aa5c9bea909d8ec4 </div>
<div style="display:none"> Gerrit-Change-Number: 6794 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>