We are using ari to show the total number of PJSIP endpoints(ari/endpoints/PJSIP) in our interface.
From that list we show the endpoints that are online:
We have detected that when we erase one or several endpoints from the database, ARI is not returning the new number of endpoints until we issue a ‘core restart’ on asterisk.
Initially I had 14 extensions. I erased 6 but keeps showing 14. On the other hand, it’s working correctly to show when an endpoint goes online after just a few seconds.
Is this a bug? I haven’t been able to find any configuration option to “refresh” the results more frequently.
I’m using Asterisk certified/13.21-cert2.
Thanks in advance.