[asterisk-users] Macros, GoSub & StackPop

hugolivude hugolivude at gmail.com
Tue Feb 23 21:35:39 CST 2010


Hi -

I have a Macro that contains a GoTo.  The documentation indicates:

If you GoTo out of the Macro context, the Macro will terminate and control
will return at the location refered to by the Goto.

I thought I might convert the Macro to a GoSub routine, but the
documentation doesn't mention what happens if you GoTo out.  It does however
mention that the return address gets pushed onto the stack, so I'm a little
concerned about the state of the stack if I simply GoTo out.  Should I call
StackPop first?

Thanks!
Hugh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100223/9dc3d5f2/attachment.htm 


More information about the asterisk-users mailing list