diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index 3db946dc1e..90b9e9fbcd 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -500,6 +500,9 @@ $y++; $x++; + // save this UUID so we can refresh the XML later + $dialplan_uuid_outbound = $dialplan_uuid; + //set the uuid $dialplan_uuid = uuid(); @@ -860,6 +863,13 @@ $dialplans->uuid = $dialplan_uuid; $dialplans->xml(); + // Update the outbound variable dialplan + $dialplans = new dialplan; + $dialplans->source = "details"; + $dialplans->destination = "database"; + $dialplans->uuid = $dialplan_uuid_outbound; + $dialplans->xml(); + //remove the temporary permission $p->delete("dialplan_add", "temp"); $p->delete("dialplan_detail_add", "temp");