Barry L. Kline
2009-Feb-24 19:44 UTC
[asterisk-users] Gosub behavior change <=1.6.0.5 to 1.6.0.6
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here's one that may be of interest to any upgraders. If you rely on the behavior of gosub you may want to make note of this change. I have an incoming call context: exten => _XXXX,n,GoSub(incoming,${EXTEN},1(${EXTEN})); that is supposed to gosub into the incoming extension at priority 1. Versions before 1.6.0.6 would drop into the incoming,i,1 priority if the requested extension wasn't present in the incoming context. When I upgraded to 1.6.0.6 this behavior changed and I would simply get an error on the console that a matching extension was not found, and the dialplan would simply stop. It was easy enough to add: [incoming] exten => _XXXX,1,Goto(i,1) to restore the previous behavior (I'm looking at four-digits from a PRI) which I should probably have done anyway. I don't know if this is a bug or WAD but just wanted to mention it. Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFJpE4ZCFu3bIiwtTARAlELAKCKFKpIsUGf44yZBcx/kpYnzSpelACgoOqB iYIg4keZ5EIL35rrLwCRdTU=fvE0 -----END PGP SIGNATURE-----
Klaus Darilion
2009-Feb-24 22:07 UTC
[asterisk-users] Gosub behavior change <=1.6.0.5 to 1.6.0.6
Barry L. Kline wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Here's one that may be of interest to any upgraders. If you rely on the > behavior of gosub you may want to make note of this change. > > I have an incoming call context: > > exten => _XXXX,n,GoSub(incoming,${EXTEN},1(${EXTEN})); > > that is supposed to gosub into the incoming extension at priority 1. > Versions before 1.6.0.6 would drop into the incoming,i,1 priority if the > requested extension wasn't present in the incoming context. > > When I upgraded to 1.6.0.6 this behavior changed and I would simply get > an error on the console that a matching extension was not found, and the > dialplan would simply stop. It was easy enough to add: > > [incoming] > exten => _XXXX,1,Goto(i,1) > > to restore the previous behavior (I'm looking at four-digits from a PRI) > which I should probably have done anyway. > > I don't know if this is a bug or WAD but just wanted to mention it.That's probably related to a bug I reported. The i extension did match when the Gosub was executed normally, but now when the Gosub was executed from within a macro. I reported that they should fix the macro case - obviously they implemented the "bug" also in the normal case. Nevertheless you can workaround it by using e.g. _[0-9]. instead of i Really strange that Goto and Gosub behave different. regards klaus
Tilghman Lesher
2009-Feb-24 22:53 UTC
[asterisk-users] Gosub behavior change <=1.6.0.5 to 1.6.0.6
On Tuesday 24 February 2009 13:44:25 Barry L. Kline wrote:> Here's one that may be of interest to any upgraders. If you rely on the > behavior of gosub you may want to make note of this change. > > I have an incoming call context: > > exten => _XXXX,n,GoSub(incoming,${EXTEN},1(${EXTEN})); > > that is supposed to gosub into the incoming extension at priority 1. > Versions before 1.6.0.6 would drop into the incoming,i,1 priority if the > requested extension wasn't present in the incoming context. > > When I upgraded to 1.6.0.6 this behavior changed and I would simply get > an error on the console that a matching extension was not found, and the > dialplan would simply stop. It was easy enough to add: > > [incoming] > exten => _XXXX,1,Goto(i,1) > > to restore the previous behavior (I'm looking at four-digits from a PRI) > which I should probably have done anyway. > > I don't know if this is a bug or WAD but just wanted to mention it.It was a bug. Gosub/Goto should NEVER go to the "i" extension, unless that target is explicitly given. The use of the "i" extension for invalid extensions is limited to WaitExten/Background. -- Tilghman
Klaus Darilion
2009-Feb-26 10:00 UTC
[asterisk-users] Gosub behavior change <=1.6.0.5 to 1.6.0.6
amit mehta wrote:> Hello Users, > > Is anyone aware about a solution to call incoming number and dictate the > files by using Dictate feature of Asterisk used for Medical > Transcription industry.I guess nobody will read your email as you: 1. hijacked a thread (http://www.internet-description.com/t/thread-hijacking.html) 2. did not even changed the subject So, most user do not even read your email as they think the subject is about Gosub, not dictate. So I would suggest to try again, writing a "new email" instead of clicking on "reply". regards klaus