chan_mgcp: Enforce locking for oseq
authorKinsey Moore <kmoore@digium.com>
Tue, 21 Jan 2014 20:28:57 +0000 (20:28 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 21 Jan 2014 20:28:57 +0000 (20:28 +0000)
commitb2a682bae29f85d1978f9e28768da791c392330f
tree1abeec3413b245897b02fc0eab392f9645ec01d2
parente0da867dbee6a1f90fd8f791b77371cc6e2c1824
chan_mgcp: Enforce locking for oseq

This restricts direct usage of global oseq so that all accesses are
locked and threads are not racing to get oseq values that they did not
claim.

This also fixes a build error in res_pktccops under dev mode.

(closes issue ASTERISK-23100)
Reported by: adomjan
Patch by: adomjan
........

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

Merged revisions 406038 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 406049 from http://svn.asterisk.org/svn/asterisk/branches/12

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