]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_musiconhold: Prevent multiple simultaneous reloads. 00/2000/3
authorSean Bright <sean.bright@gmail.com>
Wed, 13 Jan 2016 13:20:24 +0000 (08:20 -0500)
committerJoshua Colp <jcolp@digium.com>
Wed, 13 Jan 2016 13:41:19 +0000 (09:41 -0400)
commit2d29e67567f18668b6003771787370460acc01bf
tree670dcfdf6bc1d3773101b104d1bcbe5cc9632fe0
parent71986dc85b323b8efb98ef7c400f1793dc953885
res_musiconhold: Prevent multiple simultaneous reloads.

There are two ways in which the reload() function in res_musiconhold can be
called from the CLI:

  * module reload res_musiconhold.so
  * moh reload

In the former case, the module loader holds a lock that prevents multiple
concurrent calls, but in the latter there is no such protection.

This patch changes the 'moh reload' CLI command to invoke the module loader
directly, rather than call reload() explicitly.

ASTERISK-25687 #close

Change-Id: I408968b4c8932864411b7f9ad88cfdc7b9ba711c
res/res_musiconhold.c