Jo-Jo
Registered 12 years 156 days
Joachim 845 Wednesday, 8 May 2024, 12:58 PM
Save Config by external App (JS)
hi there,

I have an external javascript app that administers user objects.
Now I would like to save the pbx configuration.

What is the best way? What's "best practise"?

My app uses the websocket connection and have the following rights: PbxApi, Admin, TableUsers.

best regards
Joachim
Picture of Peter Stock (innovaphone)
Moderator Registered 1 year 57 days
Peter Stock (innovaphone) Friday, 10 May 2024, 09:36 AM
Re: Save Config by external App (JS)
Hi Joachim,

there are some ways to get this, but i think we should talk about the best way , which works every time ;).

I think you should use "devices" over the Service API.

https://sdk.innovaphone.com/14r1/doc/appwebsocket/Services.htm.

It is a little bit complecated, but works for all environments.

Would that be interesting for you ?

Best Regards,

Peter
Jo-Jo
Registered 12 years 156 days
Joachim 845 Monday, 13 May 2024, 10:45 AM
Re: Save Config by external App (JS)
I already thought that I would have to use the service.api. I'll have to experiment with that.

But do I understand this correctly?
First via the services on the devices, then find out the pathrough-uri and finally download the cfg.txt via httpget?

Regards,
Joachim
Picture of Peter Stock (innovaphone)
Moderator Registered 1 year 57 days
Peter Stock (innovaphone) Monday, 13 May 2024, 10:56 AM
Re: Save Config by external App (JS)
Hi,

yes, absolutly right smile.
It is a bit complicated, but therefor it works in all scenarios where the Device is connected to the Devices App.
All other Ideas would be easier (local http client and URL Access for example), but would not work in some scenarios, like cloud.

Please let me know if you have further questions.

Best Regards,

Peter

← You can define your color theme preference here