Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,

Im trying to recive the all the incoming messages with the notification in the mif. Here is the code which I did. But the data and szDigits are empty in AEESMSMsg structure. Create instace is successful for ITAPI.

case EVT_NOTIFY:
AEENotify* temp = (AEENotify*)dwParam;

// Receive Message
if(AEECLSID_TAPI == temp->cls &&
(NMASK_TAPI_SMS_TEXT == temp->dwMask))
{
pMe->pAEESMSMsg = (AEESMSMsg *)temp->pData;
temp->pData = ITAPI_ExtractSMSText(pMe->pTAPI, pMe->pAEESMSMsg);
RM_DPF("Data: %s", (char*)&pMe->pAEESMSMsg->data);
RM_DPF("Number: %s", &pMe->pAEESMSMsg->szDigits);
}

How to retrieve the data and sender's number? Any help regarding this is appreciated.

Thanks,
Sreehari

Hi all,
When I use ISMS Im getting both phone number and text of the incoming sms in 3.x devices(RAZR). But, when I use the above code (using ITAPI_ExtractSMSText) it is failing for both phone number and text. its returning some junk value.
Any help regarding this is appreciated.
Thanks,
Sreehari

Hi all,
When I use ISMS Im getting both phone number and text of the incoming sms in 3.x devices(RAZR). But, when I use the above code (using ITAPI_ExtractSMSText) it is failing for both phone number and text. its returning some junk value.
Any help regarding this is appreciated.
Thanks,
Sreehari

hi sreehari...
can u tell me how to get text from incoming messages...
in my my aap i want to get the text of incoming messages.

hi sreehari...
can u tell me how to get text from incoming messages...
in my my aap i want to get the text of incoming messages.

Hi Asheesh,
Check out this post for ur clarification
http://brewforums.qualcomm.com/showthread.php?p=53097#post53097

Hi Asheesh,
Check out this post for ur clarification
http://brewforums.qualcomm.com/showthread.php?p=53097#post53097

Hi sreehari,
We still seem to be having problems displaying SMS text. Below is our code snippet ,would be great if you could review and let us know what's wrong.
AEENOTIFY *temp;
AEESMSTextMsg *data;
//Registering for notification done at application start (EVT_APP_START):
ISHELL_RegisterNotify(pMe->m_applet.m_pIShell, AEECLSID_ZOOM,AEECLSID_SMSNOTIFIER ,((AEESMS_TYPE_TEXT<<16) | NMASK_SMS_TYPE))
//Under EVT_NOTIFY, we have
temp = (AEENotify*)dwParam; //dwParam is of type AEENotify
(AEESMSTextMsg*)data = ITAPI_ExtractSMSText(pMe->pTAPI,(AEESMSMsg*)((AEENotify*)dwParam->pData));
// Does buffer "data" need to be malloc'd as in :
// data = MALLOC (1* sizeof(AEESMSTextMsg)); ??
print_text(data->szText,data->nChars); // to print the SMS text in AEESMSTextMsg
Also, necessary notifications have been set in MIF,.We are using SDK 3.1..
Thanks!!

Hi sreehari,
We still seem to be having problems displaying SMS text. Below is our code snippet ,would be great if you could review and let us know what's wrong.
AEENOTIFY *temp;
AEESMSTextMsg *data;
//Registering for notification done at application start (EVT_APP_START):
ISHELL_RegisterNotify(pMe->m_applet.m_pIShell, AEECLSID_ZOOM,AEECLSID_SMSNOTIFIER ,((AEESMS_TYPE_TEXT<<16) | NMASK_SMS_TYPE))
//Under EVT_NOTIFY, we have
temp = (AEENotify*)dwParam; //dwParam is of type AEENotify
(AEESMSTextMsg*)data = ITAPI_ExtractSMSText(pMe->pTAPI,(AEESMSMsg*)((AEENotify*)dwParam->pData));
// Does buffer "data" need to be malloc'd as in :
// data = MALLOC (1* sizeof(AEESMSTextMsg)); ??
print_text(data->szText,data->nChars); // to print the SMS text in AEESMSTextMsg
Also, necessary notifications have been set in MIF,.We are using SDK 3.1..
Thanks!!

Hi Smita,
If you are using SDK3.1 then use ISMS_ReceiveMsg to receive the SMS and get the SMS options by using ISMSMSG_GetOpt. Make sure that Registering AEECLSID_SMSNOTIFIER notification is success. Register AEECLSID_TAPI notification if you are using the above code.

Hi Smita,
If you are using SDK3.1 then use ISMS_ReceiveMsg to receive the SMS and get the SMS options by using ISMSMSG_GetOpt. Make sure that Registering AEECLSID_SMSNOTIFIER notification is success. Register AEECLSID_TAPI notification if you are using the above code.