]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: fix id
authorMoises Silva <moy@sangoma.com>
Tue, 1 Jun 2010 15:51:27 +0000 (11:51 -0400)
committerMoises Silva <moy@sangoma.com>
Tue, 1 Jun 2010 15:51:27 +0000 (11:51 -0400)
libs/freetdm/mod_freetdm/mod_freetdm.c

index cf20ed785613884ea501cea0d52a276e80e73d95..2b50d75b6935db0f25f2a484390e87e4a32e7aa7 100644 (file)
@@ -1283,7 +1283,7 @@ ftdm_status_t ftdm_channel_from_event(ftdm_sigmsg_t *sigmsg, switch_core_session
        *sp = NULL;
 
        spanid = ftdm_channel_get_span_id(sigmsg->channel);
-       chanid = ftdm_channel_get_span_id(sigmsg->channel);
+       chanid = ftdm_channel_get_id(sigmsg->channel);
        
        if (!(session = switch_core_session_request(freetdm_endpoint_interface, SWITCH_CALL_DIRECTION_INBOUND, NULL))) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Initilization Error!\n");