using LinePickup in TB20 - failed
From: MT (TSAIM_at_MFT.COM)
Date: 05/22/04
- Next message: Sasha: "Half Duplex & SpeakerPhone Capabillity of the Voice modems"
- Previous message: Alex Feinman [MVP]: "Re: Setting modem properties"
- Next in thread: Andreas Marschall [MVP TAPI]: "Re: using LinePickup in TB20 - failed"
- Reply: Andreas Marschall [MVP TAPI]: "Re: using LinePickup in TB20 - failed"
- Reply: Grant Schenck: "Re: using LinePickup in TB20 - failed"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 May 2004 04:54:09 -0400
I would apprecicate your help here. Thanks in advance.
I am confused about what value needed to be specified with those 5
paramaters in the LinePickup().
The status is ext 01 called ext 202, internal call. Ext 102 is ringing.
In TB20 steps as below:
(in this situtation, both sets are speaker phone set)
Openline ext02 (specified LineDevID, returned got LineHandle "11123")
Openline ext01 (returned got LineHandle "11145")
LineMakeCall (default in TB20, using ext01 line handle, call ext02
,specified ext02 linehandle, returned call handle 11778)
.. Ext02.. Ringing...
LinePickup ()
(Below I must did something wrong, and your help will be greatful)
hLine:
Handle to the open line device on which a call is to be picked up.
What is that means ? in this case which handle , 1145 or 1123 ?)
dwAddressID: Specified
Address on hLine at which the pickup is to be originated. An address
identifier is permanently associated with an address; the identifier remains
constant across operating system upgrades.
I can not understand what it means here again.
"at which the pickup is to be originated" Can't understand this statement?
lphCall: I guess this is to be a returned value for the call handle when
function is completed.
lpszDestAddress
Pointer to a null-terminated character buffer that contains the address
whose call is to be picked up. The address is in standard dialable address
format.
I don'tknow why I can't understand this statemen, "that contains the
address whose call is to be picked up." Which ext is it means here? ext01
or ext02. What that address would be?
lpszGroupID
Pointer to a null-terminated character buffer containing the group
identifier to which the alerting station belongs. This parameter is required
on some switches to pick up calls outside of the current pickup group.
I assumed that I can ignore this one and specify NULL here. Because I am
having the ringed extension 02 set to picup its own call. It is not a group
pickup in this case. But I am not sure.
All I know is whatever the value combination of above that I specified in
LinePickup () , I can't make it work.
Anyone like to help ? Thanks, again.
- - - - TB.LOG capture ---- - -- -
4:47.37.139 : Calling lineInitializeEx
lphLineApp=x26d700
hInstance=x1000000
lpfnCallback=x10158df
lpszFriendlyAppName=x6f45c
lpdwNumDevs=x6f434
lpdwAPIVersion=x6f4c8
->dwAPIVersion=x20000
lpInitExParams=x6f41c
->dwOptions=x3
4:47.37.149 : lineInitializeEx returned SUCCESS
num line devs = 167
4:47.54.874 : Calling lineOpen
hLineApp=x800003ff
dwDeviceID=x97
lphLine=x26def0
APIVersion=x20000
dwExtVersion=x0
dwCallbackInstance=x0
dwPrivileges=x1
dwMediaModes=x10
lpCallParams=x0
4:47.54.904 : lineOpen returned SUCCESS
4:48.2.746 : Calling lineOpen
hLineApp=x800003ff
dwDeviceID=x96
lphLine=x26df20
APIVersion=x20000
dwExtVersion=x0
dwCallbackInstance=x0
dwPrivileges=x1
dwMediaModes=x10
lpCallParams=x0
4:48.2.756 : lineOpen returned SUCCESS
4:48.40.570 : Calling lineMakeCall
hLine=x11145
lphCall=x26d730
lpszDestAddress=x6f3d4
dwCountryCode=x0
lpCallParams=x0
4:48.40.600 : lineMakeCall returned x11156
4:48.40.610 : received LINE_REPLY
device=x0
cbInst=x0
param1=x11156,
param2=x0,
param3=x11178,
4:48.40.630 : received LINE_CALLSTATE
device=x11178
cbInst=x0
param1=x8, DIALTONE
param2=x0,
param3=x0,
4:48.40.650 : received LINE_CALLINFO
device=x11178
cbInst=x0
param1=x83c0, CALLID RELATEDCALLID ORIGIN REASON
CALLERID
param2=x0,
param3=x0,
4:48.40.660 : received LINE_CALLSTATE
device=x11178
cbInst=x0
param1=x10, DIALING
param2=x0,
param3=x0,
4:48.40.680 : received LINE_CALLSTATE
device=x11178
cbInst=x0
param1=x200, PROCEEDING
param2=x0,
param3=x0,
4:48.40.700 : received LINE_CALLINFO
device=x11178
cbInst=x0
param1=x10000, CALLEDID
param2=x0,
param3=x0,
4:48.40.710 : received LINE_CALLSTATE
device=x11178
cbInst=x0
param1=x20, RINGBACK
param2=x0,
param3=x0,
4:49.1.831 : Calling linePickup
hLine=x11145
dwAddressID=x0
lphCall=x26df50
lpszDestAddress=x6ed0c
lpszGroupID=x6ebfc
4:49.1.871 : linePickup returned x1119a
4:49.1.891 : received LINE_REPLY
device=x0
cbInst=x0
param1=x1119a,
param2=x80000048,
param3=x0,
LINEERR_OPERATIONFAILED
4:49.7.48 : received LINE_CALLSTATE
device=x11178
cbInst=x0
param1=x1, IDLE
param2=x0,
param3=x0,
4:49.7.58 : lineGetCallStatus returned SUCCESS
- Next message: Sasha: "Half Duplex & SpeakerPhone Capabillity of the Voice modems"
- Previous message: Alex Feinman [MVP]: "Re: Setting modem properties"
- Next in thread: Andreas Marschall [MVP TAPI]: "Re: using LinePickup in TB20 - failed"
- Reply: Andreas Marschall [MVP TAPI]: "Re: using LinePickup in TB20 - failed"
- Reply: Grant Schenck: "Re: using LinePickup in TB20 - failed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|