How to check if there's incoming call

Added by pcharis 5 days ago

I'm satisfied with the lib although there's still some complication when it receives lots of consecutive long messages and incoming calls at the same time. Delivery status on my handset showed that message had been delivered. My app showed some incoming calls and long messages, but then it stopped responding to further incoming messages and calls. I exited, then I checked with your demo app. SMS inbox showed there were some messages stuck in the modem's storage.
The lib might also got disturbed when it was processing message reception and then the timer thread checked signal strength and battery level.

Since I have no more time to make it perfect, because I have to test my app tonight at a radio station, I decided to check messages, signal strength, etc in the timer thread, so they can be done serially. I have been able to do it except checking for incoming call.

The question: How to check if there's an incoming call at some time?
I tried using CallIndicationHandlers, but there's no explanation about it. Please advise. Thanks in advance.


Replies

RE: How to check if there's incoming call - Added by admin 5 days ago

Hi,

For the issue "but then it stopped responding to further incoming messages and calls", could you upload the log file here for us to troubleshoot?

Incoming call is an adhoc indication from the modem, and event is raised when the call indication is detected. You cannot explicitly check for it (e.g. by polling)

Thanks

RE: How to check if there's incoming call - Added by pcharis 3 days ago

Hi,

On incoming call I just displayed the number and called mobileGateway.HangUp();
In the beginning it worked well. Every time I called I got disconnection voice response, and the messages were received and displayed. But, later on, after making lots of calls and sending long messages over and over again at the same time, the system stopped responding. I no longer got disconnection response and no more messages were displayed. I exited and checked the inbox I found several messages stuck in the storage.
I noticed that before it completely stopped responding, the response to incoming call got slower; It hung up after several rings.
Attached pls find the log.

I decided to use polling that periodically check messages, signal strength, etc, very smoothly. In the meantime I simply disable call notification. I tested my app at a radio station and I'm satisfied with the result. The only thing left is how to poll the incoming call, which you said it was not possible. I thought of using statistics, but unfortunately it just recorded the number of calls without the detail.
Thanks.

log-201005.log (27.9 KB)

message.xml (6.4 KB)

RE: How to check if there's incoming call - Added by zahidmahmood 2 days ago

i m 100% agreed with u pcharis ..i m also facing same problem when i sending or receving long sms large no of messages..modem is stuck and unable to send or recieve messages..i checked 4 different companies gsm modems but result is same when modem stuck if i insert the sim to my mobile the message is recieved on my mobile..after 5 or 6 messages recieved on my mobile then again i insert sim to my gsm modem and run my application sms recieving and sednig start again...

and more point is
i checked if large no of sms recieve sometime its sender no is changed like [92300123654 send me 50 messages] and [9235197899 also send me 50 messages] and [9255555551] also send me 50 messages] three different no send me large no of messages. sometime [92300123654 message convert to 9235197899 message or 92300123654 message convert to [9255555551] .

RE: How to check if there's incoming call - Added by admin 1 day ago

Hi,

Please download the attached installer and try again to see if you still encounter the problem.

Let us know if the issue still happens

Thanks

setup.exe (4.3 MB)