Maybe I'm dreaming but I thought this was possible using wild variables.
The goal is to allow the department to remotely set the script to route callers to the on call person of the day.
The goal is to allow the department to remotely set the script to route callers to the on call person of the day.
The example below isn't the final script but something I was playing around with to test.
Any help would be great!
Any help would be great!
GIVE RINGBACK
WAIT
4
READVAR
wv_dig_collect_LESA_oncall_cv
SAVEVAR
OPEN
OPEN
VOICESESSION
PLAY PROMPTVOICESEGMENT emergency_welcome_gv
COLLECT 4 DIGITS INTO dig_collect_LESA_oncall_cv
INTER DIGIT TIMER 3
COLLECT 4 DIGITS INTO dig_collect_LESA_oncall_cv
INTER DIGIT TIMER 3
WHERE dig_collect_LESA_oncall_cv EQUALS
VALUE 9236 : ASSIGN 9236 TO wv_dig_collect_LESA_oncall_cv
VALUE 2344 : ASSIGN 2344 TO wv_dig_collect_LESA_oncall_cv
END WHERE
END VOICE SESSION
VALUE 9236 : ASSIGN 9236 TO wv_dig_collect_LESA_oncall_cv
VALUE 2344 : ASSIGN 2344 TO wv_dig_collect_LESA_oncall_cv
END WHERE
END VOICE SESSION
IFOUT OF SERVICE LESA_IT_sk THEN
READVAR
wv_dig_collect_LESA_oncall_cv
SAVEVAR
WHERE
WHERE
wv_dig_collect_LESA_oncall_cv EQUALS
VALUE 9236 : ROUTE CALL 92536919236
VALUE 2344 : ROUTE CALL 92533242344
VALUE 2344 : ROUTE CALL 92533242344
END WHERE
END IF
GIVE MUSIC
END IF
GIVE MUSIC
music_gv
WAIT
60
DISCONNECT
DISCONNECT
Comment