[asterisk-commits] file: branch 13 r425132 - in /branches/13: ./ res/res_pjsip_nat.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 10 07:10:21 CDT 2014
Author: file
Date: Fri Oct 10 07:10:19 2014
New Revision: 425132
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=425132
Log:
res_pjsip_nat: Place source port into rport of responses if 'force_rport' is on.
When the 'force_rport' option is enabled the behavior should be the same
as if the remote side placed rport into the message themselves. Therefore
any responses we send should include the source port of the request in the
rport of the Via header.
#SIPit31
ASTERISK-24387 #close
Reported by: Matt Jordan
........
Merged revisions 425131 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
branches/13/ (props changed)
branches/13/res/res_pjsip_nat.c
Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.
Modified: branches/13/res/res_pjsip_nat.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_nat.c?view=diff&rev=425132&r1=425131&r2=425132
==============================================================================
--- branches/13/res/res_pjsip_nat.c (original)
+++ branches/13/res/res_pjsip_nat.c Fri Oct 10 07:10:19 2014
@@ -62,7 +62,7 @@
}
if (endpoint->nat.force_rport) {
- rdata->msg_info.via->rport_param = 0;
+ rdata->msg_info.via->rport_param = rdata->pkt_info.src_port;
}
return PJ_FALSE;
More information about the asterisk-commits
mailing list