Problem with reciving SMS


#1

Hi, All!
I tryed to recive SMS with my OpenAT application and wrote such code:

(skip)
.......
sms_Handle = adl_smsSubscribe ( SMS_Handler,
                                        SMS_ctrl_Handler,
                                        ADL_SMS_MODE_TEXT );
.......
(skip)


void SMS_ctrl_Handler ( u8 Event, u16 Nb )
{
(skip)
}

bool SMS_Handler(ascii *SmsTel, ascii *SmsTimeOrLength, ascii *SmsText)
{
         adl_atSendResponse ( ADL_AT_UNS, "Incoming SMS!\n\r");
          return FALSE;
}

When I send SMS to my Q2686H function SMS_Handler doesn’t execute, but using AT-commands I found my incoming SMS marked as “REC READ”. What’s wrong in my code?