[asterisk-bugs] [Asterisk 0012845]: unable to use switch in macro include file

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 12 15:29:42 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12845 
====================================================================== 
Reported By:                dorian
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12845
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.20.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-12-2008 14:36 CDT
Last Modified:              06-12-2008 15:29 CDT
====================================================================== 
Summary:                    unable to use switch in macro include file
Description: 
if switch is used in a macro, instead of passing the correct extension
number asterisk passes 's' (and then 't' and then 'h').

if the same switch statement is used directly in extensions.conf, the
number is passed perfectly fine.
====================================================================== 

---------------------------------------------------------------------- 
 dorian - 06-12-08 15:29  
---------------------------------------------------------------------- 
we just have a macro that's used many places and recently had reason to
replace all the contents of said macro with switch.

did not realize about the tendency of macros to use s. if that's not
likely to change anytime soon, we'll probably just use Dial or figure
another way to use switch. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-12-08 15:29  dorian         Note Added: 0088646                          
======================================================================




More information about the asterisk-bugs mailing list