Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need A Little Scripting Help

Status
Not open for further replies.

rtetryyt

MIS
Feb 14, 2008
117
US
I need help with this issue. A while back ago I added an WHERE CALLER ID EQUALS line that said if the call came in from the 563 or 309 area code to apply it to this script.
Turns out that there are some exchanges in the 563 area code that don't want to be applied to this script. Do I have to put an entry in for each and every prefix that I want to exclude? See Below


/* Updates: Please list all updates with initials and date of changes */

GIVE RINGBACK
WAIT 2

WHERE CLID EQUALS
VALUE 309@: EXECUTE qc_menu
VALUE 563@: EXECUTE qc_menu
VALUE 40240846@: EXECUTE qc_menu
DEFAULT: ROUTE CALL 5713
END WHERE

SECTION qc_menu

OPEN VOICE SESSION 5880
PLAY PROMPT VOICE SEGMENT mynurse_qc_vs
COLLECT 1 DIGITS INTO mynurse_choice_cv
END VOICE SESSION

WHERE mynurse_choice_cv EQUALS
VALUE 1: ROUTE CALL 5700 /* QC_Health_Sc */
VALUE 2: ROUTE CALL 5703 /* QC_Assistance_Sc */
VALUE 3: ROUTE CALL 5708 /* QC_Register_Sc */
VALUE 4: ROUTE CALL 5703
VALUE 5: ROUTE CALL 5710 /* QC_Other_Sc */
VALUE 6: ROUTE CALL 2907 /* VRU */
DEFAULT: EXECUTE qc_repeat
END WHERE

SECTION qc_repeat

OPEN VOICE SESSION 5880
PLAY PROMPT VOICE SEGMENT mynurse_qc_vs
COLLECT 1 DIGITS INTO mynurse_choice_cv
END VOICE SESSION

WHERE mynurse_choice_cv EQUALS
VALUE 1: ROUTE CALL 5700 /* QC_Health_Sc */
VALUE 2: ROUTE CALL 5703 /* QC_Assistance_Sc */
VALUE 3: ROUTE CALL 5708 /* QC_Register_Sc */
VALUE 4: ROUTE CALL 5703
VALUE 5: ROUTE CALL 5710 /* QC_Other_Sc */
VALUE 6: ROUTE CALL 2907 /* VRU */
DEFAULT: ROUTE CALL 5710 /* QC_Other_Sc */
END WHERE
 
You might be able to define a global value and put all of them in that value; then compare the CLID to the global value list you create. It's been a while for scripting for me, but that might be the easiest way to manage it is by keeping a list in a global value. If you need add'l help, I can look it all up and check the scripting...

Matt H. - Technical Support Engineer
 
Yes, I don't think there are any "silver bullets" in this case. If the number of exchange codes is small you can use a variable and IF..THEN clause before your WHERE..EQUALS clause to exclude them. Something like this:

IF CLID = excludenpannx_gv THEN
ROUTE CALL 5713
END IF

I'm sure there are other ways to get what you want. Let's see what other suggestions come in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top