Difference between revisions of "Mor.conf"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: Line 1:
This file is in '''/etc/asterisk/''' and describes some values for app_mor.so application which is the main MOR core working in Asterisk environment.
This file is in '''/etc/asterisk/''' and describes some values for the app_mor.so application, which is the main MOR core working in the Asterisk environment.




* '''hostname, dbname, user, password, port, sock''' – all these values describes connection to database;
* '''hostname, dbname, user, password, port, sock''' – All these values describe connection to database;
* '''min_frozen''' – Minimum credit left to allow simultaneous calls. If users balance is lower – he will not be able to make simultaneous calls (default 10); ''Not used starting from MOR 0.7.''
* '''min_frozen''' – Minimum credit left to allow simultaneous calls. If the user's balance is lower – he will not be able to make simultaneous calls (default 10); ''Not used starting from MOR 0.7.''
* '''frozen_time''' – How much balance to freeze in minutes if user is prepaid (default 30). If user makes several simultaneous calls and he is prepaid we need to „freeze“ some amount to be safe, more detailed explanation in [[Prepaid Logic]];
* '''frozen_time''' – How much balance to be frozen in terms of minutes if the user is prepaid (default 30). If the user makes several simultaneous calls and is prepaid, we need to "freeze“ some amount to be safe. A more detailed explanation is in [[Prepaid Logic]];
* '''show_notice, show_warning, show_error''' – sets debug level for app_mor.so application in Asterisk CLI;
* '''show_notice, show_warning, show_error''' – Sets debug level for the app_mor.so application in Asterisk CLI;
* '''zap_change''' – change ZAP into something else in Asterisk to let use some custom made channels based on Zaptel;
* '''zap_change''' – Change ZAP into something else in Asterisk to permit the use of some custom-made channels based on Zaptel;
* '''server_id''' – unique number for server identification;
* '''server_id''' – Unique number for server identification;
* '''active_calls''' – tells app_mor.so to update info to DB related to calls currently on the system;
* '''active_calls''' – Tells app_mor.so to update info to DB related to calls currently on the system;
* '''dial_out_settings''' – global settings for Dial() command in Asterisk (rTt or similar);
* '''dial_out_settings''' – Global settings for Dial() command in Asterisk (rTt or similar);
* '''serial''' – serial key for activating app_mor.so
* '''serial''' – Serial key for activating app_mor.so
* '''use_lcr_partials''' - Should MOR be able to use LCR by destinations? Default 1
* '''use_lcr_partials''' - Should MOR be able to use LCR by destinations? Default 1
* '''global_call_timeout''' - Global timeout for calls in seconds, default 7200 seconds (2h)
* '''global_call_timeout''' - Global timeout for calls in seconds, default 7200 seconds (2h)

Revision as of 09:33, 30 April 2010

This file is in /etc/asterisk/ and describes some values for the app_mor.so application, which is the main MOR core working in the Asterisk environment.


  • hostname, dbname, user, password, port, sock – All these values describe connection to database;
  • min_frozen – Minimum credit left to allow simultaneous calls. If the user's balance is lower – he will not be able to make simultaneous calls (default 10); Not used starting from MOR 0.7.
  • frozen_time – How much balance to be frozen in terms of minutes if the user is prepaid (default 30). If the user makes several simultaneous calls and is prepaid, we need to "freeze“ some amount to be safe. A more detailed explanation is in Prepaid Logic;
  • show_notice, show_warning, show_error – Sets debug level for the app_mor.so application in Asterisk CLI;
  • zap_change – Change ZAP into something else in Asterisk to permit the use of some custom-made channels based on Zaptel;
  • server_id – Unique number for server identification;
  • active_calls – Tells app_mor.so to update info to DB related to calls currently on the system;
  • dial_out_settings – Global settings for Dial() command in Asterisk (rTt or similar);
  • serial – Serial key for activating app_mor.so
  • use_lcr_partials - Should MOR be able to use LCR by destinations? Default 1
  • global_call_timeout - Global timeout for calls in seconds, default 7200 seconds (2h)
  • check_banned_clis - Should MOR check for banned CLIs? Default 1, Enables/Disables ANI/CLI ban system (available from MOR 0.8)
  • play_hgc_audio - Should we play audio with error message when call fails? (default 0 if not set)
  • use_flat_rates - Should MOR use Flat Rates, default 1
  • use_speed_dials - Should Speed Dials be enabled




In order to activate changes made to this file you need to restart Asterisk or reload app_mor.so


Reload app_mor.so

  1. Login to Asterisk CLI
  2. Make sure there are no active calls using command: show channels, wait till they end or kill them using soft hangup command
  3. Issue: module unload app_mor.so
  4. Then: module load app_mor.so