]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3901 --resolve alternate solution to FS-3870
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Feb 2012 16:20:55 +0000 (10:20 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Feb 2012 16:20:55 +0000 (10:20 -0600)
src/switch_caller.c
src/switch_core_session.c

index ca6be0b7ac6c6001665510fe739f92d37b41bf89..fd81fe9918b973ef9b9f3495a30632c6037e1dbe 100644 (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;
index 40a25627f615841093d6eff15fc32dcf18f45a3d..76a89b1fc25f2670c75630acbaa9cff012e21a3a 100644 (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);