]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_registration.c: Filter redundant statsd reporting. 42/4542/2
authorRichard Mudgett <rmudgett@digium.com>
Thu, 1 Dec 2016 00:25:11 +0000 (18:25 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 2 Dec 2016 17:56:14 +0000 (11:56 -0600)
commitd416dd7f65b131cb3c835764f62ded5da6b46204
tree9405fa6c8b250dedfffa7118e3f31ce5f6677330
parent1de7e0eefabbcff5a1d837e46fb670aaeee1bdcc
res_pjsip_outbound_registration.c: Filter redundant statsd reporting.

Increasing the testsuite shutdown timeout before forcibly killing
Asterisk allowed more events to be sent out.  Some tests failed as
a result.  The tests/channels/pjsip/statsd/registrations failed
because we now get the statsd events that a comment in the test
configuration stated couldn't be intercepted.  Unfortunately, we
get a variable number of events because of internal status state
transition races generating redundant statsd events.

We were reporting redundant statsd PJSIP.registrations.state changes
for internal state changes that equated to the same thing publicly.

* Made update_client_state_status() filter out redundant statsd
updates.

ASTERISK-26527

Change-Id: If851c7d514bb530d9226e4941ba97dcf52000646
CHANGES
res/res_pjsip_outbound_registration.c