Obelisk
EN
Chapter 30 of 43Next chapter
Administration & maintenance

Manage database catalogues and procedures

Use the catalogues to give readable names to queues, agents and lines in reports, or to check how telephone numbers are interpreted. SQL procedures and events are a separate maintenance task: they process data and should be changed only for a defined reason.

Obelisk documentation

Choose the correct area

Open Administration → Database and procedures. First identify the task: change a name in reports, correct the interpretation of a number, update telephone geography or carry out supported SQL maintenance. The table below directs you to the right area.

Work on catalogues first

For example, if a report shows queue 900 without its name, check the queue catalogue and its description. If a telephone number has the wrong country, check normalization and geographic prefixes instead. Renaming a queue or line does not correct a telephone prefix or change the PBX configuration.

  1. Review a sample number

    Check the source format and normalization rules before changing a prefix. Geographic entries associate telephone prefixes with country, area, city and available coordinates.

  2. Inspect maintenance previews

    Before restoring SQL procedures or events, read the preview and check each item selected. Restoring replaces their definitions; running a procedure starts its work on the data. Check separately which scheduled SQL events are enabled.

Find the seven tabs and the restore preview

The page has seven tabs. Choose one according to the result you need. Restoring the supplied SQL definitions uses a separate preview opened from the relevant toolbar; it is listed below as an additional action, not as another tab.

AreaWhat you can do here
QueuesFind the queue number and name used by reports. Refresh the list from the PBX if a newly created queue is missing.
AgentsReview agent identifiers and descriptions in the catalog. A catalog entry is distinct from a user login account.
TrunksFind outgoing trunks and their descriptions. Refresh the PBX list if a report shows an unfamiliar trunk identifier.
Number normalizationDefine how numbers without an explicit international prefix are interpreted and preview a representative number.
Telephone geographyReview prefix, country, area or city classification and available coordinates. Preview catalog imports before applying them.
Report proceduresInspect the SQL definitions and available actions. Running a procedure is an operation on report processing, not just refreshing this page.
Database eventsCheck scheduled SQL operations and whether they are enabled. The database scheduler starts these events; operating-system cron starts separate jobs.
Standard restore previewReview proposed restoration of shipped procedures and events, select the intended objects and review the confirmation. It does not recover historical call rows.

Test the number format before applying it

Use this tab when telephone numbers arrive without a clear international prefix or are classified under the wrong country. Before changing anything, collect three real examples from FreePBX: a national number, a number with + or 00, and an extension. Compare them with the settings for country code, treatment of numbers without a prefix, leading zero and short-number length. Choose the rule that matches what your telephone provider sends.

Open Administration → Database and procedures → E.164 numbering to change the choices made during installation: country code, national/international/preserve format, recognition of 00, removal of the leading zero and maximum short-number length. Test the preview before saving.

  1. Preview representative examples

    Try a domestic number, an explicit international number and a short internal number. Compare the proposed value with the actual number supplied by the carrier before saving.

  2. Distinguish report normalization from PBX routing

    The separate incoming-context tool previews an Asterisk context and inserts only the managed Obelisk block. Assigning that context to trunks and applying FreePBX configuration are separate manual steps. Review its effect on every incoming call on those trunks, including CallerID, before activating it.

Number normalization

Use plain text for queue and line names

Write queue and trunk names as ordinary text. Accents, apostrophes and symbols are allowed; HTML formatting is rejected. An older description containing formatting is displayed as plain text, while its saved value is retained. Changing a displayed name leaves the queue or trunk identifier in FreePBX unchanged.

Handle another maintenance operation in progress

If Obelisk says the database is busy, check whether another administrator has started report-data repair, a SQL update or work on procedures and events. Let that operation finish, read its result and then try again. Keep its recovery files until you know whether it succeeded. Starting a second repair will not remove the reason for the wait.

For database administrators: this check coordinates report repair, supported SQL update migrations, import-procedure upgrades, system-object restore and the procedure/event editors. Other utilities and changes made directly in the database are not covered. Running jobs are not stopped: pause them and make backups when the maintenance instructions require it.

Review custom SQL before planning a clean reinstall

Before uninstalling, ask the database administrator whether procedures or events have been customized. While Obelisk is still available, save those definitions and a separate SQL backup. Also check that the database was created and recorded by the installer: the reinstall procedure needs that information.

Unrecognized SQL objects or a database the installer cannot identify as its own can stop reinstall preparation. Restore the standard definitions only if you intend to replace the custom ones; there is no automatic conversion after removal. Installing in another web folder alone is not a separate test installation: the database, FreePBX files and scheduled jobs may still be shared.

Identify a MySQL grant-view error

If installation or recovery reports an error for obelisk_routine_grants on MySQL, ask the database administrator to check the exact code: 1146 means the view is missing; 1142 or 1143 means SELECT on it is denied. The administrator must check creation or grant the required access before you resume. Changing the password does not resolve these errors. MariaDB does not require this view.

Verify the intended result

Reopen the catalogue entry and a report containing the affected identifier. For geography, check that the same number resolves as expected and that the browser can load map tiles. For SQL maintenance, open Installation checks to check required objects, grants and scheduler state.

Distinguish restoration from backup

Restoring SQL definitions puts the supplied procedures and events back in place; it does not restore call records. In particular, truncate_cons empties derived report tables. Do not run it merely to refresh an empty report. First identify why the data is missing. Recovering database contents requires the appropriate SQL backup, which is separate from the configuration archive.

Change scheduled commands only with the relevant procedure

Editing a stored procedure or SQL event changes how data is processed. Follow the specific support instructions before changing its definition; running a procedure can modify data. To pause or resume processing, use the linked maintenance procedure.

Controls on this page

Choose the catalog tab before searching or editing. Queue, agent and trunk catalogs supply names for reports; normalization and geography settings determine how numbers are interpreted. The restore preview shows changes to standard SQL definitions. It does not restore historical calls.

Complete product screenshots

Illustrative data. Open the screenshot to enlarge it and match the controls to the instructions in this chapter.

1. Queues

Open complete screenshot

Read the workspace section by section

The enlarged screenshots below show individual parts of the page. Each explanation tells you what the controls do and how to use them. Open a screenshot to see it at full size.

View 2

Agents

Inspect the agent identifiers collected for reporting. A clear catalogue helps you interpret agent groupings and recognise the people behind call activity.

View 3

Lines and trunks

Associate outgoing channels with recognizable plain-text descriptions. Refresh the PBX line inventory and use these names to compare outbound traffic.

View 5

Geographic catalogue

Review telephone prefixes, country, area, city and coordinates used by the report maps. The catalogue describes telephone geography, not the live position of the customer.

View 6

Report procedures

Inspect the SQL procedures that process source data for reporting. Review each operation before execution, especially procedures that empty report tables.

View 7

Scheduled database events

Check the scheduled database jobs, their status and last execution. Distinguish these SQL events from the application tasks configured on the server.

View 8

SQL restore preview

Inspect the standard procedures and events to restore, select the objects and review the changes before confirmation. This view restores definitions; it is separate from a configuration backup.

Request your demo

The complete Obelisk experience. Tell us about your contact center.

Loading the request form…