From 6803346c948b052f5f9a40dd864dc5cfc1565ea9 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Mon, 17 Sep 2012 23:18:17 -0500 Subject: [PATCH] fix for last commit - tony please check --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index d1cdb2068c..e8a1c1e7ef 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1210,7 +1210,7 @@ static void our_sofia_event_callback(nua_event_t event, break; case nua_i_invite: 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); } else { sofia_private->is_call++;