I am trying to write an application to make phone calls using the Telephony
API of PPC 2003.
If I use "lineMakeCall()" function I can get the call handle . Which
function should I use in order to get the call handle of the calls that I
have not originated like calls made by the native phone application or the
incoming calls.

Also i want my application to keep track of the phone call not made by it
and for that application should be able to acquire handle of the open line
and active calls on that line.

Re: how to get handle of call not originated through TAPI by Alex

Alex
Tue Sep 13 12:25:52 CDT 2005

lineOpen( ... LINECALLPRIVILEGE_MONITOR)
lineGetNewCalls

"manasi" <manasi@discussions.microsoft.com> wrote in message
news:68A752B6-A0BF-4858-B19F-CAFA271D93D8@microsoft.com...
>I am trying to write an application to make phone calls using the Telephony
> API of PPC 2003.
> If I use "lineMakeCall()" function I can get the call handle . Which
> function should I use in order to get the call handle of the calls that I
> have not originated like calls made by the native phone application or the
> incoming calls.
>
> Also i want my application to keep track of the phone call not made by it
> and for that application should be able to acquire handle of the open line
> and active calls on that line.
>


Re: how to get handle of call not originated through TAPI by manasi

manasi
Wed Sep 14 02:19:02 CDT 2005

Hello
thanks for the suggesstion .. I have tried this function but this only gives
me number of active call handles.
which function should i invoke now to retrieve the HCALL handle for the
active call as this call handle has to be passed as a parameter in
lineGetCallinfo() and lineGetCallStatus()

any suggesstions ??

"Alex Feinman [MVP]" wrote:

> lineOpen( ... LINECALLPRIVILEGE_MONITOR)
> lineGetNewCalls
>
> "manasi" <manasi@discussions.microsoft.com> wrote in message
> news:68A752B6-A0BF-4858-B19F-CAFA271D93D8@microsoft.com...
> >I am trying to write an application to make phone calls using the Telephony
> > API of PPC 2003.
> > If I use "lineMakeCall()" function I can get the call handle . Which
> > function should I use in order to get the call handle of the calls that I
> > have not originated like calls made by the native phone application or the
> > incoming calls.
> >
> > Also i want my application to keep track of the phone call not made by it
> > and for that application should be able to acquire handle of the open line
> > and active calls on that line.
> >
>
>

Re: how to get handle of call not originated through TAPI by Alex

Alex
Wed Sep 14 20:22:11 CDT 2005

lineGetNewCalls is supposed to return a list of all call handles on the
specified line in a LINECALLIST structure

"manasi" <manasi@discussions.microsoft.com> wrote in message
news:79F95978-B488-4DD9-8064-053D40A042D3@microsoft.com...
> Hello
> thanks for the suggesstion .. I have tried this function but this only
> gives
> me number of active call handles.
> which function should i invoke now to retrieve the HCALL handle for the
> active call as this call handle has to be passed as a parameter in
> lineGetCallinfo() and lineGetCallStatus()
>
> any suggesstions ??
>
> "Alex Feinman [MVP]" wrote:
>
>> lineOpen( ... LINECALLPRIVILEGE_MONITOR)
>> lineGetNewCalls
>>
>> "manasi" <manasi@discussions.microsoft.com> wrote in message
>> news:68A752B6-A0BF-4858-B19F-CAFA271D93D8@microsoft.com...
>> >I am trying to write an application to make phone calls using the
>> >Telephony
>> > API of PPC 2003.
>> > If I use "lineMakeCall()" function I can get the call handle . Which
>> > function should I use in order to get the call handle of the calls that
>> > I
>> > have not originated like calls made by the native phone application or
>> > the
>> > incoming calls.
>> >
>> > Also i want my application to keep track of the phone call not made by
>> > it
>> > and for that application should be able to acquire handle of the open
>> > line
>> > and active calls on that line.
>> >
>>
>>


Re: how to get handle of call not originated through TAPI by manasi

manasi
Fri Sep 16 08:03:01 CDT 2005


lineGetNewCall says
This function returns call handles to calls on a specified line or address
for which the application currently does not have handles.

this function returns Pointer to a variably sized data structure of type
LINECALLLIST. Upon successful completion of the request, call handles to all
selected calls are returned in this structure.

members of LINECALLLIST structure is:

Members
dwTotalSize
Total size allocated to this data structure, in bytes.
dwNeededSize
Size for this data structure that is needed to hold all the returned
information, in bytes.
dwUsedSize
Size of the portion of this data structure that contains useful information,
in bytes.
dwCallsNumEntries
Number of handles in the hCalls array.
dwCallsSize
Size of the array of call handles, in bytes.
dwCallsOffset
Offset from the beginning of the structure to the variably sized array of
HCALL handles. The size of the array is specified by the dwCallsSize member.

