Author: anthm Date: Tue Feb 26 16:55:59 2008 New Revision: 7750 Modified: freeswitch/trunk/src/switch_channel.c Log: fix MODAPP-78 Modified: freeswitch/trunk/src/switch_channel.c ============================================================================== --- freeswitch/trunk/src/switch_channel.c (original) +++ freeswitch/trunk/src/switch_channel.c Tue Feb 26 16:55:59 2008 @@ -1937,9 +1937,11 @@ switch_strftime(profile_start, &retsize, sizeof(profile_start), fmt, &tm); switch_channel_set_variable(channel, "profile_start_stamp", profile_start); - switch_time_exp_lt(&tm, caller_profile->times->answered); - switch_strftime(answer, &retsize, sizeof(answer), fmt, &tm); - switch_channel_set_variable(channel, "answer_stamp", answer); + if (caller_profile->times->answered) { + switch_time_exp_lt(&tm, caller_profile->times->answered); + switch_strftime(answer, &retsize, sizeof(answer), fmt, &tm); + switch_channel_set_variable(channel, "answer_stamp", answer); + } switch_time_exp_lt(&tm, caller_profile->times->hungup); switch_strftime(end, &retsize, sizeof(end), fmt, &tm);
participants (1)
-
Freeswitch SVN