public static function delete($base) { // Reference to our XML document $xml = Telephony::getDriver()->xml; if ($base instanceof Conference) { FreeSwitch::section('conference_profile', $base['conference_id']); $xml->deleteNode('/param[@name="caller-id-number"]'); } elseif ($base instanceof Device) { $domain = '$${location_' . $base['User']['location_id'] . '}'; FreeSwitch::setSection('user', $domain, $base['device_id']); $xml->deleteNode('/variables/variable[@name="outbound_caller_id_name"]'); $xml->deleteNode('/variables/variable[@name="outbound_caller_id_number"]'); $xml->deleteNode('/variables/variable[@name="internal_caller_id_name"]'); $xml->deleteNode('/variables/variable[@name="internal_caller_id_number"]'); } }