Picture of Daniel 450
Registered 14 years 34 days
Daniel 450 Monday, 27 February 2023, 11:45 AM
How to get the registration state
Hello,

is there an api or another best practice to get the actual registration state of for example a user registration in a phone (up, rejected, timetout) or a sip trunk in a gateway (to provider side), like we could see in the advanced web ui of the device?
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Tuesday, 14 March 2023, 12:14 PM
Re: How to get the registration state
Hello Daniel,

the only way is to use an HTTP request to get the XML data. You can find out the URL path by inspecting a web page of the advanced web UI.

To reach the particular device, the SYSCLIENT API of the Devices App Service could be used.

Best Regards
Andreas Fink
Picture of Daniel 450
Registered 14 years 34 days
Daniel 450 Tuesday, 14 March 2023, 08:12 PM
Re: How to get the registration state
Hello Andreas,

thank you.
Do you mean with XML the complete config of the device?
I have done it with a mix of SYSCLIENT API and HTTP HTML (phone state iframe) then XML request. But i thought it is maybe not the effektive way to do that and there is a myself unknown better way to do that. If there is a better way i will be happy to read from you.

Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Wednesday, 15 March 2023, 02:24 PM
Re: How to get the registration state
Hello Daniel,

you have done it exactly as i described. And no, there is no better API for this kind of functionality.

Best Regards
Andreas Fink
← You can define your color theme preference here