Page MenuHomePhabricator
Diviner AG Projects RTC Platforms Provisioning: User Notifications

Provisioning: User Notifications
AG Projects RTC Platforms (Provisioning Guides)

This guide describes the provisioning functions for User Notifications.

Quota exceeded

This notification is sent out to the email address associated with SIP accounts that have the quota attribute set to a positive value, when the monthly quota has been exceeded. The email is generated by a CDRTool cron job task from the script:

/var/www/CDRTool/scripts/OpenSIPS/quotaCheck.php

To change the email headers or the body of the notification message you must insert/update a row in cdrtool.settings mysql table. See for an example:

/var/www/CDRTool/setup/mysql/custom_notifications.mysql

Voicemail

The notification that contains also the actual voice message as a WAV attachment is sent out by the Asterisk voicemail server. To change the email headers or body you must change the configuration file:

/etc/asterisk/config/settings.m4

After this, config needs to ben regenerated:

msp-reconfigure

This notification cannot be enabled/disabled per user, it is a global platform setting.

Last sessions

An email with last received sessions in the previous 24 hours is sent out by a CDRTool cronjob script:

/var/www/CDRTool/scripts/OpenSIPS/notifyLastSessions.php

The From header of the email notification can be modified by changing the following setting from /etc/cdrtool/global.inc:

$CDRTool['provider']['fromEmail'] ="support@ag-projects.com";

The notification is sent only if the SIP account belongs to the missed-calls group.

Next Steps

Continue by: