mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user