Only add default value if application was not found

This commit is contained in:
FusionPBX
2023-10-23 16:13:07 -06:00
committed by GitHub
parent 1e06e3aa1c
commit f09b04eb01
@@ -1114,12 +1114,14 @@ if (!class_exists('xml_cdr')) {
//outbound routes //outbound routes
if ($this->call_direction == 'outbound') { if ($this->call_direction == 'outbound') {
if (empty($app['application'])) {
$app['application'] = 'dialplans'; $app['application'] = 'dialplans';
$app['uuid'] = ''; $app['uuid'] = '';
$app['status'] = ''; $app['status'] = '';
$app['name'] = 'Outbound'; $app['name'] = 'Outbound';
$app['label'] = 'Outbound'; $app['label'] = 'Outbound';
} }
}
//ring groups //ring groups
if ($app['application'] == 'ring_groups') { if ($app['application'] == 'ring_groups') {