FS-3901 --resolve alternate solution to FS-3870

This commit is contained in:
Anthony Minessale 2012-02-16 10:20:55 -06:00
parent db9aa0b59b
commit f24f2b3a1c
2 changed files with 2 additions and 9 deletions

View File

@ -136,15 +136,6 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_dup(switch_memor
profile->flags = tocopy->flags;
profile->pool = pool;
profile->direction = tocopy->direction;
if ((profile->times = tocopy->times)) {
profile->times->answered = 0;
profile->times->progress = 0;
profile->times->progress_media = 0;
profile->times->created = switch_time_now();
profile->times->profile_created = profile->times->created;
profile->times->hungup = 0;
profile->times->transferred = 0;
}
if (tocopy->soft) {
profile_node_t *pn;

View File

@ -2321,6 +2321,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
new_profile = switch_caller_profile_clone(session, profile);
new_profile->destination_number = switch_core_strdup(new_profile->pool, exten);
new_profile->times = profile->times;
if (!zstr(dialplan)) {
new_profile->dialplan = switch_core_strdup(new_profile->pool, dialplan);