Fix. set caller id name in `page` application
This commit is contained in:
parent
fe6a73a3d8
commit
7b20358284
|
|
@ -65,7 +65,7 @@ if ( session:ready() ) then
|
||||||
--caller id name provided do nothing
|
--caller id name provided do nothing
|
||||||
else
|
else
|
||||||
effective_caller_id_name = session:getVariable("effective_caller_id_name");
|
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
|
end
|
||||||
|
|
||||||
if (caller_id_number) then
|
if (caller_id_number) then
|
||||||
|
|
@ -113,7 +113,7 @@ if ( session:ready() ) then
|
||||||
destination_count = 0;
|
destination_count = 0;
|
||||||
api = freeswitch.API();
|
api = freeswitch.API();
|
||||||
for index,value in pairs(destination_table) do
|
for index,value in pairs(destination_table) do
|
||||||
if (string.find(value, "-") == nill) then
|
if (string.find(value, "-") == nil) then
|
||||||
value = value..'-'..value;
|
value = value..'-'..value;
|
||||||
end
|
end
|
||||||
sub_table = explode("-",value);
|
sub_table = explode("-",value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue