IAX2: Transfer Reject: Lock bridgecallno before touching it, refactor
authorAlec L Davis <sivad.a@paradise.net.nz>
Tue, 11 Jun 2013 08:13:39 +0000 (08:13 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Tue, 11 Jun 2013 08:13:39 +0000 (08:13 +0000)
commitb0143074fa690b09bd8cad7f59dc870ecc57eb86
tree1245252b889204083534c8a373602f025c901a1e
parented85661f43ae5ea5cbca3055f64964964e79e845
IAX2: Transfer Reject: Lock bridgecallno before touching it, refactor

1). When touching the bridgecallno, we need to lock it.

2). Remove magic number '0' and replace with TRANSFER_NONE.

3). Exit early if no bridgecallno.

4). Reduce indentation.

Reported by: alecdavis
Tested by: alecdavis
alecdavis (license 585)

Review https://reviewboard.asterisk.org/r/2613/
........

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

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

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