[asterisk-bugs] [Asterisk 0012342]: "switch" keyword erases ${EXTEN} variable

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Mar 31 08:18:30 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12342 
====================================================================== 
Reported By:                etn
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12342
Category:                   Utilities/aelparse
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-31-2008 08:18 CDT
Last Modified:              03-31-2008 08:18 CDT
====================================================================== 
Summary:                    "switch" keyword erases ${EXTEN} variable
Description: 
When i try to use switch in my extensions.ael, it seems that "something"
erase content of ${EXTEN} var.

Extract of extensions.ael: 

             AGI(check_operator.agi|${EXTEN});
             switch (${provider}) {
                case sfr:
                        Monitor(gsm,${EXTEN},b(10));
                        Dial(H323/00610010800 at Avaya,,D(${EXTEN}#)S(8)g);
                        StopMonitor();
             	 case bouygues:
                        break;
             	 case orange:
                        break;
              default:
}

check_operator.agi script:

#!/usr/bin/perl
SET VARIABLE provider sfr

Asterisk console LOG:

Asterisk Ready.
    -- Executing [0700000000 at internal:1]
BackGround("H323/ip$10.147.9.64:12664/5558", "fr/enter-phone-number10") in
new stack
    -- <H323/ip$10.147.9.64:12664/5558> Playing 'fr/enter-phone-number10'
(language 'en')
  == CDR updated on H323/ip$10.147.9.64:12664/5558
    -- Executing [0625081954 at internal:1]
AGI("H323/ip$10.147.9.64:12664/5558", "check_operator.agi|0666666666") in
new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/check_operator.agi
    -- AGI Script check_operator.agi completed, returning 0
    -- Executing [0666666666 at internal:2]
Goto("H323/ip$10.147.9.64:12664/5558", "sw-1-sfr|10") in new stack
    -- Goto (internal,sw-1-sfr,10)
    -- Executing [sw-1-sfr at internal:10]
Monitor("H323/ip$10.147.9.64:12664/5558", "gsm|sw-1-sfr|b(10)") in new
stack
    -- Executing [sw-1-sfr at internal:11]
Dial("H323/ip$10.147.9.64:12664/5558",
"H323/00610010800 at Avaya||D(sw-1-sfr#)S(8)g") in new stack
    -- Setting call duration limit to 8 seconds.
    -- Requested transfer capability: 0x10 - 3K1AUDIO
    -- Called 00610010800 at Avaya
    -- H323/Avaya-1 is making progress passing it to
H323/ip$10.147.9.64:12664/5558
    -- H323/Avaya-1 is ringing
    -- H323/Avaya-1 answered H323/ip$10.147.9.64:12664/5558
    -- Sending DTMF 'sw-1-sfr#' to the called party.
[Mar 31 14:37:16] WARNING[17984]: app.c:248 ast_dtmf_stream: Illegal DTMF
character 's' in string. (0-9*#aAbBcCdD allowed)
[Mar 31 14:37:16] WARNING[17984]: app.c:248 ast_dtmf_stream: Illegal DTMF
character '-' in string. (0-9*#aAbBcCdD allowed)
[Mar 31 14:37:17] WARNING[17984]: app.c:248 ast_dtmf_stream: Illegal DTMF
character '-' in string. (0-9*#aAbBcCdD allowed)
[Mar 31 14:37:17] WARNING[17984]: app.c:248 ast_dtmf_stream: Illegal DTMF
character 's' in string. (0-9*#aAbBcCdD allowed)
[Mar 31 14:37:17] WARNING[17984]: chan_h323.c:922 oh323_indicate: OH323:
Don't know how to indicate condition 9 on ip$localhost/26058
[Mar 31 14:37:17] WARNING[17984]: channel.c:2369 ast_indicate_data: Unable
to handle indication 9 for 'H323/Avaya-1'
[Mar 31 14:37:17] WARNING[17984]: app.c:248 ast_dtmf_stream: Illegal DTMF
character 'r' in string. (0-9*#aAbBcCdD allowed)
  == Spawn extension (internal, sw-1-sfr, 11) exited non-zero on
'H323/ip$10.147.9.64:12664/5558'




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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-31-08 08:18  etn            Asterisk Version          => 1.4.18          
03-31-08 08:18  etn            SVN Branch (only for SVN checkou => N/A          
  
======================================================================




More information about the asterisk-bugs mailing list