Sending SMS | developer.brewmp.com Sending SMS | developer.brewmp.com

Developer

Sending SMS

Forums:

I'm trying to send SMS as follows, on Moto V3C:

int retVal = ITAPI_SendSMS(m_pHAPI->m_pTAPI,
"04454434343",
"Test Message",
0,
SMSStatusCallback,
this);

DBGPRINTF("ITAPI_SendSMS returned %d", retVal);

if (retVal != SUCCESS)
{
return (EFAILED);

needless to say, with TAPI privilege selected...
The problem is that the callback returns with AEEMOSMS_ERR_INTERNAL, and the message wasn't sent. Can someone provide me with an insight why such an error can occur? TIA, Yigal

Okay, the V3C data sheet states that ITAPI_SendSMS does not work correctly (RTFM issue), and also that ISMS cannot send SMS messages with encoding set to UNICODE. But although I try to send the message with ISms and ISmsMsg with plain ASCII, it still returns error to the callback and fails to send the message.
The code is as follows:
if (ISHELL_CreateInstance(m_pH->m_pIShell, AEECLSID_SMSMSG, (void**)&m_pISmsMsg) != SUCCESS)
{
return (EFAILED);

SMSMsgOpt opts[5];
char dest[] = "0523373945";
char msg[] = "Test Message";
opts[0].nId = MSGOPT_TO_DEVICE_SZ;
opts[0].pVal = (void*)"04454434343";
opts[1].nId = MSGOPT_PAYLOAD_SZ;
opts[1].pVal = (void*)"Test Message";
opts[2].nId = MSGOPT_PAYLOAD_ENCODING;
opts[2].pVal = (void*)AEE_ENC_ISOLATIN1;
opts[3].nId = MSGOPT_MOSMS_ENCODING;
opts[3].pVal = (void*)AEESMS_ENC_ASCII;
opts[4].nId = MSGOPT_END;
opts[4].pVal = (void*)NULL;
retVal = ISMSMSG_AddOpt(m_pISmsMsg, opts);
if (ISHELL_CreateInstance(m_pH->m_pIShell, AEECLSID_SMS, (void**)&m_pISms) != SUCCESS)
{
return (EFAILED);

CALLBACK_Init(&m_SMSCallback, SMSNotifyCallback, this);
ISMS_SendMsg(m_pISms, m_pISmsMsg, &m_SMSCallback, &m_smsRetVal);
The callback is called with error.
What can cause this problem? has someone here has been facing this kind of problem? Any insight will be appreciated!!
Thanks, Yigal

Okay, the V3C data sheet states that ITAPI_SendSMS does not work correctly (RTFM issue), and also that ISMS cannot send SMS messages with encoding set to UNICODE. But although I try to send the message with ISms and ISmsMsg with plain ASCII, it still returns error to the callback and fails to send the message.
The code is as follows:
if (ISHELL_CreateInstance(m_pH->m_pIShell, AEECLSID_SMSMSG, (void**)&m_pISmsMsg) != SUCCESS)
{
return (EFAILED);

SMSMsgOpt opts[5];
char dest[] = "0523373945";
char msg[] = "Test Message";
opts[0].nId = MSGOPT_TO_DEVICE_SZ;
opts[0].pVal = (void*)"04454434343";
opts[1].nId = MSGOPT_PAYLOAD_SZ;
opts[1].pVal = (void*)"Test Message";
opts[2].nId = MSGOPT_PAYLOAD_ENCODING;
opts[2].pVal = (void*)AEE_ENC_ISOLATIN1;
opts[3].nId = MSGOPT_MOSMS_ENCODING;
opts[3].pVal = (void*)AEESMS_ENC_ASCII;
opts[4].nId = MSGOPT_END;
opts[4].pVal = (void*)NULL;
retVal = ISMSMSG_AddOpt(m_pISmsMsg, opts);
if (ISHELL_CreateInstance(m_pH->m_pIShell, AEECLSID_SMS, (void**)&m_pISms) != SUCCESS)
{
return (EFAILED);

CALLBACK_Init(&m_SMSCallback, SMSNotifyCallback, this);
ISMS_SendMsg(m_pISms, m_pISmsMsg, &m_SMSCallback, &m_smsRetVal);
The callback is called with error.
What can cause this problem? has someone here has been facing this kind of problem? Any insight will be appreciated!!
Thanks, Yigal

Recently 3 people are having same problem. This should not be an issue at all as it worked for me and many people.
Check this link and try that way
http://brewforums.qualcomm.com/showthread.php?t=11434

Recently 3 people are having same problem. This should not be an issue at all as it worked for me and many people.
Check this link and try that way
http://brewforums.qualcomm.com/showthread.php?t=11434