tweak to devstate

This commit is contained in:
Anthony Minessale 2013-10-23 23:09:14 -05:00
parent 9e77e6f392
commit 2d7af9beef
1 changed files with 7 additions and 0 deletions

View File

@ -4658,6 +4658,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) {