]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add last callback run stamp to device records
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 6 Jun 2013 18:08:59 +0000 (13:08 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 6 Jun 2013 18:09:13 +0000 (13:09 -0500)
src/include/switch_core.h
src/switch_channel.c

index 2e98224273e1a30a44478c36fcc5e774ee1f516f..5d631b8f9c19cb20f2d07fc564fd8414d366642f 100644 (file)
@@ -103,6 +103,7 @@ typedef struct switch_device_record_s {
        switch_device_state_t last_state;
        switch_time_t active_start;
        switch_time_t active_stop;
+       switch_time_t last_call_time;
        struct device_uuid_node_s *uuid_list;
        struct device_uuid_node_s *uuid_tail;
        switch_mutex_t *mutex;
index 2cd0deceea60d4731ae35df5bfcf5cc21d344def..96e55681295c61b12e2ceac13e4e9dd3ce1b01db 100644 (file)
@@ -4810,6 +4810,8 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
                }
        }
 
+       drec->last_call_time = switch_micro_time_now();
+
        drec->last_state = drec->state;
 
        switch_mutex_unlock(drec->mutex);