mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 14:58:34 +00:00
tweak to devstate
This commit is contained in:
1 parent
916a75e9cf
commit
a4a8948774
1 file changed
+7
@@ -4708,6 +4708,13 @@ static void fetch_device_stats(switch_device_record_t *drec)
|
|||||||
} else {
|
} else {
|
||||||
drec->stats.ringing_out++;
|
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) {
|
} else if (np->callstate != CCS_DOWN) {
|
||||||
drec->stats.active++;
|
drec->stats.active++;
|
||||||
if (np->direction == SWITCH_CALL_DIRECTION_INBOUND) {
|
if (np->direction == SWITCH_CALL_DIRECTION_INBOUND) {
|
||||||
|
|||||||
Reference in new issue
Block a user