Seeed-Studio / GPRS_SIM900

library for GPRS shield with sim900 module.
MIT License
138 stars 96 forks source link

GPRS_SIM900 isCallActive() troubleshooting #10

Closed nexus05 closed 4 years ago

nexus05 commented 7 years ago

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