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

Developer

Forums

Forums:

Hi,
Is it possible to send sms using ITAPI_SendSMS when incoming call is received?
I tried to register my application to ITAPI events(in the mif file) and when receiving the status "PS_CONVERSATION" or "PS_INCOMING", send the sms but it returns "EITEMBUSY".
I don't see any reason why couldn't I send SMS after the call was answered.
There's no problem in receiving one while in conversation.

Thanks

Hi,
I tried that on the LGVX6000 and sends the SMS but imidieatly restart the device.
here's the code:
case EVT_NOTIFY:
{
ITAPI* pITapi = NULL;
AEENotify* pNotify = (AEENotify*) dwParam;
if (pNotify && (pNotify->cls == AEECLSID_TAPI))
{
if ((pNotify->dwMask & NMASK_TAPI_STATUS) == NMASK_TAPI_STATUS)
{
TAPIStatus* ptpst = (TAPIStatus*) pNotify->pData;
if (ptpst->state == PS_CONVERSATION )//PS_INCOMING
{
// Create an instance of the ITapi interface
ISHELL_CreateInstance(pVvmApp->m_pIShell, AEECLSID_TAPI,(void **)&pITapi);
if (pITapi)
{
int res = ITAPI_SendSMS(pITapi, "0507232280", "Hello World", 0,smsCallback, 0);
// Free the instance of the ITapi interface
ITAPI_Release(pITapi);
}
}
}
}
}
break ;

Hi,
I tried that on the LGVX6000 and sends the SMS but imidieatly restart the device.
here's the code:
case EVT_NOTIFY:
{
ITAPI* pITapi = NULL;
AEENotify* pNotify = (AEENotify*) dwParam;
if (pNotify && (pNotify->cls == AEECLSID_TAPI))
{
if ((pNotify->dwMask & NMASK_TAPI_STATUS) == NMASK_TAPI_STATUS)
{
TAPIStatus* ptpst = (TAPIStatus*) pNotify->pData;
if (ptpst->state == PS_CONVERSATION )//PS_INCOMING
{
// Create an instance of the ITapi interface
ISHELL_CreateInstance(pVvmApp->m_pIShell, AEECLSID_TAPI,(void **)&pITapi);
if (pITapi)
{
int res = ITAPI_SendSMS(pITapi, "0507232280", "Hello World", 0,smsCallback, 0);
// Free the instance of the ITapi interface
ITAPI_Release(pITapi);
}
}
}
}
}
break ;