Skip to main content

Edit a Tenant

The Define Tenant form is rendered by /var/www/html/mirtapbx/templates/tenant.tpl and saved by /var/www/html/mirtapbx/tenant.php. Some fields can be hidden, locked, or unavailable depending on default-field rules and the administrator's permissions.

Define Tenant form rendered by templates/tenant.tpl.
Define Tenant form rendered by templates/tenant.tpl.

Information

FieldDescription
NameTenant display name. It is used internally and can be any descriptive string.
CodeUnique tenant identifier. It is used when building extension usernames. Prefer letters only; avoid numbers, spaces, hyphens, and underscores.
Allow onnet calls from this tenantAllows extensions in this tenant to place on-net calls.
Allow onnet calls to this tenantAllows other tenants or on-net routes to call this tenant.
Allow any Caller ID usage when dialing outAllows outbound calls to use caller IDs outside the normal tenant assignment.
Block any outbound call with wrong Caller IDRejects outbound calls when the caller ID is not valid for the tenant rules.
Allow incoming Caller ID usage when dialing outAllows caller IDs received on inbound calls to be reused for outbound calls.
Allow incoming Caller ID with prefix usage when dialing outAllows prefixed incoming caller IDs to be reused for outbound calls.
Allow any Caller ID usage when dialing out an emergency numberRelaxes caller ID restrictions for emergency calls.
Force recording for emergency callsForces recording on emergency calls.
Force using a pincode for onnet callsRequires PIN-code authentication for on-net calls.
Allow transcript for recorded callsEnables transcription options for recordings. Disabling it clears pending transcription requests and tenant-level transcript settings.
Allow summary for recorded callsEnables AI summary options for recordings. Disabling it clears pending summary requests and tenant-level summary settings.
Allow sentiment and emotion analysis for recorded callsEnables AI sentiment and emotion analysis for recordings. Disabling it clears pending sentiment requests and tenant-level sentiment settings.
Alert emailEmail address used for tenant alerts.
Emergency recording emailEmail address used for emergency-call recording notifications.
Default timezoneTenant timezone. When blank, the server default is used.
Routing profileDefault outbound voice routing profile. If blank, outbound voice calls are not allowed by default.
Call campaign routing profileRouting profile used by call campaigns. It can inherit the tenant default.
Fax routing profileRouting profile used for fax traffic. It can inherit the default routing profile.
SMS Routing profileRouting profile used for outbound SMS. If blank, outbound SMS is not allowed.
Email Template profileEmail template profile assigned to tenant-generated emails.
Default Cronjob serverNode used by tenant cron jobs. System Default uses the global default.
Default Campaign serverNode used by tenant campaigns. System Default uses the global default.
Fax serverNode used for tenant fax processing. System Default uses the global default.
StatusEnables the tenant, disables it, or disables it after an expiration date.
Expiration dateDate used when status is set to Expiration date.

Server affinity

FieldDescription
Preferred Parking Lot serverPreferred node for tenant parking lots. Empty means system default.
Preferred Queue serverPreferred node for tenant queues. Empty means system default.

Parking lots

FieldDescription
Parking lot start numberFirst parking slot number. After changes, the parking module may need reload or Asterisk may need restart.
Parking lot end numberLast parking slot number. After changes, the parking module may need reload or Asterisk may need restart.
Parking lot serverSpecific node hosting the parking lot, or Automatic.

Recording Storage

FieldDescription
Storage typeRecording backend: default, database, filesystem, FTP, SFTP, SSL-FTP, no storage, AWS S3, or Google Drive. Database retention applies only to database storage.
JSON Service Account keyGoogle Drive service account key, shown when Google Drive storage is selected.
Host / RegionFTP/SFTP host, optionally with port, or AWS region when AWS S3 is selected.
User / KeyFTP/SFTP username or AWS access key.
Password / SecretFTP/SFTP password or AWS secret.
Use passive FTPEnables passive FTP mode for FTP/SSL-FTP storage.
Directory / Bucket name / Shared directory IDFilesystem or FTP directory, AWS bucket, or Google Drive shared directory ID.
Upload recording at call endControls whether recordings are uploaded immediately at call end or only by batch processing.
Remove recordings on database expirationDeletes the recording file when recording metadata expires from the database. It is not retroactive.

Billing

