How to use ControlService API of AMG
Hi,
I am not able to find any guide example on how to use the ControlService API of Adobe media gateway. I don't know how to instantiate control service in SSAS.
I want to create a persistent link/leg between AMS-->AMG-->Asterisk. So that all clients on AMS can send their stream onto this leg and also receive the streams of Asterisk clients through this persistent link/leg.
application.controlService = new CallLegService(); // what class to instantiate here? there is no: new CallControlService();
application.controlService.createLeg("sip|201@sipGateway");
It gives me following error, I know the obvious reason for it but dont know the fix.
Sending error message: C:\Program Files\Adobe\Adobe Media Server 5\applications\CustomTelephony\main.asc: line 71: TypeError: application.legService.createLeg is not a function
Sending error message: Failed to execute method (CreateLink).
Regards,
Sahil.
