[asterisk-commits] rizzo: trunk r38149 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jul 24 04:46:28 MST 2006


Author: rizzo
Date: Mon Jul 24 06:46:27 2006
New Revision: 38149

URL: http://svn.digium.com/view/asterisk?rev=38149&view=rev
Log:
move middle-of-the-block declaration at the top.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=38149&r1=38148&r2=38149&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Jul 24 06:46:27 2006
@@ -11135,6 +11135,7 @@
 	int outgoing = ast_test_flag(&p->flags[0], SIP_OUTGOING);
 	int res = 0;
 	int reinvite = (p->owner && p->owner->_state == AST_STATE_UP);
+	struct ast_channel *bridgepeer = NULL;
 	
 	if (option_debug > 3) {
 		if (reinvite)
@@ -11235,7 +11236,6 @@
 			build_route(p, req, 1);
 		}
 		
-		struct ast_channel *bridgepeer = NULL;
 		if (p->owner && (p->owner->_state == AST_STATE_UP) && (bridgepeer = ast_bridged_channel(p->owner))) { /* if this is a re-invite */
 			struct sip_pvt *bridgepvt = NULL;
 



More information about the asterisk-commits mailing list