]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix brokeness caused by r5673. Don't pre-set uuid and chan_name on originate off...
authorMichael Jerris <mike@jerris.com>
Wed, 19 Sep 2007 21:01:38 +0000 (21:01 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 19 Sep 2007 21:01:38 +0000 (21:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5723 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index fe75d19f3a0abb25f52b617fe8d0f857f3fc1e71..de32ce367a9cfc6d23ff8d05dd3278b67ce0a797 100644 (file)
@@ -471,6 +471,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
 
                                        caller_caller_profile = caller_profile_override ? caller_profile_override : switch_channel_get_caller_profile(caller_channel);
                                        new_profile = switch_caller_profile_clone(session, caller_caller_profile);
+                                       new_profile->uuid = NULL;
+                                       new_profile->chan_name = NULL;
                                        new_profile->destination_number = chan_data;
 
                                        if (cid_name_override) {
@@ -491,6 +493,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        if (caller_profile_override) {
                                                new_profile = switch_caller_profile_dup(pool, caller_profile_override);
                                                new_profile->destination_number = chan_data;
+                                               new_profile->uuid = NULL;
+                                               new_profile->chan_name = NULL;
                                        } else {
                                                if (!cid_name_override) {
                                                        cid_name_override = "FreeSWITCH";