Please could any one help with a problem I have with a call handling script.
Basically the call is in a holding queue and if the caller presses 1 they get sent to VM which is what I want it to do.
If the caller does not press 1 I would like them to stay in the holding queue.
The issue I am having is that it plays the comfort message and I press 1 it does what it should.
If nothing is pressed it still sends them to VM regardless that the default is execute Loop
Please see below. Any help would be much appreciated.
GIVE RINGBACK
IF NOT OUT OF SERVICE skillset_cv THEN
QUEUE TO SKILLSET skillset_cv WITH PRIORITY priority_cv
WAIT 2
ELSE
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT unfore_msg
END VOICE SESSION
DISCONNECT
END IF
WAIT 5
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT comf_1
COLLECT 1 DIGITS INTO dn1_cv
INTER DIGIT TIMER 3
END VOICE SESSION
WHERE dn1_cv EQUALS
VALUE 1: ROUTE CALL Phantom Dn to VM
DEFAULT: EXECUTE Loop
END WHERE
SECTION Loop
GIVE RINGBACK
WAIT 15
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT test_comf
COLLECT 1 DIGITS INTO dn1_cv
INTER DIGIT TIMER 3
END VOICE SESSION
WHERE dn1_cv EQUALS
VALUE 1: ROUTE CALL Phantom DN to VM
END WHERE
Basically the call is in a holding queue and if the caller presses 1 they get sent to VM which is what I want it to do.
If the caller does not press 1 I would like them to stay in the holding queue.
The issue I am having is that it plays the comfort message and I press 1 it does what it should.
If nothing is pressed it still sends them to VM regardless that the default is execute Loop
Please see below. Any help would be much appreciated.
GIVE RINGBACK
IF NOT OUT OF SERVICE skillset_cv THEN
QUEUE TO SKILLSET skillset_cv WITH PRIORITY priority_cv
WAIT 2
ELSE
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT unfore_msg
END VOICE SESSION
DISCONNECT
END IF
WAIT 5
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT comf_1
COLLECT 1 DIGITS INTO dn1_cv
INTER DIGIT TIMER 3
END VOICE SESSION
WHERE dn1_cv EQUALS
VALUE 1: ROUTE CALL Phantom Dn to VM
DEFAULT: EXECUTE Loop
END WHERE
SECTION Loop
GIVE RINGBACK
WAIT 15
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT test_comf
COLLECT 1 DIGITS INTO dn1_cv
INTER DIGIT TIMER 3
END VOICE SESSION
WHERE dn1_cv EQUALS
VALUE 1: ROUTE CALL Phantom DN to VM
END WHERE