lower log-level of failed ivr_originate

ivr_originate can fail due to causes such as NO_ANSWER and
ATTENDED_TRANSFER.  It seems excessive to log these normal events
with LOG_ERROR.  Lowering to LOG_NOTICE.
This commit is contained in:
Travis Cross
2011-06-06 17:48:34 +00:00
parent feb21920db
commit f25085e06b
2 changed files with 2 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ int fs_switch_ivr_originate(switch_core_session_t *session, switch_core_session_
}
if (switch_ivr_originate(session, &peer_session, &cause, bridgeto, timelimit, NULL, NULL, NULL, NULL, SOF_NONE) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Cannot Create Outgoing Channel!\n");
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Cannot Create Outgoing Channel!\n");
switch_channel_hangup(caller_channel, SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL);
return;
} else {