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

Developer

Forums

Forums:

I am facing some probs in getting the caller ID in TAPI.
I am calling the application with the app cls id in the tapi emulation.I registered the notify functions and I get the control on
them after call. But I dont get the number.

ITAPI_GetCallerID returns true.But the string content i.e. szBuf4 contents is NULL.
Whats wrong?

if(
ITAPI_OnCallStatus(pApp->m_pTapi,(PFNNOTIFY) onCallStatus,pApp,100,OCS_ALL)==SUCCESS
)
DBGPRINTF("ITAPI_ONCALLSTATUS SUCCESS");
else
DBGPRINTF("ITAPI_ONCALLSTATUS FAIL");

void onCallStatus(SMS *pApp)
{
TAPIStatus tapiStat;
AECHAR* szBuf3=MALLOC(sizeof(AECHAR)*128);
char* szBuf4=(char*)MALLOC(sizeof(char)*128);

if(ITAPI_GetCallerID(pApp->m_pTapi,szBuf3,128)==TRUE)
{
WSTRTOSTR(szBuf3,szBuf4,128);
DBGPRINTF("in onCallStatus AND The Number Is %s",szBuf4);
}

Anand.
---------------------------------
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%61%6e%61%6e%64%40%6c%61%6d%62%65%6e%74%74%65%6b%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%61%6e%61%6e%64%40%6c%61%6d%62%65%6e%74%74%65%6b%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))
Nagpur,India
---------------------------------

You are testing this on phone or emulator..?
Arun

You are testing this on phone or emulator..?
Arun

Hello Mr. Arun
I am testing this on emulator..I can see the telephone number while calling i.e. 18581234567 ( I think it is the same no. always) on the emulator TAPI call info screen and then I click start call.thats it. The rest of the prob I have presented in my prev mail.
Anand.

Hello Mr. Arun
I am testing this on emulator..I can see the telephone number while calling i.e. 18581234567 ( I think it is the same no. always) on the emulator TAPI call info screen and then I click start call.thats it. The rest of the prob I have presented in my prev mail.
Anand.

I had similar problems on the emulator. Basically i could never get the phone number on the emulator.It will be always empty.But i was trying to get the device phoe number and not the caller id.I tried that in 1.1 and not in 2.0
Also when u initiate a call using TAPI emulation on emulator, Application will be suspended. Basically it fires EVT_APP_SUSPEND event.
Regards
Arun Bangari

I had similar problems on the emulator. Basically i could never get the phone number on the emulator.It will be always empty.But i was trying to get the device phoe number and not the caller id.I tried that in 1.1 and not in 2.0
Also when u initiate a call using TAPI emulation on emulator, Application will be suspended. Basically it fires EVT_APP_SUSPEND event.
Regards
Arun Bangari

Hi Anand and Arun,
I am also facing the same problem, there is nothing displayed when I print the Caller id retrieved by ITAPI_GetCallerID(). Can u tell me what u did to solve this problem? I am running it on emulator- tried both on 2.0 nd 3.0
Thanks in advance
Sowmya

Hi Anand and Arun,
I am also facing the same problem, there is nothing displayed when I print the Caller id retrieved by ITAPI_GetCallerID(). Can u tell me what u did to solve this problem? I am running it on emulator- tried both on 2.0 nd 3.0
Thanks in advance
Sowmya

Hi Sowmya,
You wont get the caller ID on emulator. It is supported only on device. Try to print the output on actual device screen on make a DBGPRINTF of that.
Anand.

Hi Sowmya,
You wont get the caller ID on emulator. It is supported only on device. Try to print the output on actual device screen on make a DBGPRINTF of that.
Anand.

thanks a lot anand. I now get the called id on the device. I have one more question. I want to retrieve the caller id even before the receiver answers it(b4 call is in progress). But when I use ITAPI_GetCallerID, I get the ID only after the user answers it. Am I missing something?
Thanks
Sowmya

thanks a lot anand. I now get the called id on the device. I have one more question. I want to retrieve the caller id even before the receiver answers it(b4 call is in progress). But when I use ITAPI_GetCallerID, I get the ID only after the user answers it. Am I missing something?
Thanks
Sowmya

hi sowmya
Quote:thanks a lot anand. I now get the called id on the device. I have one more question. I want to retrieve the caller id even before the receiver answers it(b4 call is in progress). But when I use ITAPI_GetCallerID, I get the ID only after the user answers it. Am I missing something?
I am also working on that app . i saw that u posted this 2-3 months back.recently am switched to Brew mobile app.do u got the solution to the above quote?if so please inform me how 2 get the called id beforre lifting the phone. i hav to check with my blocked phone numbers.if the number matches i hav to block?
thanks in advance

hi sowmya
Quote:thanks a lot anand. I now get the called id on the device. I have one more question. I want to retrieve the caller id even before the receiver answers it(b4 call is in progress). But when I use ITAPI_GetCallerID, I get the ID only after the user answers it. Am I missing something?
I am also working on that app . i saw that u posted this 2-3 months back.recently am switched to Brew mobile app.do u got the solution to the above quote?if so please inform me how 2 get the called id beforre lifting the phone. i hav to check with my blocked phone numbers.if the number matches i hav to block?
thanks in advance

Did anyone got the solution of getting the phone no before attending the call??
If yes wat is the solution.. :confused:

Did anyone got the solution of getting the phone no before attending the call??
If yes wat is the solution.. :confused:

Register for tapi status change notification using NMASK_TAPI_STATUS mask with AEECLSID_TAPI notifier class and look for PS_INCOMING phone state in EVT_NOTIFY.

Register for tapi status change notification using NMASK_TAPI_STATUS mask with AEECLSID_TAPI notifier class and look for PS_INCOMING phone state in EVT_NOTIFY.