this "dwCallsNumEntries" gives me number of call handles but where actually
are the call handles stored..
suggesstions ???

"Alex Feinman [MVP]" wrote:

> lineGetNewCalls is supposed to return a list of all call handles on the
> specified line in a LINECALLIST structure
>
> "manasi" <manasi@discussions.microsoft.com> wrote in message
> news:79F95978-B488-4DD9-8064-053D40A042D3@microsoft.com...
> > Hello
> > thanks for the suggesstion .. I have tried this function but this only
> > gives
> > me number of active call handles.
> > which function should i invoke now to retrieve the HCALL handle for the
> > active call as this call handle has to be passed as a parameter in
> > lineGetCallinfo() and lineGetCallStatus()
> >
> > any suggesstions ??
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> lineOpen( ... LINECALLPRIVILEGE_MONITOR)
> >> lineGetNewCalls
> >>
> >> "manasi" <manasi@discussions.microsoft.com> wrote in message
> >> news:68A752B6-A0BF-4858-B19F-CAFA271D93D8@microsoft.com...
> >> >I am trying to write an application to make phone calls using the
> >> >Telephony
> >> > API of PPC 2003.
> >> > If I use "lineMakeCall()" function I can get the call handle . Which
> >> > function should I use in order to get the call handle of the calls that
> >> > I
> >> > have not originated like calls made by the native phone application or
> >> > the
> >> > incoming calls.
> >> >
> >> > Also i want my application to keep track of the phone call not made by
> >> > it
> >> > and for that application should be able to acquire handle of the open
> >> > line
> >> > and active calls on that line.
> >> >
> >>
> >>
>
>

Re: how to get handle of call not originated through TAPI by Alex

Alex
Wed Sep 21 02:56:12 CDT 2005

LINECALLIST is a VARSTRING structure
The variable data is stored at
(LPHCALL)(((LPBYTE)lpLineCallList) + lpLineCallList->dwCallsOffset)

"manasi" <manasi@discussions.microsoft.com> wrote in message
news:2C3EC0CA-8CE4-481C-A729-C45FE63DA045@microsoft.com...
>
> lineGetNewCall says
> This function returns call handles to calls on a specified line or address
> for which the application currently does not have handles.
>
> this function returns Pointer to a variably sized data structure of type
> LINECALLLIST. Upon successful completion of the request, call handles to
> all
> selected calls are returned in this structure.
>
> members of LINECALLLIST structure is:
>
> Members
> dwTotalSize
> Total size allocated to this data structure, in bytes.
> dwNeededSize
> Size for this data structure that is needed to hold all the returned
> information, in bytes.
> dwUsedSize
> Size of the portion of this data structure that contains useful
> information,
> in bytes.
> dwCallsNumEntries
> Number of handles in the hCalls array.
> dwCallsSize
> Size of the array of call handles, in bytes.
> dwCallsOffset
> Offset from the beginning of the structure to the variably sized array of
> HCALL handles. The size of the array is specified by the dwCallsSize
> member.
>
> this "dwCallsNumEntries" gives me number of call handles but where
> actually
> are the call handles stored..
> suggesstions ???
>
> "Alex Feinman [MVP]" wrote:
>
>> lineGetNewCalls is supposed to return a list of all call handles on the
>> specified line in a LINECALLIST structure
>>
>> "manasi" <manasi@discussions.microsoft.com> wrote in message
>> news:79F95978-B488-4DD9-8064-053D40A042D3@microsoft.com...
>> > Hello
>> > thanks for the suggesstion .. I have tried this function but this only
>> > gives
>> > me number of active call handles.
>> > which function should i invoke now to retrieve the HCALL handle for the
>> > active call as this call handle has to be passed as a parameter in
>> > lineGetCallinfo() and lineGetCallStatus()
>> >
>> > any suggesstions ??
>> >
>> > "Alex Feinman [MVP]" wrote:
>> >
>> >> lineOpen( ... LINECALLPRIVILEGE_MONITOR)
>> >> lineGetNewCalls
>> >>
>> >> "manasi" <manasi@discussions.microsoft.com> wrote in message
>> >> news:68A752B6-A0BF-4858-B19F-CAFA271D93D8@microsoft.com...
>> >> >I am trying to write an application to make phone calls using the
>> >> >Telephony
>> >> > API of PPC 2003.
>> >> > If I use "lineMakeCall()" function I can get the call handle . Which
>> >> > function should I use in order to get the call handle of the calls
>> >> > that
>> >> > I
>> >> > have not originated like calls made by the native phone application
>> >> > or
>> >> > the
>> >> > incoming calls.
>> >> >
>> >> > Also i want my application to keep track of the phone call not made
>> >> > by
>> >> > it
>> >> > and for that application should be able to acquire handle of the
>> >> > open
>> >> > line
>> >> > and active calls on that line.
>> >> >
>> >>
>> >>
>>
>>