I'm making some device which will play some voice message when recipient will pick up his phone. So I need some AT command which tells me that recipient picks up the phone (SIM900 returns for example string "PICKED UP", "RINGING" OR similar) and after this moment I will start playing voice message.
I looked into AT app note and found the AT command AT+CPAS but it returns "4" (call in progress) just after successful ATD+xxxxxxxxxxx; command. But again, I need information if the user picks up the phone not if call is in progress.
Could you tell me how can it be done (or if it is possible), please? I have searched in AT app note & this forum without success thank you so much!
BUT I found the solution :smile: It is AT+CLCC commnad. If I changed this command to enable, SIM900 returns +CLCC message which includes complete status of call
Now SIM900 automatically returns +CLCC messages like this:
First +CLCC message is recieved when I establish a call and phone on the other side is ringing
Second +CLCC message is recieved when recipient pick up the phone
And last +CLCC message is recieved when recipient hang up the phone
The nubmer which I underlined with green line is a status code (0 - active call, 3-alerting, 6-disconnect)
First +CLCC message is recieved when I establish a call and phone on the other side is ringing
Second +CLCC message is recieved when recipient pick up the phone
And last +CLCC message is recieved when recipient hang up the phone
The nubmer which I underlined with green line is a status code (0 - active call, 3-alerting, 6-disconnect)