diff --git a/app/gateways/app_config.php b/app/gateways/app_config.php index 8cddfbb9c4..53a71dd355 100644 --- a/app/gateways/app_config.php +++ b/app/gateways/app_config.php @@ -5,7 +5,7 @@ $apps[$x]['uuid'] = "297ab33e-2c2f-8196-552c-f3567d2caaf8"; $apps[$x]['category'] = "Switch";; $apps[$x]['subcategory'] = ""; - $apps[$x]['version'] = "1.0"; + $apps[$x]['version'] = "1.1"; $apps[$x]['license'] = "Mozilla Public License 1.1"; $apps[$x]['url'] = "http://www.fusionpbx.com"; $apps[$x]['description']['en-us'] = "Gateways provide access into other voice networks. These can be voice providers or other systems that require SIP registration."; @@ -205,6 +205,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_in_ping"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "caller_id_in_from"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; diff --git a/app/gateways/app_languages.php b/app/gateways/app_languages.php index 75a4823a4f..262aee33c6 100644 --- a/app/gateways/app_languages.php +++ b/app/gateways/app_languages.php @@ -1,5 +1,4 @@ - Portions created by the Initial Developer are Copyright (C) 2008-2020 + Portions created by the Initial Developer are Copyright (C) 2008-2022 the Initial Developer. All Rights Reserved. Contributor(s): @@ -96,6 +96,7 @@ $ping = $_POST["ping"]; $ping_min = $_POST["ping_min"]; $ping_max = $_POST["ping_max"]; + $contact_in_ping = $_POST["contact_in_ping"]; $channels = $_POST["channels"]; $caller_id_in_from = $_POST["caller_id_in_from"]; $supress_cng = $_POST["supress_cng"]; @@ -182,6 +183,7 @@ $array['gateways'][$x]["ping"] = $ping; $array['gateways'][$x]["ping_min"] = $ping_min; $array['gateways'][$x]["ping_max"] = $ping_max; + $array['gateways'][$x]["contact_in_ping"] = $contact_in_ping; $array['gateways'][$x]["channels"] = $channels; $array['gateways'][$x]["caller_id_in_from"] = $caller_id_in_from; $array['gateways'][$x]["supress_cng"] = $supress_cng; @@ -285,6 +287,7 @@ $ping = $row["ping"]; $ping_min = $row["ping_min"]; $ping_max = $row["ping_max"]; + $contact_in_ping = $row["contact_in_ping"]; $channels = $row["channels"]; $caller_id_in_from = $row["caller_id_in_from"]; $supress_cng = $row["supress_cng"]; @@ -734,6 +737,31 @@ echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo " ".$text['label-contact_in_ping']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-contact_in_ping']."\n"; + echo "\n"; + echo "\n"; + if (permission_exists('gateway_channels')) { echo "\n"; echo "\n"; @@ -882,4 +910,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/gateways/gateways.php b/app/gateways/gateways.php index bc2e74a3dc..05283e49f1 100644 --- a/app/gateways/gateways.php +++ b/app/gateways/gateways.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2020 + Portions created by the Initial Developer are Copyright (C) 2008-2022 the Initial Developer. All Rights Reserved. Contributor(s): diff --git a/app/scripts/resources/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua b/app/scripts/resources/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua index d4bfce5a02..4789520cc9 100644 --- a/app/scripts/resources/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua +++ b/app/scripts/resources/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua @@ -1,6 +1,6 @@ -- xml_handler.lua -- Part of FusionPBX --- Copyright (C) 2013 - 2018 Mark J Crane +-- Copyright (C) 2013 - 2022 Mark J Crane -- 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, [[ ]]); end + if (string.len(field.contact_in_ping) > 0) then + table.insert(xml, [[ ]]); + end if (string.len(field.context) > 0) then table.insert(xml, [[ ]]); end