🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12104

tapi

#12104
From: Aykut
Date: Sat, 23 Nov 2002 15:49
24 lines
1587 bytes
Hi,I initialize tapi like this

ErrNo:=lineInitializeEX(@Flineapp,hinstance,LineCallback,'',Cardinal(FNumDev
s),FAPIVersion,lineinitializeExparams);

I open the line like this

FMediaMode:=LINEMEDIAMODE_INTERACTIVEVOICE ;
  ErrNo:=LineOpen(FLineApp, FDev, @FLine, FVersion, 0, 0,
         LINECALLPRIVILEGE_OWNER , FMediaMode, nil)

Every thing is OK up to here.Errno=0 in both functions.

when a call is incoming
I catch LINECALLSTATE_OFFERING in callback function and call
 LineGetCallInfo(Fhcall,linecallinfo) but I get LINEERR_INVALCALLHANDLE
error so I can not get callerid info.

What am I missing ?

And if I use LINECALLPRIVILEGE_MONITOR instead of  LINECALLPRIVILEGE_OWNER
my callback function does not get fired.Why?

Thanks for help.
Technical Details
Message-ID: <3ddfa389@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,f19eba430de3b0a2,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2002-11-23 08:16:05 PST
From: "Aykut" <gazoz@ttp.com.tr>
Newsgroups: borland.public.delphi.nativeapi
Subject: tapi
Date: Sat, 23 Nov 2002 17:49:12 +0200
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 195.142.48.223
Message-ID: <3ddfa389@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038066569 195.142.48.223 (23 Nov 2002 07:49:29 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail