[asterisk-bugs] [Asterisk 0012302]: ${EXTEN} variable is corrupted within switch()

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Mar 26 07:31:02 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12302 
====================================================================== 
Reported By:                pj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12302
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 105677 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-26-2008 06:16 CDT
Last Modified:              03-26-2008 07:31 CDT
====================================================================== 
Summary:                    ${EXTEN} variable is corrupted within switch()
Description: 
before passing switch(), ${EXTEN} variable is correctly set to '9551', 
within switch() is prepended with eg. 'sw-59-'

[Mar 26 11:56:22] NoOp("Skinny/324 at PJ-3", "exten before switch 9551") 
[Mar 26 11:56:22] NoOp("Skinny/324 at PJ-3", "first case sw-59-9551") 
[Mar 26 11:56:43] NoOp("Skinny/324 at PJ-4", "default case sw-59-9553") 

 


====================================================================== 

---------------------------------------------------------------------- 
 pj - 03-26-08 07:31  
---------------------------------------------------------------------- 
after completing switch(), variable ${EXTEN} contains not dialed extension,
but matching pattern in dialplan!

[Mar 26 13:31:45] NoOp("Skinny/515 at KIDLI-22", "exten before switch 9551")

[Mar 26 13:31:45] NoOp("Skinny/515 at KIDLI-22", "first case sw-321-9551") 
[Mar 26 13:31:45] NoOp("Skinny/515 at KIDLI-22", "exten after switch _955X")



  _955X => {
      NoOP(exten before switch ${EXTEN});
      switch(${EXTEN}) {
        case 9551:
          NoOP(first case ${EXTEN}); break;
        default:
          NoOP(default case ${EXTEN}); break;
      }
      NoOp(exten after switch ${EXTEN});
      Congestion;
  } 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-26-08 07:31  pj             Note Added: 0084559                          
======================================================================




More information about the asterisk-bugs mailing list