Difference between revisions of "Hangupcause Sounds"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: Line 1:
= Description =  
= Description =  


MOR returns [[Hangupcause Codes | error codes]] when call fails.
MOR returns [[Hangupcause Codes | error codes]] when a call fails.


They are written in [[Asterisk CLI]]. Also these codes are visible in Call List near each call.
The codes are written in [[Asterisk CLI]]. The codes are visible in the Call List near each call.


To make it even simpler, MOR can play associated audio when some error happens.
To make it even simpler, MOR can play associated audio when some error happens. To enable the audio, make '''play_hgc_audio = 1''' in [[mor.conf]] and [[How to restart Asterisk server | restart Asterisk]].


To enable it make '''play_hgc_audio = 1''' in [[mor.conf]] and [[How to restart Asterisk server | restart Asterisk]].
This setting is available to help new users start with MOR and get instant feedback about failed calls.


This setting is available from the start to help new users to start with MOR and get instant feedback about failed calls.
Sound files are stored in ''/var/lib/asterisk/sounds/mor/hgc''.


Sound files are stored in ''/var/lib/asterisk/sounds/mor/hgc''
'''IMPORTANT!''' For production use this setting should be disabled, because a call has to be answered in order to play these sounds and the dialer has to pay for the call.
 
'''IMPORTANT!''' For production use this setting should be disabled because call is answered in order to play these sounds and dialer has to pay for the call.




Line 25: Line 23:
and [[How to restart Asterisk server | restart Asterisk]].
and [[How to restart Asterisk server | restart Asterisk]].


To check if this setting is disabled you can enter in [[Asterisk CLI]]:
To check whether this setting is disabled, you can enter in [[Asterisk CLI]]:


  mor show status
  mor show status
Line 49: Line 47:
= How to change =
= How to change =


Sound files are stored in ''/var/lib/asterisk/sounds/mor/hgc'' overwrite them with sound files ([[Sound_files#Converting |converted to Asterisk readable format]]).
Sound files are stored in ''/var/lib/asterisk/sounds/mor/hgc''. Overwrite them with sound files ([[Sound_files#Converting |converted to Asterisk readable format]]).


<br><br>
<br><br>

Revision as of 01:27, 24 May 2010

Description

MOR returns error codes when a call fails.

The codes are written in Asterisk CLI. The codes are visible in the Call List near each call.

To make it even simpler, MOR can play associated audio when some error happens. To enable the audio, make play_hgc_audio = 1 in mor.conf and restart Asterisk.

This setting is available to help new users start with MOR and get instant feedback about failed calls.

Sound files are stored in /var/lib/asterisk/sounds/mor/hgc.

IMPORTANT! For production use this setting should be disabled, because a call has to be answered in order to play these sounds and the dialer has to pay for the call.


How to disable

In order to disable these audio prompts in mor.conf set:

play_hgc_audio = 0

and restart Asterisk.

To check whether this setting is disabled, you can enter in Asterisk CLI:

mor show status

It should show as disabled:

CLI> mor show status

MOR billing and Routing application status
--------------------------------------------------
Version: 8.1.10
Server ID: 1
Active calls now/limit: 0/1000
Global call timeout: 7200 s
Use LCR Partials: 1
Check banned CLIs: 1
Use Speed Dials: 1
>>> Play HGC Audio: 0 <<<
Use Flat-Rates: 1



How to change

Sound files are stored in /var/lib/asterisk/sounds/mor/hgc. Overwrite them with sound files (converted to Asterisk readable format).



See also