Change HGC for a User

From Kolmisoft Wiki
Revision as of 17:10, 15 March 2015 by Rita (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.

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.