cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
868
Views
0
Helpful
4
Replies

Call Start - StartCallInterface - CVP

juber.mulani77
Level 1
Level 1

I have created below class.

But when I try to access these session variable either in decision class or cvp design. Its always gives an error.

Also i am not able to see logs in Activity logs which i have added for test purpose.

Kindly suggest is anything i am missing?

Thanks in advance

 

import com.audium.server.AudiumException;
import com.audium.server.proxy.StartCallInterface;
import com.audium.server.session.CallStartAPI;

public class CallStart implements StartCallInterface {

    public void onStartCall(CallStartAPI callStartAPI) throws AudiumException {
        // PUT YOUR CODE HERE.
        try {

            callStartAPI.setSessionData("maxtry", (Object) "2");
            callStartAPI.setSessionData("maxtry_prompt", (Object) "maxtry.wav");
            callStartAPI.addToLog("Test", "wirting logs for test purpose");

        } catch (Exception e) {
            // TODO Auto-generated catch block;
            callStartAPI
                    .addToLog("call_start", "error found " + e.getMessage());
        }
    }
}

 

1 Accepted Solution

Accepted Solutions