In my program, when the shield gets an incoming call it should answer and listen to the microphone until the other side hangs up.
I think this is the way doing it, but it's not working. Statement never gets true.
Can anybody tell me why?
`......
gprs.answer();
char *cid=NULL
while (gprs.isCallActive(cid))
{
// do nothing
// stay inside loop & listen to microphone until caller hangs up
}
In my program, when the shield gets an incoming call it should answer and listen to the microphone until the other side hangs up. I think this is the way doing it, but it's not working. Statement never gets true. Can anybody tell me why?
`...... gprs.answer(); char *cid=NULL while (gprs.isCallActive(cid)) { // do nothing // stay inside loop & listen to microphone until caller hangs up }
gprs.hangup(); ....` I