Dialplans - List: Include Time Conditions app_uuid.

This commit is contained in:
fusionate 2023-05-24 00:25:52 +00:00
parent ad95542c4c
commit a8adf18fcf
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -46,11 +46,12 @@
$language = new text;
$text = $language->get();
//drop app uuid from the query if not for inbound or outbound routes, or fifo queues
//drop app uuid from the query if not from specific apps
$allowed_app_uuids = [
'c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4', //inbound routes
'8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3', //outbound routes
'16589224-c876-aeb3-f59f-523a1c0801f7', //fifo queues
'4b821450-926b-175a-af93-a03c441818b1', //time conditions
];
if (!empty($_GET['app_uuid']) && is_uuid($_GET['app_uuid']) && !in_array($_GET['app_uuid'], $allowed_app_uuids)) {
unset($_GET['app_uuid']);