[Freeswitch-svn] [commit] r13003 - freeswitch/trunk/src/mod/applications/mod_cidlookup
FreeSWITCH SVN
rupa at freeswitch.org
Sat Apr 11 09:31:56 PDT 2009
Author: rupa
Date: Sat Apr 11 11:31:55 2009
New Revision: 13003
Log:
fix attribution, override profile->caller_id_name
Modified:
freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c
Modified: freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_cidlookup/mod_cidlookup.c Sat Apr 11 11:31:55 2009
@@ -24,9 +24,6 @@
* Contributor(s):
*
* Rupa Schomaker <rupa at rupa.com>
- * Anthony Minessale II <anthm at freeswitch.org>
- * Neal Horman <neal at wanlink dot com>
- *
*
* mod_cidlookup.c -- API for querying cid->name services
*
@@ -453,10 +450,9 @@
name = do_lookup(pool, event, number, skipurl);
}
- if (name) {
- if (channel) {
- switch_channel_set_variable(channel, "effective_caller_id_name", name);
- }
+ if (name && channel) {
+ switch_channel_set_variable(channel, "original_caller_id_name", switch_core_strdup(pool, profile->caller_id_name));
+ profile->caller_id_name = switch_core_strdup(profile->pool, name);;
}
switch_goto_status(SWITCH_STATUS_SUCCESS, done);
More information about the Freeswitch-svn
mailing list