From bdef43ce3fce9e62cceaf77010b22585ad292905 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 25 Aug 2023 09:37:31 -0600 Subject: [PATCH] Add a trim on the Bridge variables When there is a space at the end and used in the string then FreeSWITCH will not add the variables to CDR variables. --- app/bridges/bridge_edit.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/bridges/bridge_edit.php b/app/bridges/bridge_edit.php index 6649ff9086..e93314b839 100644 --- a/app/bridges/bridge_edit.php +++ b/app/bridges/bridge_edit.php @@ -150,7 +150,7 @@ $variables = ''; foreach($bridge_variables as $key => $value) { if (!empty($value)) { - $variables .= ','.$key.'='.$value; + $variables .= ','.trim($key).'='.trim($value); } } if (!empty($variables)) { @@ -166,7 +166,6 @@ $array['bridges'][0]['bridge_destination'] = $bridge_destination; $array['bridges'][0]['bridge_enabled'] = $bridge_enabled; $array['bridges'][0]['bridge_description'] = $bridge_description; -//view_array($array); //save to the data $database = new database;