]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3901 FS-3870 yay a chain of regressions
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Feb 2012 22:09:41 +0000 (16:09 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Feb 2012 22:09:41 +0000 (16:09 -0600)
src/switch_core_session.c

index 76a89b1fc25f2670c75630acbaa9cff012e21a3a..aaf986b1c868477aad2a365286c12e0b4e989655 100644 (file)
@@ -2321,7 +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;
+       new_profile->times = (switch_channel_timetable_t *) switch_core_session_alloc(session, sizeof(*new_profile->times));
+       *new_profile->times = *profile->times;
 
 
        if (!zstr(dialplan)) {