From 283253ac17d29b8c97da1214fa3592dd94aa47ff Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 19 Jan 2017 12:42:20 -0700 Subject: [PATCH] Update dialplans.php Make sure dialplan context public has the correct app_uuid. --- app/dialplan/dialplans.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/dialplan/dialplans.php b/app/dialplan/dialplans.php index c4d76982be..b163f73b08 100644 --- a/app/dialplan/dialplans.php +++ b/app/dialplan/dialplans.php @@ -68,6 +68,16 @@ $dialplan_context = check_str($_REQUEST["dialplan_context"]); $app_uuid = check_str($_REQUEST["app_uuid"]); +//make sure all dialplans with context of public have the inbound route app_uuid + if ($app_uuid == 'c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4') { + $sql = "update v_dialplans set "; + $sql .= "app_uuid = 'c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4' "; + $sql .= "where dialplan_context = 'public' "; + $sql .= "and app_uuid is null; "; + $db->exec($sql); + unset($sql); + } + //includes require_once "resources/header.php"; require_once "resources/paging.php";