[asterisk-commits] branch 1.2 r15376 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 27 16:29:57 MST 2006


Author: oej
Date: Mon Mar 27 17:29:55 2006
New Revision: 15376

URL: http://svn.digium.com/view/asterisk?rev=15376&view=rev
Log:
Issue #6597 - sip show registry shows incorrect port

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=15376&r1=15375&r2=15376&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Mon Mar 27 17:29:55 2006
@@ -5374,6 +5374,8 @@
 		ast_copy_string(r->callid, p->callid, sizeof(r->callid));
 		if (r->portno)
 			p->sa.sin_port = htons(r->portno);
+		else 	/* Set registry port to the port set from the peer definition/srv or default */
+			r->portno = p->sa.sin_port;
 		ast_set_flag(p, SIP_OUTGOING);	/* Registration is outgoing call */
 		r->call=p;			/* Save pointer to SIP packet */
 		p->registry=ASTOBJ_REF(r);	/* Add pointer to registry in packet */



More information about the asterisk-commits mailing list