Merged revisions 335991 via svnmerge from
authorGregory Nietsky <gregory@distrotech.co.za>
Thu, 15 Sep 2011 08:40:07 +0000 (08:40 +0000)
committerGregory Nietsky <gregory@distrotech.co.za>
Thu, 15 Sep 2011 08:40:07 +0000 (08:40 +0000)
commit40b76b6893307019888d492489a4d1dde801ad20
tree23ae873d7d1606c9431bdaa630fb04296753936f
parentae4c13f4f3a0be52580ba2850c41bb4c22271907
Merged revisions 335991 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10

................
  r335991 | irroot | 2011-09-15 10:29:12 +0200 (Thu, 15 Sep 2011) | 17 lines

  Merged revisions 335978 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.8

  ........
    r335978 | irroot | 2011-09-15 10:15:22 +0200 (Thu, 15 Sep 2011) | 11 lines

    lock the channel before calling ast_bridged_channel() to prevent a seg fault.

    AMI agents list called on shutdown causes a segfault, introducing proper locking
    will prevent this.

    (closes issue ASTERISK-18092)

    Reported by: agustina
    Patches: chan_agent.patch (License #5041) patch uploaded by irroot
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@335993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_agent.c