Add contact_in_ping to Gateways (#6439)

* Add contact_in_ping to Gateways

* Update gateway_edit.php

* Update gateways.php

* Update app_languages.php

* Update sofia.conf.lua
This commit is contained in:
FusionPBX
2022-07-19 16:34:01 -06:00
committed by GitHub
parent 4cf53c9719
commit e65d483ef7
5 changed files with 126 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
-- xml_handler.lua
-- Part of FusionPBX
-- Copyright (C) 2013 - 2018 Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2013 - 2022 Mark J Crane <markjcrane@fusionpbx.com>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -193,6 +193,9 @@
if (string.len(field.ping_max) > 0) then
table.insert(xml, [[ <param name="ping-max" value="]] .. field.ping_max .. [["/>]]);
end
if (string.len(field.contact_in_ping) > 0) then
table.insert(xml, [[ <param name="contact-in-ping" value="]] .. field.contact_in_ping .. [["/>]]);
end
if (string.len(field.context) > 0) then
table.insert(xml, [[ <param name="context" value="]] .. field.context .. [["/>]]);
end