[asterisk-commits] trunk r15377 - in /trunk: ./ channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Mar 27 16:32:35 MST 2006
Author: oej
Date: Mon Mar 27 17:32:34 2006
New Revision: 15377
URL: http://svn.digium.com/view/asterisk?rev=15377&view=rev
Log:
Issue #6597 - Show correct port in "sip show registry" - import from 1.2 branch
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=15377&r1=15376&r2=15377&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Mar 27 17:32:34 2006
@@ -5582,7 +5582,9 @@
ast_string_field_set(r, callid, p->callid);
if (r->portno)
p->sa.sin_port = htons(r->portno);
- ast_set_flag(&p->flags[0], SIP_OUTGOING); /* Registration is outgoing call */
+ 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 */
if (!ast_strlen_zero(r->secret)) /* Secret (password) */
More information about the asterisk-commits
mailing list