From: Anthony Minessale Date: Thu, 24 Oct 2013 04:09:14 +0000 (-0500) Subject: tweak to devstate X-Git-Tag: v1.5.8~39^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4a89487749060b43b484ce47dfffbf23dcd2c4f;p=thirdparty%2Ffreeswitch.git tweak to devstate --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 24c8e03489..a2c87414dd 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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) {