[asterisk-dev] [Code Review] 2969: config: Allow ConfBridge DTMF menus to have '#' as the first digit.
opticron
reviewboard at asterisk.org
Thu Oct 31 14:42:03 CDT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2969/#review10074
-----------------------------------------------------------
/branches/11/main/config.c
<https://reviewboard.asterisk.org/r/2969/#comment19350>
This should probably return -1.
- opticron
On Oct. 28, 2013, 7:37 p.m., rmudgett wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2969/
> -----------------------------------------------------------
>
> (Updated Oct. 28, 2013, 7:37 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-22478
> https://issues.asterisk.org/jira/browse/ASTERISK-22478
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> 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,list
> 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.
>
>
> Diffs
> -----
>
> /branches/11/main/config.c 402137
>
> Diff: https://reviewboard.asterisk.org/r/2969/diff/
>
>
> Testing
> -------
>
> Escaping the first non-blank character in the config line now allows ConfBridge DTMF menus to start a DTMF sequence with the '#' character.
> \#1=action
>
> Tested other special characters to see if they no longer are interpreted specially:
> \+= value Is interpreted as name '+' assigned to value.
> += value Is rejected as not having a name.
> \== value Is interpreted as name '=' assigned to value.
> == value Is rejected as not having a name.
> \ Is rejected as an invalid escape.
>
>
> Thanks,
>
> rmudgett
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131031/a38e7bea/attachment-0001.html>
More information about the asterisk-dev
mailing list