[asterisk-bugs] [Asterisk 0014956]: Dial() within AEL Macros does not allow use of 'h' extension

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Apr 25 17:08:40 CDT 2009


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=14956 
====================================================================== 
Reported By:                leobrown
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   14956
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 190186 
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-23 04:42 CDT
Last Modified:              2009-04-25 17:08 CDT
====================================================================== 
Summary:                    Dial() within AEL Macros does not allow use of 'h'
extension
Description: 
Due to the way Macros are handled in AEL, it is not possible to capture
hangup within the Macro itself. The caller hangs up first, the 'g' option
to Dial allows commands to continue being executed in the current context,
but this only allows capture of, say, 50% of calls.

However, due to the syntax of AEL macros, it is not possible to specify
'h' extension as all extensions are executed under the 's' label.

Shown below is an abbreviated console output showing that despite 'g' flag
in Dial() options, the channel is dropped, rather than 'auto fallthrough'
which would indicate there was the option of processing more priorities,
but they did not exist.

I'm not able to contribute AEL code as it's fairly complex, but this seems
like an unnecessary restriction. A possible solution would be new syntax
for t/i/h within Macro context in the usual brace-enclosed format.
====================================================================== 

---------------------------------------------------------------------- 
 (0103779) murf (manager) - 2009-04-25 17:08
 http://bugs.digium.com/view.php?id=14956#c103779 
---------------------------------------------------------------------- 
Leo-- 

I know what you you are talking about. I had done the development of AEL2
from pretty much start to finish, but didn't really understand what catch
was for (I just made sure it did the same thing as the old AEL). I had a
user point out to me what the catch was good for, and then I finally
understood what was going on!

I guess I should put in some words into the voip-info wiki at least, what
the catch is good for, so the next guy doesn't have the same problem. I'll
do that now.

I'm closing out the issue. I'll throw you a little karma, as this bug is a
valid bug about documentation! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-25 17:08 murf           Note Added: 0103779                          
2009-04-25 17:08 murf           Status                   assigned => closed  
======================================================================




More information about the asterisk-bugs mailing list