I think you should send ATA after your modem gives you a ring indication, so that would be case ADL_CALL_EVENT_RING_VOICE or ADL_CALL_EVENT_RING_DATA. I don’t know what the event you are using is actually used for…
ooops i copy/pasted the wrong line, sorry
ADL_CALL_EVENT_RING_VOICE is the right line.
The error was in my last handler so he did not get to the ata part.
What i want to do is to send sms after i have recived the ata and ath0.
So you can look at this like some callback but with sms.
User calls, hangs up i send sms “Thank you for calling” ( if the call is from mobile net ).
I was thinking to do this like this. After i get ata and hangup i could set
No.
After sending at+cmgs, you have to wait for a prompt before putting the text you want to send. In newer versions of OpenAT ADL there is a special command for the text input part of sending SMS.
Or, you could use the SMS service for sending SMS.
If you also use it to receive SMS, be reminded that the service can only present you with SMS’s that are received while the service is running. SMS’s stored on the SIM card will NOT be read by the service.