Summary: | ASTERISK-03107: [patch] Allow the switch statement to contain variable expressions to be evaluated at runtime | ||
Reporter: | Tilghman Lesher (tilghman) | Labels: | |
Date Opened: | 2004-12-27 18:00:28.000-0600 | Date Closed: | 2008-01-15 15:21:31.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/Configuration |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20041227__fix_backslashes.diff.txt | |
Description: | Allows the switch statement in extensions.conf to prevent evaluation of variables at load time, preferring runtime by backslashing the characters responsible for variable interpolation, e.g. \$\{somevar\} ****** ADDITIONAL INFORMATION ****** Disclaimer on file. | ||
Comments: | By: Mark Spencer (markster) 2005-01-05 21:14:47.000-0600 How about we make this something like "switchsubst => Foo/" rather than "switch => " otherwise this breaks the loopback switch and also encurs a performance penalty on all switch calls, clearly the vast majority of which do not need this. By: Tilghman Lesher (tilghman) 2005-01-06 10:29:00.000-0600 I'm wondering if perhaps it would be better to alter the variable expression in another way, such as $~{Foo}, rather than adding another switch keyword. By: Mark Spencer (markster) 2005-01-06 10:52:48.000-0600 I think the alternate switch is easier, introduces no new syntax, and is computationally least expensive, especially at runtime presumably. By: Mark Spencer (markster) 2005-01-12 23:11:46.000-0600 Implemented using "eswitch" By: Russell Bryant (russell) 2005-01-12 23:17:34.000-0600 not in 1.0 By: Digium Subversion (svnbot) 2008-01-15 15:21:31.000-0600 Repository: asterisk Revision: 4780 U trunk/configs/extensions.conf.sample U trunk/include/asterisk/pbx.h U trunk/pbx/pbx_config.c U trunk/pbx.c ------------------------------------------------------------------------ r4780 | markster | 2008-01-15 15:21:31 -0600 (Tue, 15 Jan 2008) | 2 lines Implement eswitch for evalulating variables at runtime (bug ASTERISK-3107) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4780 |