]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_registration.c: Filter redundant statsd reporting. 41/4541/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:49:12 +0000 (11:49 -0600)
commit61ba2a014a25a8423f775b61b7ac56f951be3df8
treea077680593b60de5ea9e64b922183c20c876a662
parent8d56016ae475f90b3a5745cfcaa604089e1db659
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