diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-07-12 05:55:38 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-07-12 05:55:38 -0500 |
commit | ec182b6d509fe8ef965ac0c11147db33f53e6ca9 (patch) | |
tree | 2ecb55393749983f0d9c8c57ce6e24b465f2fbab /configs/samples | |
parent | 3bf42a58c421b3e8cca5f92e124c2194ef86ac85 (diff) | |
parent | 4e555437dcf20c7dc272749347c3c7cdccef66b7 (diff) |
Merge "res_musiconhold: Add kill_escalation_delay, kill_method to class" into 13
Diffstat (limited to 'configs/samples')
-rw-r--r-- | configs/samples/musiconhold.conf.sample | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configs/samples/musiconhold.conf.sample b/configs/samples/musiconhold.conf.sample index 8b2202de5..67570ee46 100644 --- a/configs/samples/musiconhold.conf.sample +++ b/configs/samples/musiconhold.conf.sample @@ -91,3 +91,26 @@ directory=moh ;mode=custom ;directory=/var/lib/asterisk/mohmp3 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12 + +; By default, when res_musiconhold reloads or unloads, it sends a HUP signal +; to custom applications (and all descendants), waits 100ms, then sends a +; TERM signal, waits 100ms, then finally sends a KILL signal. An application +; which is interacting with an external device and/or spawns children of its +; own may not be able to exit cleanly in the default times, expecially if sent +; a KILL signal, or if it's children are getting signals directly from +; res_musiconhoild. To allow extra time, the 'kill_escalation_delay' +; class option can be used to set the number of milliseconds res_musiconhold +; waits before escalating kill signals, with the default being the current +; 100ms. To control to whom the signals are sent, the "kill_method" +; class option can be set to "process_group" (the default, existing behavior), +; which sends signals to the application and its descendants directly, or +; "process" which sends signals only to the application itself. + +;[sox_from_device] +;mode=custom +;directory=/var/lib/asterisk/mohmp3 +;application=/usr/bin/sox -q -t alsa -c 2 -r 48000 hw:1 -c 1 -r 8000 -t raw -s - +; Wait 500ms before escalating kill signals +;kill_escalation_delay=500 +; Send signals to just the child process instead of all descendants +;kill_method=process |