Skip to main content
July 29, 2014
Question

How to use ControlService API of AMG

  • July 29, 2014
  • 1 reply
  • 194 views

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.

This topic has been closed for replies.

1 reply

July 29, 2014

Got it working, this was required:

load("TelephonyLib/ControlServiceClient.asc");