Mark G Thomas
2011-May-05 21:14 UTC
[asterisk-users] ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer
Hi,
I think this must be a bug introduced with 1.6.2.17.something.
When I upgrade from asterisk-1.6.2.16.1 to asterisk-1.6.2.17.2 or 1.6.2.18,
my AEL Dial() commands with the "U" options fail with the following
error:
[May 3 12:05:54] ERROR[6300] app_stack.c: Attempt to reach a non-existent
destination for gosub: (Context:screen, Extension:s, Priority:1)
Here are the segments of the ael:
---------------------------------------
...
Dial(${MARKCELL},30,tgU(screen));
...
macro screen() {
Wait(0.5);
Read(ACCEPT,followme/options,1,,1,20);
if( "${ACCEPT}" = "1" ) {
Background(connecting);
} else {
Set(GOSUB_RESULT=CONTINUE);
};
return;
};
And, here is the dialplan created from my above ael. The change is obvious,
but I'm not sure if there is some way I can fix this in my AEL, or if this
is just a bug that needs to be fixed.
asterisk-1.6.2.17.2 and asterisk-1.6.2.18:
-----------------------------------------------
[ Context 'screen' created by 'pbx_ael' ]
'~~s~~' => 1. Wait(0.5)
[pbx_ael]
2. Read(ACCEPT,followme/options,1,,1,20) [pbx_ael]
3. GotoIf($[ "${ACCEPT}" = "1" ]?4:6)
[pbx_ael]
4. Background(connecting) [pbx_ael]
5. Goto(7) [pbx_ael]
6. Set(GOSUB_RESULT=CONTINUE) [pbx_ael]
7. NoOp(Finish if_screen_139) [pbx_ael]
8. Return() [pbx_ael]
asterisk-1.6.2.16.1:
-----------------------------------------------
[ Context 'screen' created by 'pbx_ael' ]
's' => 1. Wait(0.5)
[pbx_ael]
2. Read(ACCEPT,followme/options,1,,1,20) [pbx_ael]
3. GotoIf($[ "${ACCEPT}" = "1" ]?4:6)
[pbx_ael]
4. Background(connecting) [pbx_ael]
5. Goto(7) [pbx_ael]
6. Set(GOSUB_RESULT=CONTINUE) [pbx_ael]
7. NoOp(Finish if_screen_28) [pbx_ael]
8. Return() [pbx_ael]
--
Mark G. Thomas (Mark at Misty.com)
Paul Belanger
2011-May-05 21:30 UTC
[asterisk-users] ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer
On 11-05-05 05:14 PM, Mark G Thomas wrote:> Hi, > > I think this must be a bug introduced with 1.6.2.17.something. > > When I upgrade from asterisk-1.6.2.16.1 to asterisk-1.6.2.17.2 or 1.6.2.18, > my AEL Dial() commands with the "U" options fail with the following error: > > [May 3 12:05:54] ERROR[6300] app_stack.c: Attempt to reach a non-existent > destination for gosub: (Context:screen, Extension:s, Priority:1) >You might want to have a look at: https://issues.asterisk.org/view.php?id=18910 -- Paul Belanger Digium, Inc. | Software Developer twitter: pabelanger | IRC: pabelanger (Freenode) Check us out at: http://digium.com & http://asterisk.org