I have a small script that adds new NPA's in approx 25 pbx's. Once in a while the NPA is already in the database and I get a ESN072 error.
transmit "LD 90^M"
waitfor "REQ "
transmit "NEW^M"
waitfor "CUST "
transmit "0^M"
waitfor "FEAT "
transmit "NET^M"
waitfor "TRAN "
transmit "AC1^M"
waitfor "TYPE "
transmit "NPA^M"
waitfor "NPA "
transmit "1971^M"
waitfor "RLI "
transmit "20^M"
waitfor "SDRR "
transmit "^M"
waitfor "ITEI "
transmit "^M"
waitfor "NPA "
transmit "1364^M"
And so on.....
From PBX:
REQ NEW
CUST 0
FEAT NET
TRAN AC1
TYPE NPA
NPA 1971
ESN072
NPA
As you can see by my crude script I am using the waitfor command. When it see's the ESN072 error it stops. How do I get it to ignore the error and enter the next NPA ??? Any pointers / directions would be appreciated !!
TIA
transmit "LD 90^M"
waitfor "REQ "
transmit "NEW^M"
waitfor "CUST "
transmit "0^M"
waitfor "FEAT "
transmit "NET^M"
waitfor "TRAN "
transmit "AC1^M"
waitfor "TYPE "
transmit "NPA^M"
waitfor "NPA "
transmit "1971^M"
waitfor "RLI "
transmit "20^M"
waitfor "SDRR "
transmit "^M"
waitfor "ITEI "
transmit "^M"
waitfor "NPA "
transmit "1364^M"
And so on.....
From PBX:
REQ NEW
CUST 0
FEAT NET
TRAN AC1
TYPE NPA
NPA 1971
ESN072
NPA
As you can see by my crude script I am using the waitfor command. When it see's the ESN072 error it stops. How do I get it to ignore the error and enter the next NPA ??? Any pointers / directions would be appreciated !!
TIA