Files
asterisk/main
Matt Jordan 6ed58014f5 main/format_cap: Parse capabilities generated by ast_format_cap_get_names
We have a strange relationship between the parsing of format
capabilities from a string and their representation as a string. We
expect the format capabilities to be expressed as a string in the
following format:

allow = !all,ulaw,alaw
disallow = g722

While we would generate the string representation of those formats as:

allow = (ulaw|alaw)
disallow = (ulaw|alaw|g729...)

When the configuration framework needs to store values as a string, it
generates the format capabilities using the second representation; this
representation however cannot be parsed when the entry is rehydrated.
This patch fixes that by updating
ast_format_cap_update_by_allow_disallow to parse an entry as if it were
in the generated format if it has a leading '(' and a trailing ')'.

ASTERISK-25238

Change-Id: I904d43caf4cf45af06f6aee0c9e58556eb91d6ca
2015-07-11 16:06:13 -05:00
..
2015-04-12 07:12:45 -04:00
2015-06-05 11:23:16 -05:00
2015-06-05 02:17:59 -05:00
2012-03-22 19:51:16 +00:00
2015-06-10 18:06:15 -05:00
2015-07-07 21:31:49 -05:00
2012-03-22 19:51:16 +00:00
2012-06-15 16:20:16 +00:00
2015-06-05 11:23:16 -05:00
2015-06-08 09:44:04 -05:00
2012-09-21 17:14:59 +00:00
2015-06-08 09:44:04 -05:00
2015-06-08 09:44:04 -05:00