Revision
17537
Author
brian
Date
2010-05-12 21:23:49 -0500 (Wed, 12 May 2010)

Log Message

dup off the right pool

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_channel.c (17536 => 17537)


--- freeswitch/trunk/src/switch_channel.c	2010-05-13 02:23:49 UTC (rev 17536)
+++ freeswitch/trunk/src/switch_channel.c	2010-05-13 02:23:49 UTC (rev 17537)
@@ -2837,12 +2837,12 @@
 	switch_mutex_lock(other_channel->profile_mutex);
 
 	if (!zstr(channel->caller_profile->callee_id_name)) {
-		other_channel->caller_profile->callee_id_name = switch_core_strdup(channel->caller_profile->pool, channel->caller_profile->callee_id_name);
+		other_channel->caller_profile->callee_id_name = switch_core_strdup(other_channel->caller_profile->pool, channel->caller_profile->callee_id_name);
 		x++;
 	}
 
 	if (!zstr(channel->caller_profile->callee_id_number)) {
-		other_channel->caller_profile->callee_id_number = switch_core_strdup(channel->caller_profile->pool, channel->caller_profile->callee_id_number);
+		other_channel->caller_profile->callee_id_number = switch_core_strdup(other_channel->caller_profile->pool, channel->caller_profile->callee_id_number);
 		x++;
 	}