For the complete documentation index, see llms.txt. This page is also available as Markdown.

Monitoring Providers on MikoPBX

When working with telecom service providers, issues may occasionally arise. For example, the provider's server might become unresponsive or unavailable. This article provides a mechanism for notifying the system administrator via email.

  1. Create a new "Dialplan Application".

Creating a new dialplan application
  1. Enter a name (e.g., Blacklist), a short number for the application (e.g., 99), and select "Code Type" - "PHP AGI Script".

Parameters of dialplan
  1. Go to the "Program Code" tab:

  1. Insert the following code:

  1. Save the changes and copy the dialplan application identifier from the browser's address bar. It will look like "DIALPLAN-APP-CF967EE0".

Identificator of dialplan application
  1. Go to SystemCustomizing System Files and open the file /var/spool/cron/crontabs/root for editing.

File for editing
  1. Select the mode "Append to the end of the file", and in the black editing field at the bottom, insert the following code:

Adjust the file name according to your dialplan application identifier "DIALPLAN-APP-CF967EE0

Save the changes.

You're done!

Last updated

Was this helpful?