Showing 6 results.
Items per Page 50
of 1

CVP Forum

Combination View Flat View Tree View
Threads [ Previous | Next ]
I have written the Class "MyCallEnd" to call web server when the call end event happens.
 
I am not able to find any documentation as how to call web server when call end happend. Initially i was thinking that it should happen automatically but does not seems its happening.
 
In Activity logs i could see the following ...
 
end,how,hangup
end,result,normal
end,duration,19
 
Below is the code sample for MyCallEnd class. Please suggest me how can i call this class from CVP Studio in call Flow to connect to web service. Any help will be really appreciated. Thanks.
 
public class MyCallEnd implements EndCallInterface
{
public void onEndCall(CallEndAPI callEndAPI) throws AudiumException
    {
        String Number = callEndAPI.getElementData("Number", "value");
        String Id = callEndAPI.getElementData("Id", "value");
       
        CallWebService(Number, Id);
       
    }
 
    //Web Service Client
    public void    CallWebService(String Number, String Id) throws AudiumException
    {
      .
      .
      .
     }
}