View previous topic :: View next topic |
Author |
Message |
tkm
Joined: 18 Jan 2011 Posts: 72
|
Posted: Fri Sep 30, 2011 12:08 pm Post subject: Does call control gets precedence over sms sent out? |
|
|
Hello,
This is what I am trying to achieve: Before call goes to call control I invoked sending sms message out on a seperate thread. But interestingly the sms always gets send out only after the call is being connected. Is this a norm for SIM Toolkit? Or do you think I am doing something wrong?
I would have thought sms may get send out before call is being connected or maybe in parallel atleast.
Any feedback would be much appreciated.
Here is my code and trace:
Code: | void turbo_handler (u8 action, void *data)
{
switch (action)
{
case ACTION_CALL_CONTROL:
dbsp ("\nCalling 2nd SMS\n");
stk_thread (smsplus_sms2, data);
call_control (data);
break;
}
}
void smsplus_sms2 (u8 * s)
{
///////////////////////////////////////////
u8 j;
j = get_tag (s, T_ADDRESS);
if (j != 0 && rb (&pers_mem->active) && (incoming==0)
&& rb (&pers_mem->service_nr[0]) != 0x00)
{
j++;
global_caller_number = msisdn2str (&s[j], MSISDN_ADN, MEM_R);
global_caller_number_len = strlen (global_caller_number);
}
///////////////////////////////////////////
u8 * ms=str2msisdn(t_number, MSISDN_ADN, MEM_R);
send_sms(global_caller_number, .....);
dbsp ("\nSend out Second Sms\n");
second_sms_sent=1;
free(global_caller_number);
free(ms);
} |
Code: |
Calling 2nd SMS
CALL RET 9f0c
TO ME: 9f 0c
FROM ME: a0 c0 00 00 0c
CALL FILE APDU
0002
000a
0006
0008
0081
0000
0044
0002
0043
0023
0061
0022
0090
0000
TO ME: 02 0a 06 08 81 00 44 02 43 23 61 22 91 25
FROM ME: a0 12 00 00 25
TO ME: d0 23 81 03 01 13 00 82 02 81 83 8b 18 01 00 0c 91 44 97 10 57 34 89 0
f5 0b 30 37 38 37 38 38 37 34 32 33 39 90 00
FROM ME: a0 a4 00 00 02
FROM ME: 6f 43
TO SIM: a0 a4 00 00 02
TO SIM: 6f 43
FROM SIM: 9f 0f
TO ME: 9f 0f
FROM ME: a0 c0 00 00 0f
TO SIM: a0 c0 00 00 0f
FROM SIM: 00 00 00 02 6f 43 04 00 11 ff ff 01 02 00 00 90 00
TO ME: 00 00 00 02 6f 43 04 00 11 ff ff 01 02 00 00 90 00
FROM ME: a0 d6 00 00 02
FROM ME: 48 ff
TO SIM: a0 d6 00 00 02
TO SIM: 48 ff
FROM SIM: 90 00
TO ME: 90 00
FROM ME: a0 a4 00 00 02
FROM ME: 7f 20
TO SIM: a0 a4 00 00 02
TO SIM: 7f 20
FROM SIM: 9f 22
TO ME: 9f 22
FROM ME: a0 c0 00 00 22
TO SIM: a0 c0 00 00 22
FROM SIM: 00 00 59 c0 7f 20 02 00 ff 66 ff 01 15 b1 00 1e 0d 00 83 8a 83 8a 00 8
80 80 80 80 00 80 80 80 80 00 90 00
TO ME: 00 00 59 c0 7f 20 02 00 ff 66 ff 01 15 b1 00 1e 0d 00 83 8a 83 8a 00 8
80 80 80 80 00 80 80 80 80 00 90 00
FROM ME: a0 88 00 00 10
FROM ME: bd 3c c2 4f ff fc 08 35 2c d4 86 51 b9 39 12 b8
TO SIM: a0 88 00 00 10
TO SIM: bd 3c c2 4f ff fc 08 35 2c d4 86 51 b9 39 12 b8
FROM SIM: 9f 0c
TO ME: 9f 0c
FROM ME: a0 c0 00 00 0c
TO SIM: a0 c0 00 00 0c
FROM SIM: 8a 8f 32 1c 79 25 d7 30 de 07 fa 8a 90 00
TO ME: 8a 8f 32 1c 79 25 d7 30 de 07 fa 8a 90 00
FROM ME: a0 a4 00 00 02
FROM ME: 6f 20
TO SIM: a0 a4 00 00 02
TO SIM: 6f 20
FROM SIM: 9f 0f
TO ME: 9f 0f
FROM ME: a0 c0 00 00 0f
TO SIM: a0 c0 00 00 0f
FROM SIM: 00 00 00 09 6f 20 04 00 11 ff ff 01 02 00 00 90 00
TO ME: 00 00 00 09 6f 20 04 00 11 ff ff 01 02 00 00 90 00
FROM ME: a0 d6 00 00 09
FROM ME: 79 25 d7 30 de 07 fa 8a 03
TO SIM: a0 d6 00 00 09
TO SIM: 79 25 d7 30 de 07 fa 8a 03
FROM SIM: 90 00
TO ME: 90 00
FROM ME: a0 c2 00 00 0c
FROM ME: d6 0a 99 01 01 82 02 83 81 9c 01 80
ACTION_EVENT_CALL_CONNECTED
TO ME: 90 00
FROM ME: a0 14 00 00 0c
FROM ME: 81 03 01 13 00 02 02 82 81 83 01 00
Send out Second Sms
TO ME: 90 00
|
Many thanks. |
|
Back to top |
|
|
pz
Joined: 12 Mar 2004 Posts: 1161
|
Posted: Wed Oct 05, 2011 7:56 am Post subject: |
|
|
It's simply the phone decision to send it later, usually the call connection makes the phone/net signaling quite busy. You are doing nothing wrong and it's not STK related/covered. |
|
Back to top |
|
|
tkm
Joined: 18 Jan 2011 Posts: 72
|
Posted: Thu Oct 06, 2011 9:41 am Post subject: |
|
|
pz wrote: | It's simply the phone decision to send it later, usually the call connection makes the phone/net signaling quite busy. You are doing nothing wrong and it's not STK related/covered. |
Understood. Thanks PZ. You are always helpful. Appreciated. |
|
Back to top |
|
|
|