[asterisk-commits] file: branch 1.4 r86469 - /branches/1.4/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 19 10:08:12 CDT 2007
Author: file
Date: Fri Oct 19 10:08:12 2007
New Revision: 86469
URL: http://svn.digium.com/view/asterisk?view=rev&rev=86469
Log:
Set port number in received as information for registrations as well.
(closes issue #11028)
Reported by: brad-x
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=86469&r1=86468&r2=86469
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Oct 19 10:08:12 2007
@@ -7406,9 +7406,10 @@
}
/* Copy back Call-ID in case create_addr changed it */
ast_string_field_set(r, callid, p->callid);
- if (r->portno)
+ 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 */
+ p->recv.sin_port = htons(r->portno);
+ } else /* Set registry port to the port set from the peer definition/srv or default */
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 */
More information about the asterisk-commits
mailing list