How to make a voice call | developer.brewmp.com How to make a voice call | developer.brewmp.com

Developer

How to make a voice call

Forums:

Hi all,

I am facing a problem in the usage of ITAPI. When i call ITAPI_MakeVoiceCall(pMe->pITAPI, "8585551234", 0); it is just suspending my current application. privacy dialog is not getting displayed. Is it programmer's job to display it or BREW does it?

Regards,
Syed.

**********
Actually, i have an application which displays phone number in HTMLViewer. so when i create an event, my HTMLViewer notify function is called. Inside the notify function i am calling ITAPI_MakeVoiceCall(pMe->pITAPI, "8585551234", 0); It is returning success but the dialog is not visible.

Here is the code of the NotifyFunction

static void MyAppHTML_Notify (MyApp* pMe, HViewNotify* pNotify )
{
switch (pNotify->code)
{
case HVN_JUMP:
case HVN_SUBMIT:
{
DBGPRINTF("Here is the call");

if(ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_TAPI,(void**)&pMe->pITAPI)!=SUCCESS)
{
return;
}
ITAPI_MakeVoiceCall(pMe->pITAPI, "8585551234", 0);

}
break;
}
return;

Please note that it is in Simulator.
**********

Can i simulate the phone call using ITAPI_MakeVoiceCall( ) ? or only phone supports ITAPI interface?

Can i simulate the phone call using ITAPI_MakeVoiceCall( ) ? or only phone supports ITAPI interface?

Actually that code was working fine. But it wont show the output in simulator. To see that an outgoing call is made, we have to see "Tools->TAPI Emulation".
Here is the reference:
http://brewforums.qualcomm.com/showthread.php?t=16707&highlight=ITAPI_Ma...

Actually that code was working fine. But it wont show the output in simulator. To see that an outgoing call is made, we have to see "Tools->TAPI Emulation".
Here is the reference:
http://brewforums.qualcomm.com/showthread.php?t=16707&highlight=ITAPI_Ma...