[asterisk-commits] branch 1.2 r15898 -
/branches/1.2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Mar 28 17:58:50 MST 2006
Author: oej
Date: Tue Mar 28 18:58:49 2006
New Revision: 15898
URL: http://svn.digium.com/view/asterisk?rev=15898&view=rev
Log:
Issue #6823
- Portability issue with the registration port number patch from yesterday.
Be compatible with more systems than OS/X :-)
Thanks Rizzo for the advice.
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=15898&r1=15897&r2=15898&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Tue Mar 28 18:58:49 2006
@@ -5375,7 +5375,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, 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