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

Developer

Forums

Forums:

char * regmsg = NULL;
regmsg = (char *)MALLOC(sizeof(char)*30);
STRCPY(regmsg,"Hello World");
if(ISHELL_CreateInstance(pApp->a.m_pIShell, AEECLSID_TAPI, (void**)(&pApp->m_pITAPI))!=SUCCESS)
{
pApp->m_pITAPI = NULL;
return;
}

ReturnValue = ITAPI_SendSMS(pApp->m_pITAPI, (const char *)(56161700), (const char *)regmsg,0, (PFNSMSSTATUS)SmsNotify, pApp);

Here I am getting
ReturnValue 0x00000014

Please , what r neccessary requirements to send sms .

that's a privilege error. i think you need to add TAPI privilege in MIF.
thanks.

that's a privilege error. i think you need to add TAPI privilege in MIF.
thanks.

In MIF editor I have already enabled TAPI

In MIF editor I have already enabled TAPI

I think Error is EUNSUPPORTED, because API is not supported. Also, parameters you are passing is incorrect. E.g. destination number .
Call should be something like:
ITAPI_SendSMS (pITapi, "8581112222", "Hello World", 0, MyMOSMSNotify, pMe );

I think Error is EUNSUPPORTED, because API is not supported. Also, parameters you are passing is incorrect. E.g. destination number .
Call should be something like:
ITAPI_SendSMS (pITapi, "8581112222", "Hello World", 0, MyMOSMSNotify, pMe );

Getting same return value 0x00000014 eventhougth I changed phone number.

Getting same return value 0x00000014 eventhougth I changed phone number.

On which handset, you are testing? The error reported says, API is not supported.

On which handset, you are testing? The error reported says, API is not supported.