[Asterisk-code-review] res pjsip session: Rewrite o= with dynamic external media ad... (asterisk[master])
Alexander Traud
asteriskteam at digium.com
Fri Oct 13 09:45:37 CDT 2017
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/6792
Change subject: res_pjsip_session: Rewrite o= with dynamic external_media_address.
......................................................................
res_pjsip_session: Rewrite o= with dynamic external_media_address.
PJSIP allows a domain name as external_media_address. This allows chan_pjsip to
be used behind a NAT with changing IP addresses. This change resolves that
domain name not only to the IP address of the c= but also the o= line in a SDP.
Asterisk-27341 #close
Change-Id: I690163b6e762042ec38b3995aa5c9bea909d8ec4
---
M res/res_pjsip_session.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/92/6792/1
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index d8789ae..55cdf2b 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -4006,6 +4006,7 @@
if (ast_sip_transport_is_local(transport_state, &our_sdp_addr) || !transport_state->localnet) {
ast_debug(5, "Setting external media address to %s\n", ast_sockaddr_stringify_host(&transport_state->external_media_address));
pj_strdup2(tdata->pool, &sdp->conn->addr, ast_sockaddr_stringify_host(&transport_state->external_media_address));
+ pj_strdup2(tdata->pool, &sdp->origin.addr, ast_sockaddr_stringify_host(&transport_state->external_media_address));
}
}
--
To view, visit https://gerrit.asterisk.org/6792
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I690163b6e762042ec38b3995aa5c9bea909d8ec4
Gerrit-Change-Number: 6792
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171013/37347201/attachment.html>
More information about the asterisk-code-review
mailing list