[asterisk-commits] oej: branch 1.2 r46585 -
/branches/1.2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Oct 31 01:52:35 MST 2006
Author: oej
Date: Tue Oct 31 02:52:35 2006
New Revision: 46585
URL: http://svn.digium.com/view/asterisk?rev=46585&view=rev
Log:
Issue 7473 - support ;rport on REGISTER requests too.
Modified:
branches/1.2/channels/chan_sip.c
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=46585&r1=46584&r2=46585&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Tue Oct 31 02:52:35 2006
@@ -6577,6 +6577,10 @@
transmit_response(p, "100 Trying", req);
if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, peer->secret, peer->md5secret, SIP_REGISTER, uri, 0, ignore))) {
sip_cancel_destroy(p);
+
+ /* Make sure we copy flags, so that NAT settings apply */
+ ast_copy_flags(p, peer, SIP_FLAGS_TO_COPY);
+
switch (parse_register_contact(p, peer, req)) {
case PARSE_REGISTER_FAILED:
ast_log(LOG_WARNING, "Failed to parse contact info\n");
More information about the asterisk-commits
mailing list