]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Switch hangup cause to NORMAL_CIRCUIT_CONGESTION when no channels are available so...
authorMathieu Rene <mrene@avgs.ca>
Tue, 24 Feb 2009 20:50:10 +0000 (20:50 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 24 Feb 2009 20:50:10 +0000 (20:50 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@669 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/mod_openzap/mod_openzap.c

index 49009a1109a20e4d05bab7ce39ece48cd497f143..c9b200fa2fc3d5f2f75fe4a7503349d633c660c2 100644 (file)
@@ -999,7 +999,7 @@ 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");
-               return SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
+               return SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION;
        }
 
        zap_channel_clear_vars(zchan);