]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix attribution, override profile->caller_id_name
authorRupa Schomaker <rupa@rupa.com>
Sat, 11 Apr 2009 16:31:55 +0000 (16:31 +0000)
committerRupa Schomaker <rupa@rupa.com>
Sat, 11 Apr 2009 16:31:55 +0000 (16:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13003 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_cidlookup/mod_cidlookup.c

index 8cec43842dda1112bc48a1cc854d16bcde6d8a05..665fe223916e350012b103756860313a53266e4e 100755 (executable)
@@ -24,9 +24,6 @@
  * Contributor(s):
  * 
  * 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
  *
@@ -453,10 +450,9 @@ SWITCH_STANDARD_APP(cidlookup_app_function)
                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);