gives channel reference before unlocking it and using setvar helper.
authorDavid Vossel <dvossel@digium.com>
Mon, 12 Apr 2010 14:47:16 +0000 (14:47 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 12 Apr 2010 14:47:16 +0000 (14:47 +0000)
commitbd53cbabcf98c4e760e13691014fcedf1a738c4c
treecda3f0c55b9a0254b21d75b43366b176fe1ff986
parentd2e1f421faee96562938547620aec0b2455cdea5
gives channel reference before unlocking it and using setvar helper.

To guarantee the channel is valid when calling setvar on the MASTER_CHANNEL
dialplan function, a channel reference must be taken before unlocking. Thanks
to russell for pointing out the error.

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