Re: using LineAnswer in TB20 - failed
From: Grant Schenck (schenckg_at_optonline.net)
Date: 05/24/04
- Next message: Andreas Marschall [MVP TAPI]: "Re: hCall NULL on LineAnswer"
- Previous message: Andreas Marschall [MVP TAPI]: "Re: Writing a TSP: Assigning Users"
- In reply to: MT: "Re: using LineAnswer in TB20 - failed"
- Next in thread: mt: "Re: using LineAnswer in TB20 - failed"
- Reply: mt: "Re: using LineAnswer in TB20 - failed"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 May 2004 09:12:50 -0400
I don't see a LINECALLSTATE_OFFERING event for the inbound side of the
call from x101 which should have presented at x102.
Why are you trying to use lineAnswer() on the outbound side of the
call? That makes no sense.
-- Grant Schenck Grant Schenck Software schenckg@optonline.net http://grantschenck.tripod.com "MT" <TSAIM@MFT.COM> wrote in message news:OVgUZkYQEHA.3944@tk2msftngp13.phx.gbl... > HI All, > > For lineAnswer(), I tried again with TB20 and with following steps. > > Open TB20.exe > *LineinitializeEx() > (check the Param square box under the menu bar) > *LineOpen (ext101, in dwAddress &H96, TB20 out lHandle x10767) > *LineOpen (ext102, in dwAddress &H97, TB20 out lHandle x10745) > *LineOpen (ext103, in dwAddress &H98, TB20 out lHandle x10723) > *LineOpen (ext104, in dwAddress &H99, TB20 out lHandle x106bc) > (multi open here to hopefully catch the Offering/Accepted State) > *LineMakeCall (ext101 , dial 102) > > > 7:55.13.21 : Calling lineMakeCall > hLine=x10767 > lphCall=x26d730 > lpszDestAddress=x6f3d4 > dwCountryCode=x0 > lpCallParams=x0 > 7:55.13.51 : lineMakeCall returned x1069a > 7:55.13.71 : received LINE_REPLY > device=x0 > cbInst=x0 > param1=x1069a, > param2=x0 > param3=x10678 <<<<< call handle > > With line 10767 making the call, TB20 generated a call handle x10678 > > > *LineGetCallInfo > (input the hCall returned from the MakeCall, 10678) > (to make sure the CallHandle is the right one to be used ) > > > 7:55.34.595 : Calling lineGetCallInfo > hCall=x10678 > lpCallInfo=x265498 > 7:55.34.605 : lineGetCallInfo returned SUCCESS > LINECALLINFO > dwTotalSize=x1000 > dwNeededSize=x178 > dwUsedSize=x178 > > hLine=x10767 <<< MATCH w/ext101 lineopen returned value > ^^^^^^ > dwLineDeviceID=x96 > ^^^ > dwBearerMode=x1, VOICE > dwRate=x4b00 > dwMediaMode=x4, INTERACTIVEVOICE > dwCallID=x7 > dwRelatedCallID=x7 > dwCallStates=xff7b, IDLE OFFERING DIALTONE DIALING > RINGBACK BUSY CONNECTED PROCEEDING ONHOLD CONFERENCED > ONHOLDPENDCONF ONHOLDPENDTRANSFER DISCONNECTED > UNKNOWN > dwOrigin=x1, OUTBOUND > dwReason=x1, DIRECT > dwNumOwners=x1 > dwTrunk=xffffffff > dwCallerIDFlags=x8, ADDRESS > dwCallerIDSize=x4 > dwCallerIDOffset=x144 > > 00313031 xxxxxxxx xxxxxxxx xxxxxxxx 101. > ^^^ <--- Match > dwCalledIDFlags=x8, ADDRESS > dwCalledIDSize=x4 > dwCalledIDOffset=x14c > 00323031 xxxxxxxx xxxxxxxx xxxxxxxx 102. > ^^^ <--- match > > dwConnectedIDFlags=x20, UNKNOWN > dwRedirectionIDFlags=x20, UNKNOWN > dwRedirectingIDFlags=x20, UNKNOWN > dwAppNameSize=xd > dwAppNameOffset=x158 > 69706154 6f724220 72657377 xxxxxx00 Tapi Browser. > > > (in LineAnswer below) > *LineAnswer -> Failed (using linehandle: 10678) > > 7:56.2.706 : Calling lineAnswer > > hCall=x10678 > ^^^^^^ <--- same call handle but not working here > > lpsUserUserInfo=x0 > dwSize=x0 > 7:56.2.716 : lineAnswer returned x10656 > 7:56.2.726 : received LINE_REPLY > device=x0 > cbInst=x0 > param1=x10656, > param2=x8000001c, > param3=x0, > LINEERR_INVALCALLSTATE <--- Due to invalCallState > > *LineDrop -> successfully drop the ringing call (same 10678 handle above) > > > Why LineAnswer not working here? > Why TB20 only see state sequence in MakeCall as > > dialtone -> dialing -> proceeding -> Ringback > > from the callHandle view. > > And no callsate/event reported from Linehandle 10745 (ie,ext 102).. > > > > -------------------------------------------- > --- TB20 LOG below , as described above --- > -------------------------------------------- > 7:54.4.508 : Calling lineInitializeEx > lphLineApp=x26d700 > hInstance=x1000000 > lpfnCallback=x10158df > lpszFriendlyAppName=x6f45c > lpdwNumDevs=x6f434 > lpdwAPIVersion=x6f4c8 > ->dwAPIVersion=x20000 > lpInitExParams=x6f41c > ->dwOptions=x3 > 7:54.4.518 : lineInitializeEx returned SUCCESS > num line devs = 167 > 7:54.16.559 : Calling lineOpen > hLineApp=x800003ff > dwDeviceID=x96 > lphLine=x26def0 > APIVersion=x20000 > dwExtVersion=x0 > dwCallbackInstance=x0 > dwPrivileges=x1 > dwMediaModes=x10 > lpCallParams=x0 > 7:54.16.589 : lineOpen returned SUCCESS > 7:54.23.125 : Calling lineOpen > hLineApp=x800003ff > dwDeviceID=x97 > lphLine=x26df20 > APIVersion=x20000 > dwExtVersion=x0 > dwCallbackInstance=x0 > dwPrivileges=x1 > dwMediaModes=x10 > lpCallParams=x0 > 7:54.23.155 : lineOpen returned SUCCESS > 7:54.32.88 : Calling lineOpen > hLineApp=x800003ff > dwDeviceID=x98 > lphLine=x26df50 > APIVersion=x20000 > dwExtVersion=x0 > dwCallbackInstance=x0 > dwPrivileges=x1 > dwMediaModes=x10 > lpCallParams=x0 > 7:54.32.118 : lineOpen returned SUCCESS > 7:54.39.617 : Calling lineOpen > hLineApp=x800003ff > dwDeviceID=x99 > lphLine=x26df80 > APIVersion=x20000 > dwExtVersion=x0 > dwCallbackInstance=x0 > dwPrivileges=x1 > dwMediaModes=x10 > lpCallParams=x0 > 7:54.39.647 : lineOpen returned SUCCESS > 7:55.13.21 : Calling lineMakeCall > hLine=x10767 > lphCall=x26d730 > lpszDestAddress=x6f3d4 > dwCountryCode=x0 > lpCallParams=x0 > 7:55.13.51 : lineMakeCall returned x1069a > 7:55.13.71 : received LINE_REPLY > device=x0 > cbInst=x0 > param1=x1069a, > param2=x0, > param3=x10678, > 7:55.13.91 : received LINE_CALLSTATE > device=x10678 > cbInst=x0 > param1=x8, DIALTONE > param2=x0, > param3=x0, > 7:55.13.111 : received LINE_CALLINFO > device=x10678 > cbInst=x0 > param1=x83c0, CALLID RELATEDCALLID ORIGIN REASON > CALLERID > param2=x0, > param3=x0, > 7:55.13.131 : received LINE_CALLSTATE > device=x10678 > cbInst=x0 > param1=x10, DIALING > param2=x0, > param3=x0, > 7:55.13.141 : received LINE_CALLSTATE > device=x10678 > cbInst=x0 > param1=x200, PROCEEDING > param2=x0, > param3=x0, > 7:55.13.161 : received LINE_CALLINFO > device=x10678 > cbInst=x0 > param1=x10000, CALLEDID > param2=x0, > param3=x0, > 7:55.13.171 : received LINE_CALLSTATE > device=x10678 > cbInst=x0 > param1=x20, RINGBACK > param2=x0, > param3=x0, > 7:55.34.595 : Calling lineGetCallInfo > hCall=x10678 > lpCallInfo=x265498 > 7:55.34.605 : lineGetCallInfo returned SUCCESS > LINECALLINFO > dwTotalSize=x1000 > dwNeededSize=x178 > dwUsedSize=x178 > hLine=x10767 > dwLineDeviceID=x96 > dwBearerMode=x1, VOICE > dwRate=x4b00 > dwMediaMode=x4, INTERACTIVEVOICE > dwCallID=x7 > dwRelatedCallID=x7 > dwCallStates=xff7b, IDLE OFFERING DIALTONE DIALING > RINGBACK BUSY CONNECTED PROCEEDING ONHOLD CONFERENCED > ONHOLDPENDCONF ONHOLDPENDTRANSFER DISCONNECTED > UNKNOWN > dwOrigin=x1, OUTBOUND > dwReason=x1, DIRECT > dwNumOwners=x1 > dwTrunk=xffffffff > dwCallerIDFlags=x8, ADDRESS > dwCallerIDSize=x4 > dwCallerIDOffset=x144 > 00313031 xxxxxxxx xxxxxxxx xxxxxxxx 101. > dwCalledIDFlags=x8, ADDRESS > dwCalledIDSize=x4 > dwCalledIDOffset=x14c > 00323031 xxxxxxxx xxxxxxxx xxxxxxxx 102. > dwConnectedIDFlags=x20, UNKNOWN > dwRedirectionIDFlags=x20, UNKNOWN > dwRedirectingIDFlags=x20, UNKNOWN > dwAppNameSize=xd > dwAppNameOffset=x158 > 69706154 6f724220 72657377 xxxxxx00 Tapi Browser. > 7:56.2.706 : Calling lineAnswer > hCall=x10678 > lpsUserUserInfo=x0 > dwSize=x0 > 7:56.2.716 : lineAnswer returned x10656 > 7:56.2.726 : received LINE_REPLY > device=x0 > cbInst=x0 > param1=x10656, > param2=x8000001c, > param3=x0, > LINEERR_INVALCALLSTATE > 7:56.11.639 : Calling lineDrop > hCall=x10678 > lpsUserUserInfo=x6f3d4 > dwSize=x12 > 7:56.11.649 : lineDrop returned x10645 > 7:56.11.669 : received LINE_REPLY > device=x0 > cbInst=x0 > param1=x10645, > param2=x0, > param3=x0, > 7:56.11.679 : received LINE_CALLSTATE > device=x10678 > cbInst=x0 > param1=x1, IDLE > param2=x0, > param3=x0, > 7:56.11.689 : lineGetCallStatus returned SUCCESS > >
- Next message: Andreas Marschall [MVP TAPI]: "Re: hCall NULL on LineAnswer"
- Previous message: Andreas Marschall [MVP TAPI]: "Re: Writing a TSP: Assigning Users"
- In reply to: MT: "Re: using LineAnswer in TB20 - failed"
- Next in thread: mt: "Re: using LineAnswer in TB20 - failed"
- Reply: mt: "Re: using LineAnswer in TB20 - failed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|