hydroaddiction
Programmer
I need to modify this script (in Procomm 4.8) to remove 7 digit npa's. By entering the space on line 3 between 205 and 201 the script will not compile. Without the space the pbx will not accept the npa. Any help would be greatly appreciated.
*******************************
out npa script
*******************************
proc main
integer loops=0
integer npaex=1205 201
integer npaex1=npaex
string sznpaex
itoa npaex sznpaex
transmit "LD 90^M"
waitfor "REQ"
transmit "OUT^M"
waitfor "CUST"
transmit "0^M"
waitfor "FEAT"
transmit "NET^M"
waitfor "TRAN"
transmit "AC1^M"
waitfor "TYPE"
transmit "NPA^M"
waitfor "NPA"
npa:
loops++
if loops=800
elseif npaex1=999
endif
transmit sznpaex
transmit "^M"
npaex1=npaex1+1
itoa npaex1 sznpaex
waitquiet 1
goto npa
endproc
*******************************
out npa script
*******************************
proc main
integer loops=0
integer npaex=1205 201
integer npaex1=npaex
string sznpaex
itoa npaex sznpaex
transmit "LD 90^M"
waitfor "REQ"
transmit "OUT^M"
waitfor "CUST"
transmit "0^M"
waitfor "FEAT"
transmit "NET^M"
waitfor "TRAN"
transmit "AC1^M"
waitfor "TYPE"
transmit "NPA^M"
waitfor "NPA"
npa:
loops++
if loops=800
elseif npaex1=999
endif
transmit sznpaex
transmit "^M"
npaex1=npaex1+1
itoa npaex1 sznpaex
waitquiet 1
goto npa
endproc