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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

manually set condition to true 1

Status
Not open for further replies.

zoomatomic

Technical User
Jun 2, 2009
82
IE
Hi Guys

I have a basic set up where I have an agent hunt group( NatGas ). Previously I had a short code to set hunt group to night mode which sent calls to security on another site over scn.

Problem is because calls are sent over scn they are affecting the call waiting stats on ccr.

So now I have set up a module with a condition for Mon to Fri 9am to 5pm. True going to agent hunt group and false going to security.

My question is can I manually set the condition to true by dialing a short code if the members of the hunt group are working beyond the normal working hours??

Thanks in Advance.
 
Yes you can, create a module "NatGasCondSet" with a menu, dial 1 sets the condition to true and dial 0 sets the condition to false:
Start ---- menu
0---|
1 --x------ Set Condition NatGas to $KEY ---- hangup */ NatGas is the name of the condition to change, it can be anything
Timeout --- module return

Create a shortcode like *60/"NatGasCondSet"/Voicemail Collect/0 and off you go.
This is a basic routine but can be extended with variuos actions to speak the curren value before accessing the menu and speak the new value after the menu etc. You can even add a Email action sending you the new value to Email ( if email is configured for VM Pro )
 
Thanks Intrigrant

Just not sure how the below is achieved?



0---|
1 --x------ Set Condition NatGas to $KEY ---- hangup


sorry this wasn't covered to any great extent during training course


 
The outcome of the menu ( DTMF Choice ) both 0 and 1 are linked to the same action where you change the value of the condition to $KEY which is a system variable holding the last received DTMF value received ( the 0 or 1 choosen earlier in the menu ). So when you press 1 in the menu then the condition NatGas will be set to the value 1 ( = binay TRUE ) and when choosing 0 the value of NatGas will be set to 0 ( = binary FALSE ).
The condition NatGas is a system wide variable which can be used in other call flows as well but everywere it will have the same value,
 
hi Intrigrant

I think I'm almost there thanks for your help,

can you tell me how to:
change the value of the condition to $KEY

is it a "compare" change on the condition?


Thanks

 
Don't know if you are still waiting for a answer, the thread moved a page away so I missed it ( I usually do not scroll back but now I was looking for a particualar issue ).
When enter a digit the value of the last key sentence when left the menu is automatically stored in the system variable $KEY, so if the last digit pressed in the meny was a 0 then the vaue of $KEY is 0 etc.
Then using a generic mdule you can copy the value of $KEY to a user variable with the command : MyVar=$KEY

In another call flow you can test the value of MyVar with a compare or a test user variable action, the out come is either true or false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top