Pandab2002
IS-IT--Management
Hi all, I am using the following script:
integer a = 1
proc main
string capname = $DIALCONNECT
string cname = "TEST
set dialentry access DATA capname
set capture file cname
set capture overwrite on
Transmit "LD 95^M"
Waitfor "REQ"
Transmit "prt^M"
Waitfor "TYPE"
Transmit "NAME^M"
Waitfor "CUST"
Transmit "0^M"
Label1:
if not Waitfor "DCNO" a
Transmit "^M"
goto label1
else
Transmit "1^M"
Waitfor "IDC"
Transmit "all^M"
Waitfor "SHRT"
Transmit "yes"
pause 1
clear
capture on
transmit "^M"
Waitfor "REQ"
capture off
Transmit "end^M"
set capture file NONE
;execute "freadtest.wax"
endif
endproc
Anyway, I am wanting the script to go into a PBX, print out some information and capture it to a file named "Test.cap" or I want to use the $DIALCONNECT variable. I want the capture file to overwrite each time the script is run. When I try the above script, it seems to ignore my set capture statements. What am I missing?
PAul...
integer a = 1
proc main
string capname = $DIALCONNECT
string cname = "TEST
set dialentry access DATA capname
set capture file cname
set capture overwrite on
Transmit "LD 95^M"
Waitfor "REQ"
Transmit "prt^M"
Waitfor "TYPE"
Transmit "NAME^M"
Waitfor "CUST"
Transmit "0^M"
Label1:
if not Waitfor "DCNO" a
Transmit "^M"
goto label1
else
Transmit "1^M"
Waitfor "IDC"
Transmit "all^M"
Waitfor "SHRT"
Transmit "yes"
pause 1
clear
capture on
transmit "^M"
Waitfor "REQ"
capture off
Transmit "end^M"
set capture file NONE
;execute "freadtest.wax"
endif
endproc
Anyway, I am wanting the script to go into a PBX, print out some information and capture it to a file named "Test.cap" or I want to use the $DIALCONNECT variable. I want the capture file to overwrite each time the script is run. When I try the above script, it seems to ignore my set capture statements. What am I missing?
PAul...