]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix originatee_caller_profile issue
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 15 Dec 2009 01:03:03 +0000 (01:03 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 15 Dec 2009 01:03:03 +0000 (01:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15962 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_session.c
src/switch_ivr_originate.c

index f51a1915dc2935b59d5eaae9676bd5dfd68e7d06..20cd367ccb96e3b024f2ebcd9656517ab20e4f7f 100644 (file)
@@ -515,12 +515,6 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
                                        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) {
index 87c5910c8ce7cc1629d5c76927bc67bad59ec282..209f59883ebff60314bf02cd4da2c065be63521c 100644 (file)
@@ -3100,7 +3100,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
        }
 
        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) {