Update directory.lua
Re-add force_ping to directory.lua.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
-- xml_handler.lua
|
-- xml_handler.lua
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2013 - 2016 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2013 - 2015 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
@@ -324,6 +324,7 @@
|
|||||||
nibble_account = row.nibble_account;
|
nibble_account = row.nibble_account;
|
||||||
sip_bypass_media = row.sip_bypass_media;
|
sip_bypass_media = row.sip_bypass_media;
|
||||||
absolute_codec_string = row.absolute_codec_string;
|
absolute_codec_string = row.absolute_codec_string;
|
||||||
|
force_ping = row.force_ping;
|
||||||
forward_all_enabled = row.forward_all_enabled;
|
forward_all_enabled = row.forward_all_enabled;
|
||||||
forward_all_destination = row.forward_all_destination;
|
forward_all_destination = row.forward_all_destination;
|
||||||
forward_busy_enabled = row.forward_busy_enabled;
|
forward_busy_enabled = row.forward_busy_enabled;
|
||||||
@@ -550,6 +551,9 @@
|
|||||||
if (string.len(absolute_codec_string) > 0) then
|
if (string.len(absolute_codec_string) > 0) then
|
||||||
table.insert(xml, [[ <variable name="absolute_codec_string" value="]] .. absolute_codec_string .. [["/>]]);
|
table.insert(xml, [[ <variable name="absolute_codec_string" value="]] .. absolute_codec_string .. [["/>]]);
|
||||||
end
|
end
|
||||||
|
if (string.len(force_ping) > 0) then
|
||||||
|
table.insert(xml, [[ <variable name="force_ping" value="]] .. force_ping .. [["/>]]);
|
||||||
|
end
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user