Change lang_path to phrases_dir in languages.lua.
This commit is contained in:
parent
e83b727b7b
commit
ccc44825e8
|
|
@ -463,7 +463,6 @@
|
||||||
if (sip_bypass_media == "bypass-media") then
|
if (sip_bypass_media == "bypass-media") then
|
||||||
table.insert(xml, [[ <variable name="bypass_media" value="true"/>]]);
|
table.insert(xml, [[ <variable name="bypass_media" value="true"/>]]);
|
||||||
end
|
end
|
||||||
|
|
||||||
if (sip_bypass_media == "bypass-media-after-bridge") then
|
if (sip_bypass_media == "bypass-media-after-bridge") then
|
||||||
table.insert(xml, [[ <variable name="bypass_media_after_bridge" value="true"/>]]);
|
table.insert(xml, [[ <variable name="bypass_media_after_bridge" value="true"/>]]);
|
||||||
end
|
end
|
||||||
|
|
@ -494,7 +493,6 @@
|
||||||
if (string.len(forward_user_not_registered_destination) > 0) then
|
if (string.len(forward_user_not_registered_destination) > 0) then
|
||||||
table.insert(xml, [[ <variable name="forward_user_not_registered_destination" value="]] .. forward_user_not_registered_destination .. [["/>]]);
|
table.insert(xml, [[ <variable name="forward_user_not_registered_destination" value="]] .. forward_user_not_registered_destination .. [["/>]]);
|
||||||
end
|
end
|
||||||
|
|
||||||
if (string.len(do_not_disturb) > 0) then
|
if (string.len(do_not_disturb) > 0) then
|
||||||
table.insert(xml, [[ <variable name="do_not_disturb" value="]] .. do_not_disturb .. [["/>]]);
|
table.insert(xml, [[ <variable name="do_not_disturb" value="]] .. do_not_disturb .. [["/>]]);
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@
|
||||||
pos_beg = string.find(file_line, 'cmd="include" data="', 0, true) + 20;
|
pos_beg = string.find(file_line, 'cmd="include" data="', 0, true) + 20;
|
||||||
pos_end = string.find(file_line, '"/>', 0, true) - 1;
|
pos_end = string.find(file_line, '"/>', 0, true) - 1;
|
||||||
xml_file_path = string.sub(file_line, pos_beg, pos_end);
|
xml_file_path = string.sub(file_line, pos_beg, pos_end);
|
||||||
table.insert(xml_file_paths, lang_path.."/"..language.."/"..xml_file_path);
|
table.insert(xml_file_paths, phrases_dir.."/"..language.."/"..xml_file_path);
|
||||||
--freeswitch.consoleLog("notice", "file path = "..xml_file_path.."\n");
|
--freeswitch.consoleLog("notice", "file path = "..xml_file_path.."\n");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue