fix for last commit - tony please check

This commit is contained in:
Jeff Lenk 2012-09-17 23:18:17 -05:00
parent 61f4648aa7
commit 6803346c94
1 changed files with 1 additions and 1 deletions

View File

@ -1210,7 +1210,7 @@ static void our_sofia_event_callback(nua_event_t event,
break; break;
case nua_i_invite: case nua_i_invite:
if (session && sofia_private) { if (session && sofia_private) {
if (sofia_private->is_call > 1 || switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) { if (sofia_private->is_call > 1 || (channel && switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND)) {
sofia_handle_sip_i_reinvite(session, nua, profile, nh, sofia_private, sip, de, tags); sofia_handle_sip_i_reinvite(session, nua, profile, nh, sofia_private, sip, de, tags);
} else { } else {
sofia_private->is_call++; sofia_private->is_call++;