Hello, I need some help with a script for building phones on a Nortel phone system, hopefuly it's not too difficult, but I'm not a scripter so am struggling now.
The problem is that some prompts only appear for some types of phone, any recorded script can only cope with the same type of phone otherwise the lack of (or inclusion of) extra prompts throws the script out.
I can get the script to read variables (phone type, hardware address etc) from a csv file, but for all other prompts I simply want to send a CR.
Here's an example:
REQ: new
TYPE: 2616 <<< from csv file
TN 0 1 3 7 <<< from csv file
DES test <<< from csv file
CUST 0
AOM
ERL
FDN 7000 <<< from csv file
TGAR
LDN
NCOS 5 <<< from csv file
RNPG
REQ: new
TYPE: 3904 <<< from csv file
TN 0 1 3 7 <<< from csv file
DES sale <<< from csv file
CUST 0
KBA
DBA
ERL
FDN 7000 <<< from csv file
TGAR
LDN
NCOS 3 <<< from csv file
RNPG
SSU
As you can see entering phone type 2616 means the next prompt is 'AOM' whereas if the phone type was a 3904 then next prompt would be 'KBA'
Can anyone suggest a way to have my script just send CR's to all received text until a desired bit of text is received?
The problem is that some prompts only appear for some types of phone, any recorded script can only cope with the same type of phone otherwise the lack of (or inclusion of) extra prompts throws the script out.
I can get the script to read variables (phone type, hardware address etc) from a csv file, but for all other prompts I simply want to send a CR.
Here's an example:
REQ: new
TYPE: 2616 <<< from csv file
TN 0 1 3 7 <<< from csv file
DES test <<< from csv file
CUST 0
AOM
ERL
FDN 7000 <<< from csv file
TGAR
LDN
NCOS 5 <<< from csv file
RNPG
REQ: new
TYPE: 3904 <<< from csv file
TN 0 1 3 7 <<< from csv file
DES sale <<< from csv file
CUST 0
KBA
DBA
ERL
FDN 7000 <<< from csv file
TGAR
LDN
NCOS 3 <<< from csv file
RNPG
SSU
As you can see entering phone type 2616 means the next prompt is 'AOM' whereas if the phone type was a 3904 then next prompt would be 'KBA'
Can anyone suggest a way to have my script just send CR's to all received text until a desired bit of text is received?