move middle-of-the-block declaration at the top.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38149 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
6257b00195
commit
b62f6079aa
|
@ -11135,6 +11135,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
|
|||
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 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
|
|||
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;
|
||||
|
||||
|
|
Reference in New Issue