silence incorrect error log

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@999 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2010-01-23 04:50:32 +00:00
parent a9953ac8e1
commit 2b3dd0473c
1 changed files with 0 additions and 3 deletions

View File

@ -1159,12 +1159,9 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
}
if (status != ZAP_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No channels available\n");
if (caller_data.hangup_cause == SWITCH_CAUSE_NONE) {
caller_data.hangup_cause = SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION;
}
return caller_data.hangup_cause;
}