EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM

Hi all, i have a problem with event handler in my sim toolkit applet.
i wrote the code:
reg.setEvent(EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM);
case EVENT_MENU_SELECTION:
proHdlr.init(PRO_CMD_SEND_SHORT_MESSAGE, (byte)0x00, DEV_ID_NETWORK);
proHdlr.appendTLV(TAG_ALPHA_IDENTIFIER, strings,
(short)((MSG_SENDING_SMS * STRING_RECORD_LENGTH)+(short)1),
(short)(strings[(short)(MSG_SENDING_SMS * STRING_RECORD_LENGTH)]));
// Define and append optional "Service center address" for the message (TON/NPI + number)
Util.arrayFillNonAtomic(tempBuffer, (short)0, (short)tempBuffer.length, (byte)0x00);
tempBuffer[0] = (byte)0x91;
tempBuffer[1] = (byte)0x21;
tempBuffer[2] = (byte)0x43;
tempBuffer[3] = (byte)0x65;
tempBuffer[4] = (byte)0x87;
proHdlr.appendTLV(TAG_ADDRESS, tempBuffer, (short)0, (short)5);
// Define and append SMS TPDU
Util.arrayFillNonAtomic(tempBuffer, (short)0, (short)tempBuffer.length, (byte)0x00);
// TP-MTI
tempBuffer[0] = (byte)0x01;
// TP-MR
tempBuffer[1] = (byte)0x00;
// TP-DA length
tempBuffer[2] = (byte)0x04;
// TP-DA
tempBuffer[3] = (byte)0x91;
tempBuffer[4] = (byte)0x34;
tempBuffer[5] = (byte)0x12;
// TP-PID
tempBuffer[6] = (byte)0x41;
// TP-DCS
tempBuffer[7] = (byte)0xF2;
// TP-UDL
tempBuffer[8] = (byte)0x05;
// TP-UD 'Hello' in 7-bit packed format
tempBuffer[9] = (byte)'H';
tempBuffer[10] = (byte)'E';
tempBuffer[11] = (byte)'L';
tempBuffer[12] = (byte)'L';
tempBuffer[13] = (byte)'O';
proHdlr.appendTLV(TAG_SMS_TPDU, tempBuffer, (byte)0, (byte)14);
// Send the command to the mobile
proHdlr.send();
return;
case EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM:
EnvelopeResponseHandler erh = EnvelopeResponseHandler.getTheHandler();
the sms is correctly sent, but the event is not captured!by debugging i can see that the line "EnvelopeResponseHandler erh = EnvelopeResponseHandler.getTheHandler();" is never reached!
Can anyone help me?
thanks!

Hi Guys,
Have you found a slution? I have the same problem!!
many thanks
:-)

Similar Messages

  • MO SMS control by SIm not working

    Dear All,
    I am using the EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM and Terminal profile event. The handsets I am using are sending back the terminal profile event when occured but not sending the MO SMS control event.
    Any hint???
    I have registered it as following:
    reg.setEvent(EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM);
    and the processtoolkit contains:
    public void processToolkit(byte event) {
    if (event == EVENT_PROFILE_DOWNLOAD) {
    profileDownloadService();
    } else if (event == EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM) {
    MO_SMS_proc();// the procedure to be executed
    I treid many handsets and got the same result
    Many thanks for the help
    Regards

    Hi,
    not with this little information
    - which technology
    - which browser version (if applicable)
    - how to reproduce
    - does it reproduce on other machines / browsers
    Frank

Maybe you are looking for