For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > March 2006 > making phone call









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 making phone call
anony

2006-03-23, 4:13 am

hi
I am developing a tapi appliction.
I want to make a call using linemakecall() api
But, when i try to open the line using lineopen() with mediamode as
LINEMEDIAMODE_INTERACTIVDVOICE and privilage as OWNER.

its throwing me the invalid media mode error.
I tried this in the MPX200.
I tried to get the device capabilities even in that its not supporting
interactive media mode.
Can anyone suggest what media mode i should use.
i have also used the combination of LINEMEDIAMODE_AUTOMATEDVOICE and
NONE.
Still the error was invalid media mode.

I am not able to debug with the device too, used the emulator for
debugging.


My code is

dwReturn = lineInitialize (&g_hLineApp, g_hInst,(LINECALLBACK)
lineCallbackFunc, g_szAppName,
&g_dwNumDevs);


lineNegotiateAPIVersion(g_hLineApp, dwDeviceID,
EARLY_TAPI_VERSION, TAPI_VERSION_2_0,
m_dwAPIVersion, 0);


// Open the current line.
dwReturn = lineOpen (
g_hLineApp, //neotiate/ Usage handle for TAPI
m_dwDeviceID, // Cannot use the LINEMAPPER value
&m_hLine, // Line handle
m_dwAPIVersion,
// API version number
0, // Must set to zero for Windows CE
0, // No data passed back
LINECALLPRIVILEGE_OWNER, // Can only make an outgoing call
LINEMEDIAMODE_INTERACTIVEVOICE , //
Media mode
NULL);


here its throwing me LINEERR_INVALMEDIAMODE error.

Thanks in Advance

Yaroslav Goncharov

2006-03-23, 8:08 am

Did you consider PhoneMakeCall for making voice calls?

--
Yaroslav Goncharov
Spb Software House, http://spbsoftwarehouse.com
Pocket PC Developer Network, http://pocketpcdn.com


"anony" <anony.here@gmail.com> wrote in message
news:1143098884.489979.204680@v46g2000cwv.googlegroups.com...
> hi
> I am developing a tapi appliction.
> I want to make a call using linemakecall() api
> But, when i try to open the line using lineopen() with mediamode as
> LINEMEDIAMODE_INTERACTIVDVOICE and privilage as OWNER.
>
> its throwing me the invalid media mode error.
> I tried this in the MPX200.
> I tried to get the device capabilities even in that its not supporting
> interactive media mode.
> Can anyone suggest what media mode i should use.
> i have also used the combination of LINEMEDIAMODE_AUTOMATEDVOICE and
> NONE.
> Still the error was invalid media mode.
>
> I am not able to debug with the device too, used the emulator for
> debugging.
>
>
> My code is
>
> dwReturn = lineInitialize (&g_hLineApp, g_hInst,(LINECALLBACK)
> lineCallbackFunc, g_szAppName,
> &g_dwNumDevs);
>
>
> lineNegotiateAPIVersion(g_hLineApp, dwDeviceID,
> EARLY_TAPI_VERSION, TAPI_VERSION_2_0,
> m_dwAPIVersion, 0);
>
>
> // Open the current line.
> dwReturn = lineOpen (
> g_hLineApp, //neotiate/ Usage handle for TAPI
> m_dwDeviceID, // Cannot use the LINEMAPPER value
> &m_hLine, // Line handle
> m_dwAPIVersion,
> // API version number
> 0, // Must set to zero for Windows CE
> 0, // No data passed back
> LINECALLPRIVILEGE_OWNER, // Can only make an outgoing call
> LINEMEDIAMODE_INTERACTIVEVOICE , //
> Media mode
> NULL);
>
>
> here its throwing me LINEERR_INVALMEDIAMODE error.
>
> Thanks in Advance
>



Sponsored Links







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

Copyright 2008 codecomments.com