Hi openAt_Fan,
I never reach this part and there is no hangup. Also, look at the trace after second call. I have tryed different ways to test all of this and those are the results.
case ADL_CALL_EVENT_RING_VOICE:
adl_atSendResponse ( ADL_AT_UNS, "\r\n you are in ring " );}
adl_callAnswer();
break;
case ADL_CALL_EVENT_HANGUP_OK:
TRACE (( 7, "Hangup OK" ));
if (myCount < 5){ adl_atSendResponse ( ADL_AT_UNS, "\r\n - under -\r\n" );}
if (myCount == 5){ /* something */ }
if (myCount > 5){ adl_atSendResponse ( ADL_AT_UNS, "\r\n - over - \r\n" );}
TRACE((1,"The call was made for %d minutes",myCount));
break;
Result:
+WIND: 13
+WIND: 12,0
App init
RING,RING
i hangup, NO CARRIER
If i remove the adl_callAnswer(); then i get this:
+WIND: 13
+WIND: 12,0
App init
RING,RING
i hangup and nothing happens… if i call again, the story is the same.
Basicly, i never get to hangup part and this is not all. Im not sure if the timer is counting becuse i have made call, hangup, call, hangup and look what’s happening in the trace ( subscribe, unsubscribe ).
Trace:
Trace CUS4 30 [ADL PORT] subs (00212661) : 0
Trace CUS4 20 [ADL] tmr subs ; id 0 ; hdlr 00211085 ; val 10 ; cycl 0
Trace CUS4 30 [ADL PORT] event : 0 (port 80 ; state 0)
Trace CUS4 30 [ADL PORT] event : 0 (port 01 ; state 0)
Trace CUS4 22 [ADL] flash subs 1 : -4
Trace CUS4 22 Flh Obj 0000 Len : 4
Trace CUS4 22 Read Flh Obj 0000 (4) : 0
Trace CUS4 30 SIM subs 00211E81
Trace CUS4 30 SIM subs 0021020D
Trace CUS4 27 Call subs 00210225 : 0
Trace CUS4 20 [ADL] tmr subs ; id 1 ; hdlr 00216D75 ; val 5 ; cycl 0
Trace CUS4 20 [ADL] tmr subs ; id 2 ; hdlr 00216D75 ; val 5 ; cycl 0
Trace CUS4 20 [ADL] tmr subs ; id 3 ; hdlr 00216D75 ; val 5 ; cycl 0
Trace CUS4 20 [ADL] tmr subs ; id 4 ; hdlr 00216D75 ; val 5 ; cycl 0
Trace CUS4 30 SIM event 2
Trace CUS4 30 SIM event 5
Trace CUS4 20 [ADL] tmr subs ; id 5 ; hdlr 00213C89 ; val 30 ; cycl 0
Trace CUS4 20 [ADL] tmr unsubs ; id 5 ; hdlr 00213C89 (rem. time : 1)
Trace CUS4 20 [ADL] tmr subs ; id 6 ; hdlr 00213C89 ; val 30 ; cycl 0
Trace CUS4 30 SIM event 3
Trace CUS4 20 [ADL] tmr subs ; id 7 ; hdlr 00213C89 ; val 30 ; cycl 0
Trace CUS4 20 [ADL] tmr unsubs ; id 7 ; hdlr 00213C89 (rem. time : 1)
Trace CUS4 20 [ADL] tmr subs ; id 8 ; hdlr 00213C89 ; val 30 ; cycl 0
Trace CUS4 20 [ADL] tmr unsubs ; id 8 ; hdlr 00213C89 (rem. time : 1)
Trace CUS4 20 [ADL] tmr subs ; id 9 ; hdlr 00213C89 ; val 30 ; cycl 0
Please copy/paste my last posted code and when you have time, try to compile it on your target and let me know if there is some solution on this.
Mark