problem in ITAPI_MakeVoiceCall | developer.brewmp.com problem in ITAPI_MakeVoiceCall | developer.brewmp.com

Developer

problem in ITAPI_MakeVoiceCall

Forums:

Hi All,
i' using ITAPI_MakeVoiceCall method to call a particular no..
but when i run the program i got a simulator error..
can anyone help me to overcome this problem...

my code is
ITAPI_MakeVoiceCall( pMe->pITapi, "555", 0 );
i used this method under a key event.
I dont know whether i have used it correctly or not...
can anyone help me please.....

Try debugging your code to find the actual line that's causing the crash. Are you sure your pointer to ITAPI is valid?

Try debugging your code to find the actual line that's causing the crash. Are you sure your pointer to ITAPI is valid?

mohlendo wrote:Try debugging your code to find the actual line that's causing the crash. Are you sure your pointer to ITAPI is valid?
Hi,
In my code
ITAPI_MakeVoiceCall( pMe->pITapi, "555", 0 );
pITapi is the pointer which i have created for the ITAPI interface and pMe is the pointer which i created for the structure..
my structure is ,
typedef struct _architecture {
AEEApplet a ; // First element of this structure must be AEEApplet
AEEDeviceInfo DeviceInfo; // always have access to the hardware device information
IImage *pImage;
IImage *pLogo;
IImage *pFrameImg;
IImage *pImages[9];
// add your own variables here...
IStatic* m_pMenu;
int state;
int fig;
int pos;
int show;
int stop;
int start;
AEERect m_rScreenRect;
//Text Control
ITextCtl *pIText;
ITAPI *pITapi;
} architecture;
please help me...
i'm new to brew applications..
i'm doing it without any training...
thanks in advance...

mohlendo wrote:Try debugging your code to find the actual line that's causing the crash. Are you sure your pointer to ITAPI is valid?
Hi,
In my code
ITAPI_MakeVoiceCall( pMe->pITapi, "555", 0 );
pITapi is the pointer which i have created for the ITAPI interface and pMe is the pointer which i created for the structure..
my structure is ,
typedef struct _architecture {
AEEApplet a ; // First element of this structure must be AEEApplet
AEEDeviceInfo DeviceInfo; // always have access to the hardware device information
IImage *pImage;
IImage *pLogo;
IImage *pFrameImg;
IImage *pImages[9];
// add your own variables here...
IStatic* m_pMenu;
int state;
int fig;
int pos;
int show;
int stop;
int start;
AEERect m_rScreenRect;
//Text Control
ITextCtl *pIText;
ITAPI *pITapi;
} architecture;
please help me...
i'm new to brew applications..
i'm doing it without any training...
thanks in advance...

Did u get the create instance success for the AEECLSID_TAPI?
---------------------------------
Sreehari
BREW Developer

Did u get the create instance success for the AEECLSID_TAPI?
---------------------------------
Sreehari
BREW Developer

sreeharig wrote:Did u get the create instance success for the AEECLSID_TAPI?
---------------------------------
Sreehari
BREW Developer
Hi,
I didnt get the create instance with AEECLSID_TAPI success...
What should i do?
please reply me....

sreeharig wrote:Did u get the create instance success for the AEECLSID_TAPI?
---------------------------------
Sreehari
BREW Developer
Hi,
I didnt get the create instance with AEECLSID_TAPI success...
What should i do?
please reply me....

create the instance before like this
ITAPI* pItapi;
int result;
if(ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_TAPI, (void**)&pMe->pItapi) == SUCCESS)
result = ITAPI_MakeVoiceCall(pItapi, PHONENUM, 0);
you can check return value of result if the call doesn't go up

create the instance before like this
ITAPI* pItapi;
int result;
if(ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_TAPI, (void**)&pMe->pItapi) == SUCCESS)
result = ITAPI_MakeVoiceCall(pItapi, PHONENUM, 0);
you can check return value of result if the call doesn't go up

zkac054 wrote:create the instance before like this
ITAPI* pItapi;
int result;
if(ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_TAPI, (void**)&pMe->pItapi) == SUCCESS)
result = ITAPI_MakeVoiceCall(pItapi, PHONENUM, 0);
you can check return value of result if the call doesn't go up
Hi...
Thanks for your reply..
I tried that but the if condition in that code is not success..
so nothing happened...
why i'm not able to create instance?
Is there any errors?

zkac054 wrote:create the instance before like this
ITAPI* pItapi;
int result;
if(ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_TAPI, (void**)&pMe->pItapi) == SUCCESS)
result = ITAPI_MakeVoiceCall(pItapi, PHONENUM, 0);
you can check return value of result if the call doesn't go up
Hi...
Thanks for your reply..
I tried that but the if condition in that code is not success..
so nothing happened...
why i'm not able to create instance?
Is there any errors?

Check your mif configuration.
You have to define TAPI option in privileges of your mif file

Check your mif configuration.
You have to define TAPI option in privileges of your mif file

gusak wrote:Check your mif configuration.
You have to define TAPI option in privileges of your mif file
Hi ,
Thanks..
I set the privilege to TAPI..
But still i have the same problem.....
please help me....

gusak wrote:Check your mif configuration.
You have to define TAPI option in privileges of your mif file
Hi ,
Thanks..
I set the privilege to TAPI..
But still i have the same problem.....
please help me....

Debug and find out what error code is returned from the CreateInstance call.

Debug and find out what error code is returned from the CreateInstance call.