This was added to send calls to the IVR menu exit action when it reaches the ivr_menu_max_failures. However it causes a bug when ivr_menu_max_failures = 1 and IVR Menu Option has a digits larger than 2 which gets interpreted as a failure and then sent to the fail destination. This code causes a worse issue than it solves. Commenting out the code until finding a better solution.
accountcode would only appear on the sip header for the 1st retry. Added the accountcode parameter to the rest of the originate commands to resolve this issue
* Modify ivr.conf.lua to allow changing the direct dial matching digits from default settings
This is needed to allow using direct dial with IVR options that overlap the default regex pattern.
* Add in the new direct_dial_digits setting to allow changing what triggers attempting a direct dial in IVRs
Adds a bit of additional logic to allow the following variable to be set in dialplan:
agent_action
When set to login, this script will always log the agent in regardless of current state.
When set to logout, this script will always log the agent out regardless of current state.
When unset, original behavior is preserved.
The reason for adding this code is to allow us to create a dialplan that puts a user on DND at the same time as logging out the agent, and vice-versa.
We only want to lookup the follow-me destinations for ring group members. If additional numbers are added to the destination array via follow-me lookup then we don't want to check for follow-me again on the new destinations. This can result in a lookup loop that will cause the call to not complete and throw lua into a loop that will fill up logs and burn system resources.