![]() ![]() |
#1
|
|||
|
|||
![]() 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 example below isn't the final script but something I was playing around with to test. Any help would be great! GIVE RINGBACK WAIT 4 READVAR wv_dig_collect_LESA_oncall_cv SAVEVAR OPEN VOICESESSION PLAY PROMPTVOICESEGMENT emergency_welcome_gv 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 IFOUT OF SERVICE LESA_IT_sk THEN READVAR wv_dig_collect_LESA_oncall_cv SAVEVAR WHERE wv_dig_collect_LESA_oncall_cv EQUALS VALUE 9236 : ROUTE CALL 92536919236 VALUE 2344 : ROUTE CALL 92533242344 END WHERE END IF GIVE MUSIC music_gv WAIT 60
DISCONNECT |
#2
|
|||
|
|||
![]()
Are you wanting to collect digits and have the call route a certain way? I would be using collect digits rather than the READVAR commmand.
|
#3
|
|||
|
|||
![]()
This is fairly old, but I work with this feature a bit and believe I see the issue. Let me know if you still need assistance.
|
#4
|
|||
|
|||
![]()
Wild variables do work. The following is a partial extract of a script I use to remotely set the evacuation mode in the event of a fire etc. Note that it was written using the graphical mode and "Locked If" which is key to wild variables. It was then exported to script for you to view below.
SECTION CHECK_VOICE_CONTACT /* This flow checks CurrentEmergencyState_wv wild variable. If not true (0) the CC is not in Emergency mode. If the user enters the correct Pin then the CurrentEmergencyState_wv will be set to 1 If true (1) the CC is in Emergency mode. If the user enters the correct Pin then the CurrentEmergencyState_wv will be set to 0 */ READVAR ag_EvacuationState_wv IF ( ag_EvacuationState_wv = 1) THEN END IF SAVEVAR IF (ag_EvacuationState_wv = 1) THEN EXECUTE EMERGENCY_EE END IF /* ELSE Transition */ EXECUTE NO_EMERGENCY_FF SECTION TOGGLE_STATE ASSIGN CONTACT DATA "SIP_FROM_ADDRESS" TO c_sip_from_add_cv ASSIGN CONTACT DATA "SIP_TO_ADDRESS" TO c_sip_to_add_cv ASSIGN c_sip_to_add_cv TO vxmlfrom ASSIGN c_sip_from_add_cv TO vxmlto ASSIGN c_play_and_collect_gv TO voicexml ASSIGN "EvacChangeState.wav" TO prompttoplay ASSIGN "false" TO notypeahead ASSIGN "1" TO numberofdigits ASSIGN "#" TO termchar ASSIGN "5" TO interdigittimeout ASSIGN "info" TO method ASSIGN 0 TO vars GIVE IVR WITH VXML TREATMENT voicexml PARAMETERS prompttoplay, vxmlfrom, vxmlto, notypeahead, numberofdigits, termchar, interdigittimeout RETURNS vars IF (vars = 1) THEN READVAR ag_EvacuationState_wv IF ( ag_EvacuationState_wv = 0) THEN ASSIGN 1 TO ag_EvacuationState_wv END IF SAVEVAR EXECUTE EVAC_ANN_ON END IF SECTION EVAC_ANN_OFF GIVE RAN 484 READVAR ag_EvacuationState_wv IF ( ag_EvacuationState_wv <> 0) THEN ASSIGN 0 TO ag_EvacuationState_wv END IF SAVEVAR EXECUTE DISCONNECT_0 SECTION EVAC_ANN_ON GIVE RAN 485 READVAR ag_EvacuationState_wv IF ( ag_EvacuationState_wv <> 1) THEN ASSIGN 1 TO ag_EvacuationState_wv END IF SAVEVAR EXECUTE DISCONNECT_0 Last edited by sfitzg; 03-13-2013 at 02:02 AM. |
#5
|
|||
|
|||
![]()
I see that your original question was built around a test and not an actual full process. If I understand the intent was for a caller to call in and set the on-call individual using a 4 digit code. Then if a skillset was out of service you would route the call to an external number. Let me know if I have that wrong.
Based upon what I see in the original post I think the issue is related to the ability to dial outside of the system using ROUTE CALL with an external number. {I am not sure if you are on CS1K SIP or CM SIP.} I have sites where that is possible and sites where it is not, based upon settings in the Call Server (I don't know what settings). There are a couple of ways around this: 1. Work with CS1K/CM engineer to setup system which will allow this to work (not a specific feature, but the result of a feature that has other implications). 2. CS1K build a dummy queue with the number as the NCFW, enter just as you have in the route call statement. The route call statement sends the call to the queue number, the queue never has an agent logged in, so the call goes to the NCFW destination. 3. We are doing this on CM using but I will need to check to see what they are using for our transfer out. Does this make sense, or is there other information I may need to understand the issue. Easy way to test is to transfer to an internal phone in the original script. If that works then you know it is an issue with being allow to send calls ofr of the system. |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|