[asterisk-bugs] [JIRA] (ASTERISK-18362) AEL: jump doesn't work as 'jump +123456789; '

GR Abbel (JIRA) noreply at issues.asterisk.org
Tue Oct 1 17:45:03 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-18362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210720#comment-210720 ] 

GR Abbel edited comment on ASTERISK-18362 at 10/1/13 5:43 PM:
--------------------------------------------------------------

Hi, I noticed this too, as it is still not working in Asterisk 11, also for a context that defines speed dials and jumps with the plus sign + to another context. This really is a serious bug, because if I hadn't found this thread I would have thought I did something wrong. 

Note that the problem here is just the AEL check that fails during parsing. If you add an empty dummy {{extension _. => NoOp();}} the AEL check passes, and matching on + is just functional (as the matching itself is just done by regular Asterisk, which correctly sees the plus signs).

An easy workaround I found is to just add brackets to the plus sign:
{{_[+]X.  => &enumcall($\{EXTEN\});}}

Then the AEL checks pass and it's valid and intended syntax too.

But still, can someone step up and correct this properly?
                
      was (Author: Grabbel):
    Hi, I noticed this too, as it is still not working in Asterisk 11, also for a context that defines speed dials and jumps with the plus sign (+) to another context. This really is a serious bug, because if I hadn't found this thread I would have thought I did something wrong. Note that you can add an empty extension _. to the context as a workaround for the AEL checks, after which matching on + just works (as the matching itself is just done by regular Asterisk).

Can someone step up and correct this properly?
                  
> AEL: jump doesn't work as 'jump +123456789;'
> --------------------------------------------
>
>                 Key: ASTERISK-18362
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18362
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Utilities/aelparse
>    Affects Versions: 1.8.5.0
>         Environment: Linux version 2.6.26-2-486 (Debian 2.6.26-26lenny3) (dannf at debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 Sat Jun 11 14:47:34 UTC 2011
>            Reporter: Dennis
>            Severity: Minor
>
> I want to add a quick dialing number to my dial-plan by using the jump command. Therefore I added "47 => jump +49123456789;" to my ael code. The whole context is the following:
> {code}
> context outgoing {
>     _00Z. => jump +${EXTEN:2};
>     _0Z.  => jump +49${EXTEN:1};
>     _Z.   => jump +49421${EXTEN};
>     _+X.  => &enumcall(${EXTEN});
>     47 => jump +49123456789;
> }
> {code}
> The first three jump commands work fine. The last one fails in ael parsing with the following error:
> {quote}
> [Aug 14 22:07:28] ERROR[10292]: ael/pval.c:1265 check_goto: Error: file /etc/asterisk/extensions.ael, line 70-70: goto:  no label '+49123456789,1' exists in the current context, or any of its inclusions!
> [Aug 14 22:07:28] ERROR[10292]: ael/pval.c:1265 check_goto: Error: file /etc/asterisk/extensions.ael, line 70-70: goto:  no label '+49123456789,1' exists in the current context, or any of its inclusions!
> [Aug 14 22:07:28] ERROR[10292]: pbx_ael.c:151 pbx_load_module: Sorry, but 0 syntax errors and 2 semantic errors were detected. It doesn't make sense to compile.
> {quote}
> By modifying the last line into "jump 0049123456789;", my whole context is working pretty well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list