[asterisk-commits] trunk r15905 - in /trunk: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 28 18:01:11 MST 2006


Author: oej
Date: Tue Mar 28 19:01:09 2006
New Revision: 15905

URL: http://svn.digium.com/view/asterisk?rev=15905&view=rev
Log:
Issue #6823 - Registration and port numbers. (from 1.2)

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=15905&r1=15904&r2=15905&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Mar 28 19:01:09 2006
@@ -5610,7 +5610,7 @@
 		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;
+			r->portno = ntohs(p->sa.sin_port);
 		ast_set_flag(&p->flags[0], 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