Fix a bug with the dahdi_setoption callback in chan_dahdi.
authorJoshua Colp <jcolp@digium.com>
Thu, 16 Apr 2009 13:42:52 +0000 (13:42 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 16 Apr 2009 13:42:52 +0000 (13:42 +0000)
commitac48378d28967bec1b152abf9ddbc870b4081abc
tree50d361b0971c2d8645ddcf64381a2e786281d2d9
parentb2e77d5f5d45b7650acbbd763266db58702ded62
Fix a bug with the dahdi_setoption callback in chan_dahdi.

This function incorrectly reported success even if the option was
unsupported. This was exposed by the options to change the underlying
channel format. The function now returns a failure if the option
is unsupported.

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