Difference between revisions of "Change HGC for a User"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with 'There are two ways to change a Hangupcause code (HGC) a User receies from MOR. You can change the HGC globally for all Users or set in in the device settings fro every User. =Cha…')
 
Line 1: Line 1:
There are two ways to change a Hangupcause code (HGC) a User receies from MOR. You can change the HGC globally for all Users or set in in the device settings fro every User.
There are two ways to change a Hangupcause code (HGC) a User receives from MOR. You can change the HGC globally for all Users or set in in the device settings for every User individually.
=Change HGC globally=
=Change HGC globally=
Any MOR generated HGC (codes above 200) can be changed to any ISDN code. This can be done by modifying [Mor.conf | mor.conf] at /etc/asterisk directory.
Any MOR generated HGC (codes above 200) can be changed to any ISDN code. This can be done by modifying [Mor.conf | mor.conf] at /etc/asterisk directory.

Revision as of 17:11, 15 March 2015

There are two ways to change a Hangupcause code (HGC) a User receives from MOR. You can change the HGC globally for all Users or set in in the device settings for every User individually.

Change HGC globally

Any MOR generated HGC (codes above 200) can be changed to any ISDN code. This can be done by modifying [Mor.conf | mor.conf] at /etc/asterisk directory.

To change the code, you need to add a line to the mor.conf file:

hgcX = code

where X is MOR HGC (X >= 200) and code is some integer value from ISDN codes. Example:

hgc203 = 34 

This sets ISDN code 34 for MOR HGC 203. If no values are set - default ones will be used. Please note, that mor reload is needed after mofifying the mor.conf file. To reload MOR, run:

asterisk -rx 'mor reload'

Change HGC for a specific User

Use Change Failed Code To option in the [Device_settings | device settings] to change a failed HGC to some other value. This works only for outgoing calls from device. It does not work for the incoming calls.