I need to make an IVR -auto dialer application, which
=> dials a toll-free number
=> then selects an option to continue
=> then input some code
=> then after some seconds (some advertisements/ say 30 sec.) need to enter another option
the first three things resolved, as there is not having much waiting time!
I have implemented this like below:
String dialnumber = tollfree+","+option1+","+code; //eg: 1800,2,12345
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:"+dialnumber));
startActivity(callIntent);
this is successful to reach till the option, after this, there is a waiting time.... i tried by putting ";" (semi-colon) before appending the last string with dialnumber. but it is not working
String dialnumber = tollfree+","+option1+","+code+";"+lastoption; //eg: 1800,2,12345;98765
the dialer exits when i start call, but if I remove the last option, then it works
my question is: how can i put the last option to dialer after an interval of 30secs. ?
I heard that we cannot interfere with the default dialer while on active call.