Mor.conf
From Kolmisoft Wiki
Jump to navigationJump to search
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 connections to the 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 8).
- use_flat_rates - Should MOR use Flat-Rates, default 1.
- use_speed_dials - Should Speed Dials be enabled.
- server_ip - external server IP, default 127.0.0.1 (Used in P-Asserted-Identity).
- play_hgc_audio - Should we play audio with error message when call fails? (default 0 if not set).
- If it is equal to 1, then sound files will be played for error codes 200 and higher
- If it is equal to 2, then sound files will be played for ALL error codes (sound files for these error codes are not included into MOR) (This option is available starting from MOR 10.)
- clean_destination - MOR cleans destination and leaves only numeric values. Example, if destination is entered as 1234.56789, only 1234 is left after cleaning. Default 1
- pass_pai - When PAI comes from Caller should we pass it to Callee automatically? default no (0)
- pass_rpid - When Remote-Party-ID comes from Caller should we pass it to Callee automatically? default no (0)
- record_not_answered_calls - save audio to the file while the channel is not answered (not bridged), default 0 (by default records only answered calls)
- hgcX = code, sets ISDN code for MOR HGC, where X >= 200 and code - some integer value, from ISDN codes, example: hgc203 = 34 sets ISDN code 34 for MOR HGC 203. If no values are set - default ones will be used. To enable hgc mapping for provider related causes, disable_provider_hgc_mapping should be set to 0 (this setting is described below)
- log_only_last_cdr - Default 0. If 1, then Core logs only last CDR for the Call, e.g. it does not log failed attempts to use first providers in the LCR until call goes over the last one. E.g. only one CDR is logged for the call.
- do_not_log_mor_hgc - Default 0. If 1, then Core only logs calls which HGC are < 200, e.g. not related to the MOR. This option applies only to NO LAST tries. e.g. last call try is ALWAYS logged no matter of HGC.
- provider_loop_check - enables (by default) HGC 240 Provider Loop check
- disable_provider_hgc_mapping - Default 1. If 0, then Core is allowed to modify ISDN code based on MOR HGC (only for provider related HGC). If 1, then Core will use last ISDN code which is set by Asterisk (this will reflect real cause why provider failed).
- hangup_when_star_pressed - Default 0. If 1, then pressing "*" in Calling Cards dial plan will drop the call to End IVR. If 0, then this feature is disabled.
- use_valid_callerid - Default 0. If 1, then MOR should check if callerid is valid (contains only numbers). If option is enabled and callerid is invalid, then MOR will overwrite it with callerid from device settings. If callerid in device settings is empty or invalid, then callerid will not be changed. This option can be used to prevent 'anonymous' callerid in cdr.
- use_callerid_from_pai - Default 0. If 1, then CallerID from PAI header will be used instead of FROM header CallerID.
- anonymous_callerid_by_rpidpai - Default 0. If 1, then 'anonymous' CallerID will be changed to CallerID from 'Remote-Party-ID' or 'P-Asserted-Identity' headers (unless they are abset or also 'anonymous'). If original CallerID is not 'anonymous', then this option will not change CallerID . This option only works if 'use_callerid_from_pai' is disabled.
- auth_by_divfromrpidpai - Default 0. If 1, then authentication by CallerID (ANI, pinless dialing) will use CallerID from these headers: Diversion, From, Remote-Party-ID or P-Asserted-Identity. Diversion has the highest priority and P-Asserted-Identity has the lowest priority. First non empty, non anonymous CallerID will be used to authenticate user/calling card. Original CallerID will not be changed. CallerID from these headers will only be used to authenticate user. Location rules will be applied to this CallerID.
- global_cli_auth - Default 1. If 1, then authentication by callerid is global. For example, if reseller's user calls to admin's did, which is assigned to auth by ani dialplan, then this user can be authenticated and vice versa - if admin's user calls to reseller's did, which is assigned to auth by ani dialplan, then this user can be authenticated. This logic also applies when one reseller's user calls to another reseller's did. When this option is set to 0, users can be authenticated by callerid only when calling to its owner's did, assigned to auth by ani dialplan.
- use_callback_uniqueid - Default 0. If 1, then callback uniqueid (both legA and legB have the same callback uniqueid) will be stored to 'calls' table, 'userfield' field. If you enable this feature, make sure your calls table has 'userfield' field. If calls table doesn't have this field, it should be added for this feature to work properly.
In order to activate changes made to this file, you need to restart Asterisk or reload MOR Core
Reload MOR Core
- Login to Asterisk CLI
- Issue: mor reload