I need to get some digits from the caller.
I am using Asterisk AGI and Asterisk-java api classes to develop IVR application.
What I want is,
- when anyone call on perticular number / extension
- first IVR application ask for 4 digit registration number
- then check it in database and deside it is valid user or not
- if valid then do something
But I am not able to get 4 digit user registration number.
What I Do? please help.
I am using getData() method but it gives timeout problem
String regNum; regNum=channel.getData("/RecordedFile",10000,3); System.out.println("Your registration num is :::::::::::: " + regNum);
But above code not works is give timeout
Thanks in advance