SMS & Call Notification | developer.brewmp.com SMS & Call Notification | developer.brewmp.com

Developer

SMS & Call Notification

Forums:

Hello Everybody,
I am new to brew and trying to prepare an application to send sms,make a voice call and receive an event notification for SMS and incomming call.

I am successful in sending sms it writes an wms file for me and the status i get is success. but in case of sms notification i have registered for notification in mif file and when i try to send the same wms file by mobile terminated sms i get the event Evt_Notify but i am not able to get the text of the sms from it , Can anybody please tell me how do i get the SMS Text. ? If i send brew directed SMS i get everything perfect with the text in EVT_Message.
My Code:
case EVT_NOTIFY:
pNoti = (AEENotify *)dwParam;
if ( pNoti->cls == AEECLSID_TAPI)
{
AEESMSMsg *pMsg;
pMsg = (AEESMSMsg *)pNoti->pData;
strData = (char *)pMsg->data,
DBGPRINTF("SMS Message = %s",strData);
}
}
I would also like to know which type of sms will i get in real life in real networks from both the category.?

I am able to make a voice call as i can see in TAPI Emulation an incomming call. But i would like to have an event notification for incomming call in my application.
I would be highly thankful if anyone can tell me how can i put the notification in the .mif for phone call as i cannot not see any mask for that or some other way to do it so i get only the event that there is a call in a mobile and can receive and end the call. Please help me as this is a blocking issue for me.

thank a lot in advance

Regards
Sandeep

On 3.x devices try with registering AEECLSID_SMSNOTIFIER and using the API's ISMS and ISMSMSG extract the SMS text and phone number for incoming messages. If you try with ITAPI, you wont get the phone number.

On 3.x devices try with registering AEECLSID_SMSNOTIFIER and using the API's ISMS and ISMSMSG extract the SMS text and phone number for incoming messages. If you try with ITAPI, you wont get the phone number.

thanks for the reply. I am totally new to brew so i would request if you can u please send me some code how to regsiter for AEECLSID_SMSNOTIFIER as i cannot find any thing available in mif editor like that available for TAPI and alos how to use the ISMS & ISMSMSG API to get the text and number.
thanks in advance.

thanks for the reply. I am totally new to brew so i would request if you can u please send me some code how to regsiter for AEECLSID_SMSNOTIFIER as i cannot find any thing available in mif editor like that available for TAPI and alos how to use the ISMS & ISMSMSG API to get the text and number.
thanks in advance.

Check in the include folder of brew version 3. You will find a bid file for this notification.
Add this in the mif file in the dependencies column.

Check in the include folder of brew version 3. You will find a bid file for this notification.
Add this in the mif file in the dependencies column.

You wont find the AEECLSID_SMSNOTIFIER.bid file in BREW version3 include folder. Either you need to create that file or register the notifier with ISHELL_RegisterNotify. See the code snippet.
ISHELL_RegisterNotify(pMe->a.m_pIShell,
AEECLSID_ISMSAPP, // App class id
AEECLSID_SMSNOTIFIER,
((AEESMS_TYPE_TEXT<<16) | NMASK_SMS_TYPE));

You wont find the AEECLSID_SMSNOTIFIER.bid file in BREW version3 include folder. Either you need to create that file or register the notifier with ISHELL_RegisterNotify. See the code snippet.
ISHELL_RegisterNotify(pMe->a.m_pIShell,
AEECLSID_ISMSAPP, // App class id
AEECLSID_SMSNOTIFIER,
((AEESMS_TYPE_TEXT<<16) | NMASK_SMS_TYPE));

thanx for the the suggestion that was really of great help.but i have a small problem when i try to regsiter using the code
ISHELL_RegisterNotify(pIShell, AEECLSID_CALLHOOK,AEECLSID_SMSNOTIFIER,
((AEESMS_TYPE_TEXT<<16) | NMASK_SMS_TYPE));
I get the error undefined types AEESMS_TYPE_TEXT and NMASK_SMS_TYPE.
can u please tell me how do i solve this any header file reference needed ? i m using brew 3.1.5. or how can i do that in mif file
thanx in advance.

thanx for the the suggestion that was really of great help.but i have a small problem when i try to regsiter using the code
ISHELL_RegisterNotify(pIShell, AEECLSID_CALLHOOK,AEECLSID_SMSNOTIFIER,
((AEESMS_TYPE_TEXT<<16) | NMASK_SMS_TYPE));
I get the error undefined types AEESMS_TYPE_TEXT and NMASK_SMS_TYPE.
can u please tell me how do i solve this any header file reference needed ? i m using brew 3.1.5. or how can i do that in mif file
thanx in advance.