config: Allow ConfBridge DTMF menus to have '#' as the first digit.
authorRichard Mudgett <rmudgett@digium.com>
Sat, 2 Nov 2013 01:15:11 +0000 (01:15 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 2 Nov 2013 01:15:11 +0000 (01:15 +0000)
commit0721b1de836da3e91ac71d54c972caa80a9e2379
treeeda35e14fae8ea28740bec3e7110f4fa68bb6ba2
parent5401b2bfbf9c31570439c62a3ed7165052610b51
config: Allow ConfBridge DTMF menus to have '#' as the first digit.

ConfBridge allows custom DTMF menus to be created in the confbridge.conf
file by assigning a DTMF key sequence to a sequence of actions as follows:

DTMF-sequence = action,action...

Unfortunately, the normal config file processing code interprets an
initial '#' character as starting a directive such as #include.

* Add the ability to escape the first non-blank character in a config line
so the '#' character can be used without triggering the directive
processing code.

(closes issue AFS-2)
(closes issue ASTERISK-22478)
Reported by: Nicolas Tanski
Patches:
      jira_asterisk_22478_v11.patch (license #5621) patch uploaded by rmudgett (modified)

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

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/confbridge/conf_config_parser.c
configs/confbridge.conf.sample
main/config.c