From cae9129f0a2e167f9a65eede8a7c5fab0e00fecc Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 6 Jul 2010 11:32:04 -0400 Subject: [PATCH] dup off the right caller profile --- src/switch_ivr_originate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index e7863ab0c1..605a23270e 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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;