PBX connection
Hi guys,
In the discussion http://class.innovaphone.com/moodle2/mod/forum/discuss.php?d=25360 I've found the following:
In my environment I see this connection happens but not always and usually I receive only once after restarting App Platform. And even this restart does not guarantee this connection to be happen.Because generally the PBX will connect to your service and there you can use the name of the PBX to accept the connection only for the desiered one. For that case there is no need to know the IP address. The name is something you need to define in the settings of your app. The calendar is an example of how that works. There you can give the name of the master PBX the calendar will accept connections from. All other PBX connections will be denied.You can check that in the AppWebsocketMessage() function. When connected, you will get an PbxInfo message. The JSON for that message will have a "pbx" property which holds the name of the PBX connected. If the name is the same as the configured one, everything is fine. If not, close the connection by calling AppWebsocketClose(). (This are functions from the AppWebsocket class).
My question is how I can configure this connection to be established all the time my App Instance is started?
Best regards,
Sergey