[asterisk-bugs] [Asterisk 0011767]: [patch] agi SET VARIABLE does not allow the substitution of functions/variables.

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jan 14 20:54:31 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11767 
====================================================================== 
Reported By:                davevg
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11767
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 98714 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-14-2008 15:01 CST
Last Modified:              01-14-2008 20:54 CST
====================================================================== 
Summary:                    [patch] agi SET VARIABLE does not allow the
substitution of functions/variables.
Description: 
res_agi does not properly substitute variables when using the SET VARIABLE
command.  See additional information for agi debug trace before and after
this patch.  Both 1.4 and trunk have this issue.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 01-14-08 20:54  
---------------------------------------------------------------------- 
So, in that case, you should do:

GET VARIABLE STAT(e|/var/lib/asterisk/sounds/your.ulaw)

There is no need to set the variable first, and retrieve the result.  Just
get the value that you want. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-14-08 20:54  Corydon76      Note Added: 0076951                          
======================================================================




More information about the asterisk-bugs mailing list