Update ivr.conf.lua
Since we are checking the direct dial for user_exists we can allow more up to 11 digits by default.
This commit is contained in:
parent
6ab6f710f3
commit
02ecec3cc1
|
|
@ -1,6 +1,6 @@
|
|||
-- xml_handler.lua
|
||||
-- Part of FusionPBX
|
||||
-- Copyright (C) 2016 Mark J Crane <markjcrane@fusionpbx.com>
|
||||
-- Copyright (C) 2016-2017 Mark J Crane <markjcrane@fusionpbx.com>
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -258,7 +258,7 @@
|
|||
|
||||
--direct dial
|
||||
if (ivr_menu_direct_dial == "true") then
|
||||
table.insert(xml, [[<entry action="menu-exec-app" digits="/^(\d{2,5})$/" param="transfer ${cond(${user_exists id $1 ]]..domain_name..[[} == true ? $1 XML ]]..domain_name..[[ : ]]..ivr_menu_extension..[[ XML ]]..domain_name..[[)}" description="direct dial"/>\n]]);
|
||||
table.insert(xml, [[<entry action="menu-exec-app" digits="/^(\d{2,11})$/" param="transfer ${cond(${user_exists id $1 ]]..domain_name..[[} == true ? $1 XML ]]..domain_name..[[ : ]]..ivr_menu_extension..[[ XML ]]..domain_name..[[)}" description="direct dial"/>\n]]);
|
||||
end
|
||||
|
||||
--get the ivr menu options
|
||||
|
|
|
|||
Loading…
Reference in New Issue