don't use CDR on wrong call state, i.e. never responded to challenge
This commit is contained in:
parent
4789c5f549
commit
59a52c1a44
|
@ -506,6 +506,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session)
|
||||||
if (!--new_loops) {
|
if (!--new_loops) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "%s %s Abandoned\n",
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "%s %s Abandoned\n",
|
||||||
session->uuid_str, switch_core_session_get_name(session));
|
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);
|
switch_channel_hangup(session->channel, SWITCH_CAUSE_WRONG_CALL_STATE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue