[commit] r13611 - freeswitch/trunk/src/mod/applications/mod_lcr
Author: rupa Date: Thu Jun 4 08:56:28 2009 New Revision: 13611 Log: honor effective_caller_id_number for CID override Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c (original) +++ freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c Thu Jun 4 08:56:28 2009 @@ -1086,7 +1086,10 @@ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "LCR Lookup on %s using profile %s\n", dest, lcr_profile); routes.lookup_number = dest; if (caller_profile) { - routes.cid = (char *) caller_profile->caller_id_number; + routes.cid = (char *) switch_channel_get_variable(channel, "effective_caller_id_number"); + if (!routes.cid) { + routes.cid = (char *) caller_profile->caller_id_number; + } } if (!(routes.profile = locate_profile(lcr_profile))) {
participants (1)
-
FreeSWITCH SVN