ICallHistory_AddEntry | developer.brewmp.com ICallHistory_AddEntry | developer.brewmp.com

Developer

ICallHistory_AddEntry

Forums:

Hi Friends,

I am trying to add a new entry to the call history. I have an entry which has 2 fields. I am facing the problem when populating the data to the new AEECallHistoryEntry Field. Here is a code snippet:

pFields[0].ClsId = 0;

pFields[0].wID = AEECALLHISTORY_FIELD_NAME;

pFields[0].wDataLen = 6;

pFields[0].pData = (char *) MALLOC (20);

STRCPY(pFields[0].pData,"Sunil");

pFields[1].ClsId = 0;

pFields[1].wID = AEECALLHISTORY_FIELD_NUMBER;

pFields[1].wDataLen = 11;

pFields[1].pData = (char *) MALLOC (20);

STRCPY(pFields[1].pData,"9886223872");

pMe->pchestatic->wNumFields = 2;

pMe->pchestatic->pFields = pFields;

Finally

n = ICALLHISTORY_AddEntry (pMe->pch,(AEECallHistoryEntry *) &pMe->pchestatic);

Here the return value is 14(i.e Bad Param). What I observed is pMe->pchestatic has only 1 field instead of 2. Can any body tell the proper way of populating the data please? Its very urgent....

Thanx in advance,

Sunil Kumar

Hi-
I am on BREW v3.1.5.140 SP01, and I am getting the same error when calling ICALLHISTORY_AddEntry. Does anyone know how to resolve this issue?
Thanks!

Hi-
I am on BREW v3.1.5.140 SP01, and I am getting the same error when calling ICALLHISTORY_AddEntry. Does anyone know how to resolve this issue?
Thanks!

Could somebody resolve this problem?
I'm facing the same problem.
Please help.......

Could somebody resolve this problem?
I'm facing the same problem.
Please help.......