mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-27 01:04:01 +00:00
honor effective_caller_id_number for CID override
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13611 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
011ebe674b
commit
67270b8d4f
@ -1086,7 +1086,10 @@ SWITCH_STANDARD_APP(lcr_app_function)
|
||||
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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user