summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/freeswitch/scripts/common/str.lua1
-rw-r--r--misc/freeswitch/scripts/ini/dialplan.ini3
2 files changed, 4 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/common/str.lua b/misc/freeswitch/scripts/common/str.lua
index b19f299..ca6dcd9 100644
--- a/misc/freeswitch/scripts/common/str.lua
+++ b/misc/freeswitch/scripts/common/str.lua
@@ -7,6 +7,7 @@ module(...,package.seeall)
function try(array, arguments)
local argument = arguments:match('^(.-)%.') or arguments;
local remaining_arguments = arguments:match('%.(.-)$');
+ argument = tonumber(argument) or argument;
if argument and type(array) == 'table' then
if remaining_arguments then
diff --git a/misc/freeswitch/scripts/ini/dialplan.ini b/misc/freeswitch/scripts/ini/dialplan.ini
index f4a6b66..aab8353 100644
--- a/misc/freeswitch/scripts/ini/dialplan.ini
+++ b/misc/freeswitch/scripts/ini/dialplan.ini
@@ -9,3 +9,6 @@ user_image_url = http://192.168.0.150/uploads/user/image
ringtone_url = http://192.168.0.150
ringback = %(2000,4000,440.0,480.0)
tone_busy = %(500,500,480,620);loops=4
+
+phonebook_number_lookup = true
+geo_number_lookup = true \ No newline at end of file