Picture of s.taras
Registered 5 years 82 days
s.taras Tuesday, 25 August 2020, 02:59 PM
Need help with PbxSignal Api for softphone implementation
Hello,

Have problem with implementation custom phone app. I'm trying to implement it base on http://class.innovaphone.com/moodle2/mod/forum/discuss.php?d=25488 and http://class.innovaphone.com/moodle2/mod/forum/discuss.php?d=25143

I got the problem wit sending api request { mt: "Register", api: "PbxSignal", hw: self.hw } to my service.

Session::AppWebsocketMessage(class json_io & msg, word base, const char * mt, const char * src) doesn't get this message, and client side doesn't get response to it.

How can I tune and process it on service

Thank you, Taras
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 193 days
Matthias Schertler (innovaphone) Friday, 28 August 2020, 09:58 AM
Re: Need help with PbxSignal Api for softphone implementation
Hi Taras,

those PBX APIs are processed by the PBX. So those messages must be sent on an appwebsocket connection to the PBX. This could be done from your app in the browser or from your app service.

But it looks to me like you are sending the messages from your app to your app service. Could that be the problem?

Best regards
Matthias
Picture of s.taras
Registered 5 years 82 days
s.taras Friday, 28 August 2020, 03:39 PM
Re: Need help with PbxSignal Api for softphone implementation
Hi Matthias,

Thank you response.
Yes, I have a connection to the service. As I found in samples to make requests from client to PBX I need to store application PBX password on the client side. Is this a way to do this in more secured way?
Also is this possible to get this password fro application configuration (to awoid hardcoding)?

Regards, Taras
← You can define your color theme preference here