ptrFunc = sendNotifier;
ITAPI_SendSMS (pMe->pITapi, "1234567890", "Hello World",0,ptrFunc,retVal );
DBGPRINTF("aaaa----%s",(char*)retVal);
Inside sendNotifier
Code: cpp
static void sendNotifier(void* user,int status)
{
DBGPRINTF("inside function sendNotifier--%d",status);
switch(status)
{
case AEEMOSMS_ERR_NO_ERR:
STRCPY((char*)user,"Message send sucessesfully");
break;
case AEEMOSMS_ERR_OUTOF_RESOURCES:
STRCPY((char*)user,"Device is temporarily out of resources.");
break;
case AEEMOSMS_ERR_NETWORK_NOT_READY:
STRCPY((char*)user,"Network is not reachable or ready for device to communicate.");
break;
case AEEMOSMS_ERR_TRANSPORT_TEMP:
STRCPY((char*)user,"Network temporarily refused message. Application may retry.");
break;
case AEEMOSMS_ERR_TRANSPORT_PERM:
STRCPY((char*)user,"Network rejected the message.");
break;
case AEEMOSMS_ERR_INTERNAL:
STRCPY((char*)user,"An internal error occured.");
break;
default:
STRCPY((char*)user,"Unknown ERROR");
}
DBGPRINTF("end of fun.--%s",(char*)user);
}
first DBGPRINTF("aaaa----%s",(char*)retVal); is executing and then
DBGPRINTF("end of fun.--%s",(char*)user); is executing and so I am not getting any data into retVal.what should i do.


