Author Message
jackyjoy123
Joined: Dec 31, 2020
Messages: 3
Offline
Hello,


I have a class myClass.java which will invoke call.initiate().

I want a timeout mechanism such that after 1 minute if the user does not pick up the call, we invoke the timeout function and drop the call.

How should I do this ? Is there any example to do so ?

https://creditcardsupportx.com
https://creditcardsupportx.com/barnes-and-noble-barclay-mastercard
https://creditcardsupportx.com/pep-boys-credit-card

thanks
jackyjoy
ThorstenOhrstromSandgren
Joined: Dec 19, 2013
Messages: 12
Offline
Hi jackyjoy,

Here's how you would achieve what you're asking for:

From ClickToCall service under sdk:
final Call call = CallFactory.create(firstParty, secondParty, identity);
call.initiate();

Start the timer using the call id (call.getId()). See sdk/sample_services/Callingpolicies/Callingpolicies-war/src/main/java/com/avaya/services/Callingpolicies/SequentialForkingTimer.java for example on how to start and perform action when the timer expires.

Thanks,
Thor
Go to:   
Mobile view