Suppose I have a subroutine (called by Gosub) S that's called from a macro M and there's a goto to an illegal extension in S. That does go to 'i' in S but seems to pop the macro stack so that when there's a later fallthrough in M, the calls hangs up rather than returning to the caller of M. Is this a bug or a feature?
Tilghman Lesher
2010-May-30 17:11 UTC
[asterisk-users] Wierd behavior of illegal extension
On Sunday 30 May 2010 10:19:02 Richard Kenner wrote:> Suppose I have a subroutine (called by Gosub) S that's called from a macro > M and there's a goto to an illegal extension in S. That does go to 'i' in > S but seems to pop the macro stack so that when there's a later fallthrough > in M, the calls hangs up rather than returning to the caller of M. > > Is this a bug or a feature?You really shouldn't be calling a Gosub routine from Macro. We've already had to deal with some really odd interactions between the two. If you're going to make the jump to Gosub, go completely over and only use Gosub. Don't use Macro in conjunction with Gosub. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org