]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak to devstate
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Oct 2013 04:09:14 +0000 (23:09 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Oct 2013 04:09:14 +0000 (23:09 -0500)
src/switch_channel.c

index 24c8e034893857a48cbbe8b15e3cb4068a6800f8..a2c87414dd1c98ade7d2dcaa19c28e0a2c7d64cb 100644 (file)
@@ -4708,6 +4708,13 @@ static void fetch_device_stats(switch_device_record_t *drec)
                                        } else {
                                                drec->stats.ringing_out++;
                                        }
+                               } else if (np->callstate == CCS_HANGUP) {
+                                       drec->stats.hup++;
+                                       if (np->direction == SWITCH_CALL_DIRECTION_INBOUND) {
+                                               drec->stats.hup_in++;
+                                       } else {
+                                               drec->stats.hup_out++;
+                                       }
                                } else if (np->callstate != CCS_DOWN) {
                                        drec->stats.active++;
                                        if (np->direction == SWITCH_CALL_DIRECTION_INBOUND) {