Improve handling of values supplied to FAXOPT(ecm).
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 15 Mar 2010 22:48:38 +0000 (22:48 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 15 Mar 2010 22:48:38 +0000 (22:48 +0000)
commit43d922b5a629a7d7c873a79e80d1f534f1b0cbb2
tree1fbf016e8483f9f2b0f53c2966027ec62ca0b4a6
parentce4086bbdcb6843d50cca6c3b2dbe8d8516831e0
Improve handling of values supplied to FAXOPT(ecm).

Previously, values that began with whitespace were silently treated as 'no',
and all non-'yes' values were also treated as 'no'. Now the supplied value
is specifically checked for a 'yes' or 'no' (or equivalent) value, after skipping
leading whitespace. If the value is not valid, then a warning message is generated.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@252709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_fax.c