]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 368895,368899 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Wed, 13 Jun 2012 21:22:20 +0000 (21:22 +0000)
committerAutomerge script <automerge@asterisk.org>
Wed, 13 Jun 2012 21:22:20 +0000 (21:22 +0000)
file:///srv/subversion/repos/asterisk/branches/10

................
  r368895 | mjordan | 2012-06-13 15:27:28 -0500 (Wed, 13 Jun 2012) | 21 lines

  Mark res_smdi/res_adsi as 'core' supported modules

  Recently, various issues surrounding weak attributes have caused problems with
  modules that rely on that feature to be enabled in menuselect.  This includes
  app_voicemail and chan_dahdi, as they both rely upon res_smdi and res_adsi,
  which, in certain circumstances, may not be enabled by default in menuselect.

  Because res_smdi/res_adsi are dependencies for chan_dahdi/app_voicemail, this
  patch marks both as 'core' supported modules.  This will allow both
  app_voicemail and chan_dahdi to be enabled as well, regardless of whether or
  not that system supports weak attributes.

  (issue AST-900)
  Reported by: Thomas Arimont

  (issue AST-885)
  Reported by: Denis Alberto Martinez
  ........

  Merged revisions 368894 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................
  r368899 | mmichelson | 2012-06-13 16:13:30 -0500 (Wed, 13 Jun 2012) | 19 lines

  Fix a deadlock that occurs when func_volume is used on a local channel.

  This was discovered by trying to perform a call forward to an extension
  that makes use of func_volume. When the local channel is optimized away,
  the datastore on the local;2 channel would have its audiohook destroyed
  rather than detaching the audiohook from the channel and then destroying
  it.

  With this patch, func_volume's datastore destructor takes the proper
  route of detaching the audiohook and then destroying it.

  (closes issue ASTERISK-19611)
  reported by Volker Sauer
  Patches:
   ASTERISK-19611.patch uploaded by Mark Michelson (license #5049)
  ........

  Merged revisions 368898 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@368917 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_volume.c
res/res_adsi.c
res/res_smdi.c

index 39b5a8a08e8dc7ac2cebdc244c2e6b49d8ebd0c5..ce10b56807a1e70450625f75ac05b0e5813b12a1 100644 (file)
@@ -90,6 +90,9 @@ static void destroy_callback(void *data)
        struct volume_information *vi = data;
 
        /* Destroy the audiohook, and destroy ourselves */
+       ast_audiohook_lock(&vi->audiohook);
+       ast_audiohook_detach(&vi->audiohook);
+       ast_audiohook_unlock(&vi->audiohook);
        ast_audiohook_destroy(&vi->audiohook);
        ast_free(vi);
 
index 684d8f213c95cbd7c863471aaa10746e3f005a01..19fb713b2d0c432fec108b55dbf5a6aeacb145d9 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 /*** MODULEINFO
-       <support_level>extended</support_level>
+       <support_level>core</support_level>
  ***/
 
 #include "asterisk.h"
index e0bde6959f8162c8d230f6adf2bb91c67a7558b4..cc49b98e99f04bfb9703ba99ac42dcf030c60947 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 /*** MODULEINFO
-       <support_level>extended</support_level>
+       <support_level>core</support_level>
  ***/
 
 #include "asterisk.h"