dup off the right caller profile

This commit is contained in:
Michael Jerris 2010-07-06 11:32:04 -04:00
parent ccb9a4eb0d
commit cae9129f0a
1 changed files with 1 additions and 1 deletions

View 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;