[svn-commits] mmichelson: trunk r275294 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 9 14:29:34 CDT 2010


Author: mmichelson
Date: Fri Jul  9 14:29:30 2010
New Revision: 275294

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275294
Log:
Fix an issue where the port for p->ourip was being set to 0.

This should fix all the CDR tests that were not passing. When they would
originate a call, all fields in the INVITE that contained the source port would
have the port set to 0. Most troubling of these was the Contact header. Tests
are passing locally now and should also pass on the bamboo build agents.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=275294&r1=275293&r2=275294
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul  9 14:29:30 2010
@@ -3164,6 +3164,9 @@
 			if (!ast_sockaddr_is_any(&bindaddr)) {
 				ast_sockaddr_copy(us, &bindaddr);
 			}
+			if (!ast_sockaddr_port(us)) {
+				ast_sockaddr_set_port(us, ast_sockaddr_port(&bindaddr));
+			}
 		}
 	} else if (!ast_sockaddr_is_any(&bindaddr)) {
 		ast_sockaddr_copy(us, &bindaddr);




More information about the svn-commits mailing list