Modified: freeswitch/branches/gmaruzz/mod_celliax/celliax_protocol.c (14887 => 14888)
--- freeswitch/branches/gmaruzz/mod_celliax/celliax_protocol.c 2009-09-16 18:50:53 UTC (rev 14887)
+++ freeswitch/branches/gmaruzz/mod_celliax/celliax_protocol.c 2009-09-16 19:24:32 UTC (rev 14888)
@@ -701,7 +701,17 @@
DEBUGA_CELLIAX("|%s| CALLFLOW_CALL_NOCARRIER\n", CELLIAX_P_LOG, tech_pvt->line_array.result[i]);
if (tech_pvt->interface_state != CELLIAX_STATE_DOWN) {
//cicopet
- celliax_hangup(tech_pvt);
+ switch_core_session_t *session = NULL;
+ switch_channel_t *channel = NULL;
+
+ session = switch_core_session_locate(tech_pvt->session_uuid_str);
+ if(session){
+ channel = switch_core_session_get_channel(session);
+ switch_channel_hangup(channel, 0);
+ //celliax_hangup(tech_pvt);
+ switch_core_session_rwunlock(session);
+ }
+ //
//tech_pvt->owner->hangupcause = CELLIAX_CAUSE_FAILURE;
//celliax_queue_control(tech_pvt->owner, CELLIAX_CONTROL_HANGUP);
} else {