Guest Ben Harper Report post Posted 11/08/2005 02:37 AM I am attempting to use the Dialer_MakeCall to make an internal call and then transfer this to an outside number. I would like the internal operator to be able to pickup the call and be greeted by the sound of the outbound call ringing and awaiting an answer. I am using the sample you provided in the help files, set vg = CreateObject("VoiceGuide.CommandLink") vg.Dialer_MakeCall "XXX", "dxxxB2C3", "", "c:\progra......vgs" set vg = Nothing I am using both a D/4PCI and a D/4PCI-U card, 4 lines each, which I understand cannot be bridged. So I assumed could: 1)Use vg.Dialer_MakeCall to call an internal extension & receive back the lineid the internal call was made on 2)Use this line ID to make a Result return variable containing the outbound number for the script nominated in Dialer_MakeCall to transfer to. This works fine when i put my mobile number directly into the transfer module. However when i try and use a VG Variable (result returned in the 2nd step above to lineID 5 which was as the line the internal call was being made on), voiceguide states that it is ignoring the returned information as the line id is probrably incorrect? What Am I doing wrong? It must be in the result return even though I am result returning to the line ID that i was returned by VG? 131804.97 0 cl Dialer_MakeCall 310, dxxxB1C1, , C:\Program Files\VoiceGuide\Scripts\VGAutoDialTest.vgs 131804.97 0 Search for free lines in range [5-12] 131804.98 5 Calling 310 131804.98 5 TimeoutSet 3600 EV_TIMEOUT_HANGUP 131805.16 5 cl Run_ResultReturn >>[ToCall]{XXXXXXXXXX}<< 131805.16 5 cl Run_ResultReturn hCall=0 - ignoring returned information (Note: iLineId is probably incorrect, please check this in calling code.) 131805.53 5 tapi Reply (LineEvReply) ok 66426 0 131805.53 5 linedevstate 2048 0 0 131805.53 5 callstate DIALTONE 66185 0 0 131805.53 5 callstate DIALING 66185 0 0 131805.53 5 callstate PROCEEDING 66185 0 0 131805.53 5 callinfo CALLEDID 131805.53 5 callinfo REASON 131805.53 5 Lev_CallerID [0000,] 131805.53 5 callinfo ORIGIN 131812.45 5 callstate CONNECTED 66185,1,0 131812.45 5 WorkingModeTAPI@Connected= 131812.45 5 WorkingModeScript@Connected= 131812.50 5 rv add [$RV_STARTTIME]{8/11/2005 1:18:12 PM} 131812.53 5 rv add [$RV_DEVICEID]{5} 131812.55 5 rv add [$RV_CIDNAME]{} 131812.58 5 AddRVns [PathApp]{C:\Program Files\VoiceGuide\} 131812.59 5 rv add [$RV_CALLEDNUMBER]{310} 131812.63 5 AddRVns [OutDial_Result]{Contacted_Human} 131812.64 5 Live person answered, starting C:\Program Files\VoiceGuide\Scripts\VGAutoDialTest.vgs 131812.67 2 tr NewVgsVgm_Goto C:\Program Files\VoiceGuide\Scripts\VGAutoDialTest.vgs,,,,,0 131812.69 5 rv add [scriptEnd_Time]{8/11/2005 1:18:12 PM} 131812.72 5 rv add [scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\VGAutoDialTest.vgs} 131812.75 5 rv add [scriptEnd_Goto_Module]{} 131812.77 5 rv add [scriptStart_Time]{8/11/2005 1:18:12 PM} 131812.80 0 LoadedVgs_Find C:\Program Files\VoiceGuide\Scripts\VGAutoDialTest.vgs at idx=4 131812.81 5 AddRVns [scriptsPath]{C:\Program Files\VoiceGuide\Scripts\} 131812.84 5 cl NewVgsVgm_RunModule module not found: 131812.86 2 tr NewVgsVgm_Goto 1 131812.89 2 tr NewVgsVgm_Goto 2 131812.92 5 TimeoutClear 131812.94 5 TimeoutSet 0.4 EV_TIMEOUT_READYTOBEGINTRANSFER 131812.97 2 tr NewVgsVgm_Goto end 131813.36 5 Timer fired EV_TIMEOUT_READYTOBEGINTRANSFER 131813.38 5 ScriptEventCode 9012 iLineState=1900 131813.41 5 LsXferStart EV_TIMEOUT_READYTOBEGINTRANSFER 131813.42 5 TimeoutSet 30 EV_TIMEOUT_ANNOUNCED_TRANSFER_ATTEMPT_TOOK_TOO_LONG 131813.45 5 RVreplace start: [$RV[ToCall]] 131813.47 5 RVns [OutDial_Result]{Contacted_Human}[scriptEnd_Time]{8/11/2005 1:18:12 PM}[scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\VGAutoDialTest.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{8/11/2005 1:18:12 PM}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\} 131813.50 5 RVreplace end: [] 131813.52 5 [TransBen] Blind Transfer to (Generate) 131813.56 5 tapic lineGenerateDigits(66185,!,0) => 0 131813.94 5 generate LINEGENERATETERM_DONE 131813.97 5 TimeoutSet 1 EV_TAPI_GENERATE 131815.00 5 Timer fired EV_TAPI_GENERATE 131815.02 5 ScriptEventCode 9602 iLineState=1900 131815.05 5 LsXferStart EV_TAPI_GENERATE 131815.06 5 TimeoutSet 1 EV_HOOKFLASHFINISHED 131816.19 5 Timer fired EV_HOOKFLASHFINISHED 131816.20 5 ScriptEventCode 9200 iLineState=1905 131816.23 5 LsXferPlayVts EV_HOOKFLASHFINISHED 131816.25 5 ScriptEventCode 9602 iLineState=1905 131816.28 5 LsXferPlayVts EV_TAPI_GENERATE 131816.30 5 TimeoutSet 3 EV_TIMEOUT_HANGUP 131819.61 5 Timer fired EV_TIMEOUT_HANGUP 131819.63 5 ScriptEventCode 9001 iLineState=1905 131819.66 5 LsXferPlayVts EV_TIMEOUT_HANGUP 131819.67 5 rv add [Hangup Time]{8/11/2005 1:18:19 PM} 131819.70 5 Hanging up call... 131819.72 5 RecSoundStop ok 131819.75 5 PlaySoundStop err=0 131819.78 5 TimeoutSet 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP 131819.80 5 fnHangupCall end 131819.84 5 linedevstate 2048 0 0 131819.88 5 callstate IDLE 66185 0 0 131819.89 5 WorkingMode@Idle= 131819.92 5 TimeoutClear 131819.94 5 TimeoutSet 1 EV_TIMEOUT_TIMETOREINITLINE 131819.97 5 tapi Reply (LineEvReply) ok 66028 0 131820.97 5 Timer fired EV_TIMEOUT_TIMETOREINITLINE 131820.98 5 ScriptEventCode 9008 iLineState=900 131821.02 5 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE 131821.03 5 ReinitTelephony due to IDLE 131821.06 5 tapic lineDeallocateCall(MainCall:66185) 0 131821.23 5 lineOpen(5)=> 131821.25 5 Waiting for a call... 131821.28 5 LineHandle=65706 131821.30 5 TimeoutSet 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT 131824.61 5 Timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT 131824.63 5 ScriptEventCode 9013 iLineState=900 131825.55 5 linedevstate 2048 0 0 131825.56 5 callstate OFFERING 65815 0 4 131825.59 5 Answer the call at 8/11/2005 1:18:25 PM 131825.63 5 lineAnswer(65815) => 66341 131825.64 5 callinfo CALLEDID 131825.67 5 callinfo ORIGIN 131825.69 5 ring 0 131826.17 5 callstate CONNECTED 65815,1,0 131826.19 5 WorkingModeTAPI@Connected= 131826.22 5 WorkingModeScript@Connected= 131826.23 5 Inband detection start (7 patterns loaded) 131826.27 5 TimeoutSet 5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131826.28 5 tapi Reply (LineEvReply) ok 66341 0 131826.31 5 callinfo MONITORMODES 131826.34 5 dtmf * (65815,42,2) 131826.36 5 ScriptEventCode 42 iLineState=4100 131826.39 5 LsIndialSignalCapture * 131826.41 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131826.47 5 dtmf * (65815,42,2) 131826.50 5 ScriptEventCode 42 iLineState=4100 131826.52 5 LsIndialSignalCapture * * 131826.55 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131826.64 5 dtmf 9 (65815,57,2) 131826.67 5 ScriptEventCode 57 iLineState=4100 131826.70 5 LsIndialSignalCapture 9 ** 131826.72 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131826.86 5 dtmf * (65815,42,2) 131826.88 5 ScriptEventCode 42 iLineState=4100 131826.91 5 LsIndialSignalCapture * **9 131826.92 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131827.05 5 dtmf * (65815,42,2) 131827.06 5 ScriptEventCode 42 iLineState=4100 131827.09 5 LsIndialSignalCapture * **9* 131827.13 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131827.22 5 dtmf 3 (65815,51,2) 131827.25 5 ScriptEventCode 51 iLineState=4100 131827.28 5 LsIndialSignalCapture 3 **9** 131827.30 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131827.41 5 dtmf 1 (65815,49,2) 131827.42 5 ScriptEventCode 49 iLineState=4100 131827.45 5 LsIndialSignalCapture 1 **9**3 131827.48 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131827.61 5 dtmf 0 (65815,48,2) 131827.63 5 ScriptEventCode 48 iLineState=4100 131827.66 5 LsIndialSignalCapture 0 **9**31 131827.69 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131827.80 5 dtmf * (65815,42,2) 131827.83 5 ScriptEventCode 42 iLineState=4100 131827.84 5 LsIndialSignalCapture * **9**310 131827.88 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131827.98 5 dtmf 1 (65815,49,2) 131828.00 5 ScriptEventCode 49 iLineState=4100 131828.03 5 LsIndialSignalCapture 1 **9**310* 131828.05 5 TimeoutSet 0.5 EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131828.52 5 Timer fired EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT 131828.53 5 ScriptEventCode 9011 iLineState=4100 131828.56 5 LsIndialSignalCapture EV_TIMEOUT_INBANDSIGNAL_INTERDIGIT Bla Bla Bla, Share this post Link to post
Guest Ben Harper Report post Posted 11/08/2005 02:40 AM I Just noticed in the trace that I am attempting to supply the result variable back to VG before it has recognised that there is a call on this line. So I have tried to use the vg.Line_state in a loop to wait and see when the line is no longer idle, But it seems that the linestate is not supported by the version I am using? Can I use Line_State from a vbscript in BG 5.2.1011 Thanks Share this post Link to post
SupportTeam Report post Posted 11/08/2005 07:42 AM Can I use Line_State from a vbscript in BG 5.2.1011 Try using $RV_CALLSTATE - if that does not work in v5.2.1011 then update the installed VG to latest v5.x version. If you require more assistance with your script(s) please post the actual script(s) which you are using. Share this post Link to post
Guest Ben Harper Report post Posted 11/08/2005 07:47 AM Sorry, I should have elaborated, I am actually trying to query the line state from vb on an .asp page. Can I not use some form of command like linestate = vg.Line_State(5) Thanks Share this post Link to post
SupportTeam Report post Posted 11/08/2005 08:13 AM Line_State COM function should work. The trace provided before did not show this function being called though... Have you tried calling this COM function from a VBScript instead of from an ASP page? Share this post Link to post