[asterisk-bugs] [Asterisk 0016059]: [patch] Incorrect parsing of 'hint' extensions

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 13 05:48:36 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16059 
====================================================================== 
Reported By:                bzing2
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16059
Category:                   Core/PBX
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-12 11:34 CDT
Last Modified:              2009-10-13 05:48 CDT
====================================================================== 
Summary:                    [patch] Incorrect parsing of 'hint' extensions
Description: 
pbx_load_config in pbx/pbx_config.c incorrectly searches for 'appdata' in a
hint extension makeing it impossible to use fuctions expansions.
====================================================================== 

---------------------------------------------------------------------- 
 (0112236) bzing2 (reporter) - 2009-10-13 05:48
 https://issues.asterisk.org/view.php?id=16059#c112236 
---------------------------------------------------------------------- 
Ok, I believe I have found (and fixed) the offending parsing code.  The
same bug was also present in the CLI.  Two patches are attached; one
against the trunk (revision 223910), and the other against release 1.6.1.6.
 Both have been tested, the release version is now in production (well for
me anyway).

For reference my setup is as follows:

== MySQL ==
select * from hints;
+-------+---------------+
| exten | channels      |
+-------+---------------+
|  1234 | SIP/test-set1 |
+-------+---------------+

== extconfig.conf ==
hints => mysql,asterisk,hints

== extensions.conf ==
[subscriptions]
exten => _XXXX,hint,${CUT(REALTIME(hints,exten,${EXTEN},:,:),:,4)}

== Resulting contents of subscriptions after SUBSCRIBE ==
[ Context 'subscriptions' created by 'pbx_config' ]
  '1234' =>         hint: SIP/test-set1
  '_XXXX' =>        hint: ${CUT(REALTIME(hints,exten,${EXTEN},:,:),:,4)} 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-13 05:48 bzing2         Note Added: 0112236                          
======================================================================




More information about the asterisk-bugs mailing list