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.
This commit is contained in:
FusionPBX
2023-08-25 09:37:31 -06:00
committed by GitHub
parent 13550f214d
commit bdef43ce3f

View File

@@ -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;