From 270508bf95105176e32d17c63f1f866fe80b3d2e Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Tue, 16 Feb 2016 13:36:14 +0300 Subject: [PATCH] Fix. set caller id name in `page` application --- resources/install/scripts/page.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/page.lua b/resources/install/scripts/page.lua index 80bf8c80df..5ce7b63813 100644 --- a/resources/install/scripts/page.lua +++ b/resources/install/scripts/page.lua @@ -65,7 +65,7 @@ if ( session:ready() ) then --caller id name provided do nothing else effective_caller_id_name = session:getVariable("effective_caller_id_name"); - caller_id_number = effective_caller_id_name; + caller_id_name = effective_caller_id_name; end if (caller_id_number) then @@ -113,7 +113,7 @@ if ( session:ready() ) then destination_count = 0; api = freeswitch.API(); for index,value in pairs(destination_table) do - if (string.find(value, "-") == nill) then + if (string.find(value, "-") == nil) then value = value..'-'..value; end sub_table = explode("-",value);