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

Developer

Forums

Forums:

I have followed the following steps for getting incomming call

- Created ITelephone using ISHELL_CreateInstance
- Used ITELEPHONE_GetCalls to get Call Descriptors for active calls
- Created ICallMgr using ISHELL_CreateInstance
- used ICALLMGR_GetCall to get ICall (Note: pass the Call Descriptor I got from step 2. I passed only one descriptor. "the first one" to get ICall for first call. )
- Finally I used ICall to answer the call

but pIcall was showing NULL pointer when i debugged the code
I have given ITAPI prevelge in mif file as well

plz help

Thanx in advance

following is my code

AECHAR szText[] = {'C','A','L','L','E','N','D','E', 'D','\0'};
int nret;
AEETCalls cald;
int err;

ITELEPHONE_GetCalls( pMe->ITelpn,&cald,50);

ICALLMGR_GetCall(pMe->m_mgr, cald.calls[0], &pMe->pICall);

//if (SUCCESS == ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_CALL,(void **)&pMe->pICall) )
//{
nret = ICALL_Answer(pMe->pICall);
if (nret == 0)
{
nret = ICALL_End(pMe->pICall);
if (nret==0)
{
IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_BOLD, szText, -1,
0,
0,
NULL,
IDF_ALIGN_CENTER | IDF_ALIGN_MIDDLE);
IDISPLAY_Update (pMe->a.m_pIDisplay);
}
}
//}
return (TRUE);

What error you are getting for ICALLMGR_GetCall?

What error you are getting for ICALLMGR_GetCall?

thanx for reply
i got the solution....
i was sending wrong class id

thanx for reply
i got the solution....
i was sending wrong class id