FieldDescription
Billing codeCode available to templates and integrations as ${BILLINGCODE}.
Use as dial prefixUses the billing code as a dial prefix.
Extra codeAdditional code available as ${EXTRACODE}.
Billing typeChoose CDR billing, experimental CEL billing, or skip the billing module.
Call rateDefault call rate applied to the tenant, or no call rate.
Call campaign call rateCall rate used by campaigns, or the normal call rate.
Default conference call rateDefault rate profile for conference room calls.
Payment typePrepaid or post-paid billing mode.
Alert on credit lower thanCredit threshold that triggers alerts. Non-numeric values are treated as no alert.
Bill onnet callsControls whether on-net calls are billed.
On Net calls digits to addDigits added to on-net numbers for normalization or billing.
On Net calls number of digits to removeDigits removed from on-net numbers before normalization or billing.
Pay the bill media fileAudio message played when outbound dialing is blocked for payment reasons.

Microsoft Teams integration

FieldDescription
MSTeams addressGateway address used for Microsoft Teams integration.
Tenant IDMicrosoft Teams tenant ID used for extension status integration.

Third party integration - Additional fields

FieldDescription
Preferred serverPreferred node used by third-party integration fields.
Field 001Custom integration value available as ${EXTRAFIELD001}.
Field 002Custom integration value available as ${EXTRAFIELD002}.
Field 003Custom integration value available as ${EXTRAFIELD003}.

Security - Call Limits

FieldDescription
Apply call cost limitsUse system default, apply the limits below, or allow unlimited calling.
Extension daily/monthly call cost limitMaximum daily or monthly spend per extension. When reached, outbound calls are blocked.
Tenant daily/monthly call cost limitMaximum daily or monthly spend for the whole tenant. When reached, outbound calls are blocked.
Extension daily/monthly call cost warningSpend threshold per extension that sends alert email before the hard limit is reached.
Tenant daily/monthly call cost warningSpend threshold for the whole tenant that sends alert email before the hard limit is reached.
Domestic / International valuesWhen split cost limits are enabled, separate domestic and international limits or warnings are shown.
Route call cost limitMaximum allowed cost for a call route. More expensive routes are refused.
Abuse DetectionLocks an extension when suspicious calling activity is detected. Options include system default, off, or after 5, 10, 15, or 50 calls.

Provisioning, Custom, Note, and Restrictions

FieldDescription
Optional export directoryFilesystem directory where phone provisioning files are exported.
Provisioning host nameHostname shown in Configuration > Provisioning > Phones. If blank, MiRTA PBX uses the admin setting, theme, or current web host.
Custom dashboard PHP fileTenant-specific dashboard PHP file.
Additional InfoFree-form internal note stored on the tenant.
Custom DestinationsSets whether custom destinations are enabled by default or disabled by default, with an exception list selected in the multi-select control.

Max number of

These fields limit tenant capacity. A blank or non-numeric value is saved as unlimited in tenant.php.

FieldDescription
Inbound/Outbound ChannelsMaximum total external inbound plus outbound channels.
Inbound ChannelsMaximum inbound external channels.
Outbound ChannelsMaximum outbound external channels.
Any ChannelMaximum total channels regardless of source or destination. A normal call uses two channels.
Fax ChannelMaximum channels used for fax sending.
ExtensionsMaximum extensions.
External AgentsMaximum external agents.
DIDsMaximum DIDs.
MediafilesMaximum media files.
ConditionsMaximum conditions.
IVRsMaximum IVRs.
Hunt ListsMaximum hunt lists.
Conference RoomsMaximum conference rooms.
QueuesMaximum queues.
Paging & IntercomsMaximum paging and intercom groups.
FlowsMaximum flows.
Custom DestinationsMaximum custom destinations.
DISAMaximum DISA entries.
Feature CodesMaximum feature codes.
Short NumbersMaximum short numbers.
CallerID Black ListMaximum caller ID blacklist entries.
Call CampaignsMaximum call campaigns.
AGI ScriptsMaximum AGI scripts.
ConduitsMaximum conduits.
VoicemailsMaximum voicemail boxes.
Phone BooksMaximum phone books.
ProvisioningMaximum provisioning entries.

Actions

ActionDescription
SaveSaves the tenant. When creating a tenant, MiRTA PBX also creates default settings, a parking lot, and assigns the creating user to the tenant.
DeleteDeletes the tenant and related tenant objects when the administrator has delete permission. The UI asks for confirmation.
BackReturns to the tenant list without saving the current form.