]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dup off the right caller profile
authorMichael Jerris <mike@jerris.com>
Tue, 6 Jul 2010 15:32:04 +0000 (11:32 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 6 Jul 2010 15:32:04 +0000 (11:32 -0400)
src/switch_ivr_originate.c

index e7863ab0c174880fbc53ddfc784e94b1a9f05468..605a23270e7a3b2a0defbb99d92c663e576e8cd5 100644 (file)
@@ -2412,7 +2412,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        }
                                } else {
                                        if (oglobals.caller_profile_override) {
-                                               new_profile = switch_caller_profile_dup(oglobals.pool, caller_profile_override);
+                                               new_profile = switch_caller_profile_dup(oglobals.pool, oglobals.caller_profile_override);
                                                new_profile->destination_number = switch_core_strdup(new_profile->pool, switch_str_nil(chan_data));
                                                new_profile->uuid = SWITCH_BLANK_STRING;
                                                new_profile->chan_name = SWITCH_BLANK_STRING;