From: Michael Jerris Date: Tue, 6 Jul 2010 15:32:04 +0000 (-0400) Subject: dup off the right caller profile X-Git-Tag: v1.2-rc1~563^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cae9129f0a2e167f9a65eede8a7c5fab0e00fecc;p=thirdparty%2Ffreeswitch.git dup off the right caller profile --- 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;