[Hilo] How to know the call is MO or MT call?


#1

Answer: You can use AT+CLCC to check if the call is MO or MT call.
Here’s the example:

+CRING: VOICE
AT+CLCC
+CLCC: 1,1,4,0,0,“1821155xxxx”,129 --1 for MT call,4 for incoming a MT call
OK
ATA
OK
AT+CLCC
+CLCC: 1,1,0,0,0,“1821155xxxx”,129 --1 for MT call,0 for active call.
OK
NO CARRIER
AT+CLCC
OK --Empty when no call

ATD10086;
OK
AT+CLCC
+CLCC: 1,0,2,0,0 --0 for MO call, 2 for dialing a MO call.
OK
AT+CLCC
+CLCC: 1,0,0,0,0 --0 for MO call, 0 for active call.
OK
ATH
OK
AT+CLCC
OK --Empty when no call