Picture of Wim 4127
Registered 6 years 309 days
Wim 4127 Tuesday, 22 October 2019, 04:53 PM
Device registration timeout
For an integration we are monitoring users via the SOAP API, and we especially use the findUser function to get a user's information and State flag, which indicates whether or not there is a device registered.
The problem is that the user's State flag is not updated fast enough. For example, if I unplug a phone, it takes at least 30 or more seconds before the user's State flag that is returned via the findUser SOAP call, contains a 0 instead of a 1.
In case myPBX is used, this works faster if the user uses the login/logoff functionality, but, I guess this is because the "logoff" is called and makes sure the registration is gone, while, for a normal telephony device this has to do with the device's registration interval.
Is this indeed the case, and, if so, is it possible to reduce this interval in such a way that the fact that the device is gone, is noticed sooner (e.g. after 5 seconds)? If you have any other ideas on how to better monitor users and their devices, please also let me know...

Thx in advance

Wim
Picture of Christoph Künkel (innovaphone)
Moderator Registered 15 years 189 days
Christoph Künkel (innovaphone) Tuesday, 22 October 2019, 05:54 PM
Re: Device registration timeout
Hi,

First of all, to monitor user behaviour in rel time, I'd suggest to use poll() instead of finduser().

Finduser wiil report any state change immediately. However, as you alrady suspect, there's no immediate status change when you unplug a phone. The only thing is that a timer in the PBX is started.

You could tweak the h.323 timer to have it expire sooner. But believe me, you don't want that as it will have bad side effects.

Why are your users unplugging their phone? Disabling their registration should give immediate response.

Chris

Picture of Wim 4127
Registered 6 years 309 days
Wim 4127 Wednesday, 23 October 2019, 10:56 AM
Re: Device registration timeout
Hi, we have the same issues with the poll() function, which we currently use and the updates are coming in equally late, and we were in search for a better/faster solution. With the Poll() function, from what we can see, if myPBX logs in/out, that is even slower reported than if we call the findUser, for devices it is equally slower.

The "unplugging" of a device is not really a problem but more of a test... we are just testing what happens if a part of the company has networking issues.

Anyway, if I understood correctly, there is no way to shorten this timeout? or another way to get faster "unregister" informatioN?
← You can define your color theme preference here