Revision
16893
Author
gmaruzz
Date
2010-03-04 09:04:57 -0600 (Thu, 04 Mar 2010)

Log Message

skypiax: when trying to specify the use of an already busy interface for originating an outbound call, return SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION instead of DESTINATION_OUT_OF_ORDER. Like in openzap. Would be better to return SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL ???

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/mod_skypiax.c (16892 => 16893)


--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/mod_skypiax.c	2010-03-04 01:16:48 UTC (rev 16892)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/mod_skypiax.c	2010-03-04 15:04:57 UTC (rev 16893)
@@ -1048,7 +1048,7 @@
 						DEBUGA_SKYPE("1 SESSION_DESTROY %s\n", SKYPIAX_P_LOG, switch_core_session_get_uuid(*new_session));
 						switch_core_session_destroy(new_session);
 						switch_mutex_unlock(globals.mutex);
-						return SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
+						return SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION;
 					}
 
 					DEBUGA_SKYPE("globals.SKYPIAX_INTERFACES[%d].name=|||%s|||?\n", SKYPIAX_P_LOG, i, globals.SKYPIAX_INTERFACES[i].name);