[asterisk-commits] dvossel: branch dvossel/sip_request_transaction_matching r275426 - /team/dvos...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 9 17:08:54 CDT 2010


Author: dvossel
Date: Fri Jul  9 17:08:50 2010
New Revision: 275426

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275426
Log:
fixes bug, i had swapped the branch and sent_by ptrs to get_viabranch

Modified:
    team/dvossel/sip_request_transaction_matching/channels/chan_sip.c

Modified: team/dvossel/sip_request_transaction_matching/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/sip_request_transaction_matching/channels/chan_sip.c?view=diff&rev=275426&r1=275425&r2=275426
==============================================================================
--- team/dvossel/sip_request_transaction_matching/channels/chan_sip.c (original)
+++ team/dvossel/sip_request_transaction_matching/channels/chan_sip.c Fri Jul  9 17:08:50 2010
@@ -6915,7 +6915,7 @@
 	if (req) {
 		char *sent_by, *branch;
 		/* get branch parameter from initial Request that started this dialog */
-		get_viabranch(ast_strdupa(get_header(req, "Via")), &branch, &sent_by);
+		get_viabranch(ast_strdupa(get_header(req, "Via")), &sent_by, &branch);
 		/* only store the branch if it begins with the magic prefix "z9hG4bK", otherwise
 		 * it is not useful to us to have it */
 		if (!ast_strlen_zero(branch) && !strncasecmp(branch, "z9hG4bK", 7)) {
@@ -7133,7 +7133,7 @@
 				if (ast_strlen_zero(totag) && !ast_strlen_zero(sip_pvt_ptr->initviabranch)) {
 					char *sent_by, *branch;
 					/* get branch parameter from top VIA header of Request */
-					get_viabranch(ast_strdupa(get_header(req, "Via")), &branch, &sent_by);
+					get_viabranch(ast_strdupa(get_header(req, "Via")), &sent_by, &branch);
 					if (ast_strlen_zero(branch) ||
 						strcmp(branch, sip_pvt_ptr->initviabranch) ||
 						ast_strlen_zero(sent_by) ||




More information about the asterisk-commits mailing list