]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5498 add ringing and early stats to event
authorSeven Du <dujinfang@gmail.com>
Wed, 12 Jun 2013 01:09:02 +0000 (09:09 +0800)
committerSeven Du <dujinfang@gmail.com>
Wed, 12 Jun 2013 01:09:21 +0000 (09:09 +0800)
src/switch_channel.c

index d1e5b0c7015d0c4350c10cec1967dc3c8902f2bf..16d1652b2d85f5ca1515fd0164510f4ee484a6c7 100644 (file)
@@ -4795,6 +4795,8 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-Call-State", switch_channel_callstate2str(callstate));
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Total-Legs", "%u", drec->stats.total);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Legs-Offhook", "%u", drec->stats.offhook);
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Legs-Ringing", "%u", drec->stats.ringing);
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Legs-Early", "%u", drec->stats.early);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Legs-Active", "%u", drec->stats.active);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Legs-Held", "%u", drec->stats.held);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Device-Legs-Hup", "%u", drec->stats.hup);