Problem calling PFNSMSSTATUS : Help!!! | developer.brewmp.com Problem calling PFNSMSSTATUS : Help!!! | developer.brewmp.com

Developer

Problem calling PFNSMSSTATUS : Help!!!

Forums:

Hi all,

Im trying to implement the sendSms Api in my code.

but when i call the API ITAPI_SendSMS,
PFNSMSSTATUS function doesnt get called.

I have tick TAPI in the MIF.

I have not register the function PFNSMSSTATUS using Callback_Init();

Is it necessary to register?

If anyone has faced and solve this problem, looking forward his help..... :)

post the code here..

post the code here..

//This function is in Gameinterace.cpp
static void CallBack(void *pData, int status)
{
if (status) {
// some code
} else {
// some code
}
}
boolean GameInterface::Interface_OnEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam, int& Page, int& OldPage,IShell *m_pIShell,IDisplay *m_pIDisplay,menu *pmenu)
{
// Some code
case AVK_SELECT :
//Do i need to register CallBack with CallBack_Init(); here?
ITAPI_SendSMS (this->m_pITapi, "9819837411",
" Hi ",
0, CallBack,this);
break;
}

//This function is in Gameinterace.cpp
static void CallBack(void *pData, int status)
{
if (status) {
// some code
} else {
// some code
}
}
boolean GameInterface::Interface_OnEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam, int& Page, int& OldPage,IShell *m_pIShell,IDisplay *m_pIDisplay,menu *pmenu)
{
// Some code
case AVK_SELECT :
//Do i need to register CallBack with CallBack_Init(); here?
ITAPI_SendSMS (this->m_pITapi, "9819837411",
" Hi ",
0, CallBack,this);
break;
}

HimanshuNandu wrote:
//Do i need to register CallBack with CallBack_Init(); here?
ITAPI_SendSMS (this->m_pITapi, "9819837411", " Hi ",0, CallBack,this);
break;
Usage is correct!!!
No need to register with CALLBACK_Init. We need to pass the CB function pointer as param to ITAPI_SendSMS() function.
Check for the return value of ITAPI_SendSMS.!!! :cool:

HimanshuNandu wrote:
//Do i need to register CallBack with CallBack_Init(); here?
ITAPI_SendSMS (this->m_pITapi, "9819837411", " Hi ",0, CallBack,this);
break;
Usage is correct!!!
No need to register with CALLBACK_Init. We need to pass the CB function pointer as param to ITAPI_SendSMS() function.
Check for the return value of ITAPI_SendSMS.!!! :cool:

Hi,
int i;
i = ITAPI_SendSMS (this->m_pITapi, "9819837496",
" Hi ",
0, PIGF, this);
DBGPRINTF("ITAPI_SendSMS--->%d",i);
ITAPI_SendSMS--->20
it is returning value 20.

Hi,
int i;
i = ITAPI_SendSMS (this->m_pITapi, "9819837496",
" Hi ",
0, PIGF, this);
DBGPRINTF("ITAPI_SendSMS--->%d",i);
ITAPI_SendSMS--->20
it is returning value 20.

HimanshuNandu wrote:DBGPRINTF("ITAPI_SendSMS--->%d",i);
ITAPI_SendSMS--->20
Error 20 is EUNSUPPORTED..

HimanshuNandu wrote:DBGPRINTF("ITAPI_SendSMS--->%d",i);
ITAPI_SendSMS--->20
Error 20 is EUNSUPPORTED..

Then wat cud b the prob?
Im checking it on the emulator.
Should i check on the device?

Then wat cud b the prob?
Im checking it on the emulator.
Should i check on the device?

HimanshuNandu wrote:Then wat cud b the prob?
Im checking it on the emulator.
Should i check on the device?
1.Check if TAPI is checked in MIF file
2.Read the device sheet to find if ITAPI_SendSMS is supported
3.Try checking on device

HimanshuNandu wrote:Then wat cud b the prob?
Im checking it on the emulator.
Should i check on the device?
1.Check if TAPI is checked in MIF file
2.Read the device sheet to find if ITAPI_SendSMS is supported
3.Try checking on device

Hey thoug it was giving error on emulator, returning value 20,
it is running properly on the device...........
i m able to send the sms....
thanx for ur support

Hey thoug it was giving error on emulator, returning value 20,
it is running properly on the device...........
i m able to send the sms....
thanx for ur support

It is very likely your emulator skin has bug, you may want to report to QCOMM via developer extranet (so that QCOMM can fix it)

It is very likely your emulator skin has bug, you may want to report to QCOMM via developer extranet (so that QCOMM can fix it)

ya......,
but it may true that on emulator we dont have the send sms facility which is provided by the operator, it may send the message to the device sms sneding application which is not available on the emulator, again we dont have any operator support on emulator for sending the sms... its all my guss.... :p

ya......,
but it may true that on emulator we dont have the send sms facility which is provided by the operator, it may send the message to the device sms sneding application which is not available on the emulator, again we dont have any operator support on emulator for sending the sms... its all my guss.... :p

Hi,
int i;
i = ITAPI_SendSMS (this->m_pITapi, "9819837496",
" Hi ",
0, PIGF, this);
DBGPRINTF("ITAPI_SendSMS--->%d",i);
ITAPI_SendSMS--->20
it is returning value 20.
wat is PIGF?.. a function pointer?.. how did u create it?... plz reply asap.

Hi,
int i;
i = ITAPI_SendSMS (this->m_pITapi, "9819837496",
" Hi ",
0, PIGF, this);
DBGPRINTF("ITAPI_SendSMS--->%d",i);
ITAPI_SendSMS--->20
it is returning value 20.
wat is PIGF?.. a function pointer?.. how did u create it?... plz reply asap.