Audio Dial sample

 

To do a request to the agent with the "api" variable, you need to add a listener to the requests, first:

      api.onMethodResponse = function(name, data){
          switch(name){
              case "dialAudio":
                  console.log(data);
                   break;
               default:
                   console.log("default");
           }
      };

Then, any request to the api is done with the "api" variable like this:

api.dialAudio(123, -1 , -1);

Have more questions? Submit a request