For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > March 2006 > need help on TAPI dialing...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author need help on TAPI dialing...
Aftab Alam

2006-03-17, 7:00 pm

Hi All,

I am making an Application using TAPI
1- to detect out going call,
2- verify the dialed number
3- if specific number then dial another number


here is what I am doing in the code

InitlizeTAPI
handle events in line call back
on finding a specific number I dissconnect and recieve
LINECALLSTATE_IDLE, here I use

PhoneMakeCall or tapiRequestMakeCall or lineMakeCall or
I did using
::keybd_event(VK_F3, 0, 0, 0);
::keybd_event(VK_F3, 0, KEYEVENTF_KEYUP, 0);

::keybd_event(0x33, 0, 0, 0);
::keybd_event(0x33, 0, KEYEVENTF_KEYUP, 0);

::keybd_event(0x32, 0, 0, 0);
::keybd_event(0x32, 0, KEYEVENTF_KEYUP, 0);

::keybd_event(0x31, 0, 0, 0);
::keybd_event(0x31, 0, KEYEVENTF_KEYUP, 0);

::keybd_event(VK_F3, 0, 0, 0);
::keybd_event(VK_F3, 0, KEYEVENTF_KEYUP, 0);

but it takes almost 15 seconds before it gets connected on
smartphone 2003 (qtek 8020)
and on smartphone 2005 (qtek 8310) it takes time and then hang as soon as
the number is connected.

If I use a simple application just making a call using any of the above
methods it connects to server very quick
I am really and on smartphone 2005 I am really worried.

I tried making a simple application which has only winmain and dials a
number and called using CreateProcess
in LINECALLSTATE_IDLE, when it works alone it works quick but when it is
called from within application having
the lineCallBack implemented then it takes the long time on sp 2003 and
hangs after connecting in 2005.

please I am looking forward for any suggestions....

regards
Aftab Alam






Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com