Cleaned up chan_dahdi iflist handling and locking.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 10 Sep 2009 22:31:12 +0000 (22:31 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 10 Sep 2009 22:31:12 +0000 (22:31 +0000)
commit32352265c44eb65f9217df5bc29171932b24e152
tree5ccda602327ded798b77a46ac8cff11c6268f1d9
parent9a1215989f8eb8a29f2c198d19128ee8d4aa12c1
Cleaned up chan_dahdi iflist handling and locking.

*  Fixed walking the iflist so it is always done with the iflock locked.
*  Simplified iflist walking routines.
*  Created chan_dahdi iflist insertion and extraction routines.
*  Fixed duplicate_pseudo() malloc fail handling.
*  Fixed infinite loop in action_dahdishowchannels() when showing a single channel.

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