mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-21 19:45:34 +00:00
fix attribution, override profile->caller_id_name
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13003 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8694fd32f6
commit
7bf2958571
@ -24,9 +24,6 @@
|
|||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*
|
*
|
||||||
* Rupa Schomaker <rupa@rupa.com>
|
* Rupa Schomaker <rupa@rupa.com>
|
||||||
* Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
* Neal Horman <neal at wanlink dot com>
|
|
||||||
*
|
|
||||||
*
|
*
|
||||||
* mod_cidlookup.c -- API for querying cid->name services
|
* mod_cidlookup.c -- API for querying cid->name services
|
||||||
*
|
*
|
||||||
@ -453,10 +450,9 @@ SWITCH_STANDARD_APP(cidlookup_app_function)
|
|||||||
name = do_lookup(pool, event, number, skipurl);
|
name = do_lookup(pool, event, number, skipurl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name) {
|
if (name && channel) {
|
||||||
if (channel) {
|
switch_channel_set_variable(channel, "original_caller_id_name", switch_core_strdup(pool, profile->caller_id_name));
|
||||||
switch_channel_set_variable(channel, "effective_caller_id_name", name);
|
profile->caller_id_name = switch_core_strdup(profile->pool, name);;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_goto_status(SWITCH_STATUS_SUCCESS, done);
|
switch_goto_status(SWITCH_STATUS_SUCCESS, done);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user