From 2a479a75f954eebe2df9001b92de7ce181a3b7d6 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Thu, 4 Mar 2010 15:04:57 +0000 Subject: [PATCH] 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 ??? git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16893 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_skypiax/mod_skypiax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skypiax/mod_skypiax.c b/src/mod/endpoints/mod_skypiax/mod_skypiax.c index 5e64701171..afa055435a 100644 --- a/src/mod/endpoints/mod_skypiax/mod_skypiax.c +++ b/src/mod/endpoints/mod_skypiax/mod_skypiax.c @@ -1048,7 +1048,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi 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);