Revision
15962
Author
anthm
Date
2009-12-14 19:03:03 -0600 (Mon, 14 Dec 2009)

Log Message

fix originatee_caller_profile issue

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_core_session.c (15961 => 15962)


--- freeswitch/trunk/src/switch_core_session.c	2009-12-15 00:49:47 UTC (rev 15961)
+++ freeswitch/trunk/src/switch_core_session.c	2009-12-15 01:03:03 UTC (rev 15962)
@@ -515,12 +515,6 @@
 					switch_channel_set_originator_caller_profile(peer_channel, cloned_profile);
 				}
 			}
-
-			if (peer_profile && !(flags & SOF_FORKED_DIAL)) {
-				if ((cloned_profile = switch_caller_profile_clone(session, peer_profile)) != 0) {
-					switch_channel_set_originatee_caller_profile(channel, cloned_profile);
-				}
-			}
 		}
 
 		if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_OUTGOING) == SWITCH_STATUS_SUCCESS) {

Modified: freeswitch/trunk/src/switch_ivr_originate.c (15961 => 15962)


--- freeswitch/trunk/src/switch_ivr_originate.c	2009-12-15 00:49:47 UTC (rev 15961)
+++ freeswitch/trunk/src/switch_ivr_originate.c	2009-12-15 01:03:03 UTC (rev 15962)
@@ -3100,7 +3100,7 @@
 	}
 
 	if (*bleg) {
-		if (session && caller_channel && !switch_channel_get_originatee_caller_profile(caller_channel)) {
+		if (session && caller_channel) {
 			switch_caller_profile_t *cloned_profile, *peer_profile = switch_channel_get_caller_profile(switch_core_session_get_channel(*bleg));
 			
 			if (peer_profile) {