From: Anthony Minessale Date: Mon, 15 Oct 2012 16:58:59 +0000 (-0400) Subject: don't use CDR on wrong call state, i.e. never responded to challenge X-Git-Tag: v1.3.0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59a52c1a44c11e770d54144c881dea56983d8b2a;p=thirdparty%2Ffreeswitch.git don't use CDR on wrong call state, i.e. never responded to challenge --- diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index c89e78fa5a..ad9af6ca5e 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -506,6 +506,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session) if (!--new_loops) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "%s %s Abandoned\n", session->uuid_str, switch_core_session_get_name(session)); + switch_channel_set_flag(session->channel, CF_NO_CDR); switch_channel_hangup(session->channel, SWITCH_CAUSE_WRONG_CALL_STATE); } } else {