[Home]

Summary:ASTERISK-01914: pbx_config 1.43 removes quotes ' that it shouldn't
Reporter:davet (davet)Labels:
Date Opened:2004-06-28 14:46:03Date Closed:2011-06-07 14:10:28
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) pbx_config.c-patch
Description:A change between 1.42 and 1.43 of pbx_config breaks parsing extensions.conf where a single quote is used in the dialplan.

Patch attached to backout the change.


****** ADDITIONAL INFORMATION ******

extensions.conf has:

exten => 123,1,Answer
exten => 123,2,Wait(1)
exten => 123,3,SayUnixTime(|GB|'beep' ABd 'digits/at' IMp)
exten => 123,4,Goto(2)


version 1.43 of pbx_config.c drops the single quotes '

*CLI> show dialplan localservices-operator
[ Context 'localservices-operator' created by 'pbx_config' ]
 '123' => 1. Answer()        [pbx_config]
          2. Wait(1)         [pbx_config]
          3. SayUnixTime(|GB|beep ABd digits/at IMp) [pbx_config]
          4. Goto(2)          [pbx_config]


version 1.42 of pbx_config.c is OK

*CLI> show dialplan localservices-operator
[ Context 'localservices-operator' created by 'pbx_config' ]
 '123' => 1. Answer()        [pbx_config]
          2. Wait(1)         [pbx_config]
          3. SayUnixTime(|GB|'beep' ABd 'digits/at' IMp) [pbx_config]
          4. Goto(2)          [pbx_config]
Comments:By: Mark Spencer (markster) 2004-06-28 14:51:23

The general problem to solve was how to quote things in pbx_config. As a result, we decided to use ' as the quote in pbx_config, so that double quotes would not be removed.  You can escape the single quotes with a backslash and that will fix your configuration to support the new handling method.