Geoff Lane
2009-Feb-05 20:20 UTC
[asterisk-users] Newbie query: how to write priority n+101
Hi All, Asterisk 1.4.12 on CentOS 5 Sorry for a question that I'm guessing is obvious to most of you. I'm trying to revamp my dialplan. When I first created it, I had something like: exten => s,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}) exten => s,2,Dial(${rgMain},${RINGTIME},t) exten => s,3,VoiceMail(main at default) exten => s,103,VoiceMail(main at default) Now I want to play around to add things like the privacy manager and blacklist handling, which all goes before priority 2 in the above. The Dial() application jumps to the priority 101 more than its own priority (i.e. n+101) if it times out. But how can I specify this if I'm numbering priorities as 1,n,n,n,n? (BTW, the reason for priority 3 in the above extension is that in an earlier version of Asterisk, Dial() sometimes jumped to the next priority rather than one 101 more). TIA, -- Geoff
Mark Michelson
2009-Feb-05 20:49 UTC
[asterisk-users] Newbie query: how to write priority n+101
Geoff Lane wrote:> Hi All, > > Asterisk 1.4.12 on CentOS 5 > > Sorry for a question that I'm guessing is obvious to most of you. > > I'm trying to revamp my dialplan. When I first created it, I had > something like: > > exten => s,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}) > exten => s,2,Dial(${rgMain},${RINGTIME},t) > exten => s,3,VoiceMail(main at default) > exten => s,103,VoiceMail(main at default) > > Now I want to play around to add things like the privacy manager and > blacklist handling, which all goes before priority 2 in the above. The > Dial() application jumps to the priority 101 more than its own > priority (i.e. n+101) if it times out. But how can I specify this if > I'm numbering priorities as 1,n,n,n,n? > > (BTW, the reason for priority 3 in the above extension is that in an > earlier version of Asterisk, Dial() sometimes jumped to the next > priority rather than one 101 more). > > TIA, >Actually, jumping to priority n + 101 is a thing of the past, and this will only occur now if you pass the 'j' option to Dial. Dial will just go to the next priority on a timeout now, and the DIALSTATUS channel variable will be set to "NOANSWER" I suspect that if you enable verbose console logging, you'll actually see that priority 3 is what is being executed and not priority 103. Check out the UPGRADE.txt file in Asterisk 1.4. In the "Applications" section, you'll see: * In previous Asterisk releases, many applications would jump to priority n+101 to indicate some kind of status or error condition. This functionality was marked deprecated in Asterisk 1.2. An option to disable it was provided with the default value set to 'on'. The default value for the global priority jumping option is now 'off'. Mark Michelson
Philipp Kempgen
2009-Feb-05 21:01 UTC
[asterisk-users] Newbie query: how to write priority n+101
Mark Michelson schrieb:> Actually, jumping to priority n + 101 is a thing of the pastAnd in addition extensions.conf is a thing of the past. ;-) extensions.ael is cleaner and easier to maintain for most purposes. Philipp Kempgen -- AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --
Doug Lytle
2009-Feb-05 21:33 UTC
[asterisk-users] Newbie query: how to write priority n+101
Philipp Kempgen wrote:> And in addition extensions.conf is a thing of the past. ;-) > extensions.ael is cleaner and easier to maintain for most > purposes. >*gack* Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Is that true? I was under the impression that .ael was still in "use at your own risk" mode. AEL certainly looks like a real programming language, but I wasn`t willing to test it out with my dialplan last time I made serious changes. Mike> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > bounces at lists.digium.com] On Behalf Of Philipp Kempgen > Sent: Thursday, February 05, 2009 16:01 > To: Asterisk Users > Subject: Re: [asterisk-users] Newbie query: how to write priority n+101 > > Mark Michelson schrieb: > > Actually, jumping to priority n + 101 is a thing of the past > > And in addition extensions.conf is a thing of the past. ;-) > extensions.ael is cleaner and easier to maintain for most > purposes. > > > Philipp Kempgen > > -- > AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de > Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de > AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de > Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 > -- > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Matthew Nicholson
2009-Feb-06 21:24 UTC
[asterisk-users] Newbie query: how to write priority n+101
On Thu, 2009-02-05 at 22:01 +0100, Philipp Kempgen wrote:> Mark Michelson schrieb: > > Actually, jumping to priority n + 101 is a thing of the past > > And in addition extensions.conf is a thing of the past. ;-) > extensions.ael is cleaner and easier to maintain for most > purposes. >In the same vein, you may want to look at extensions.lua too, if you are using 1.6. Really extensions.conf is still a perfectly viable way to build your dialplan and will probably remain so for some time. -- Matthew Nicholson Digium, Inc. | Software Developer
Hans Witvliet
2009-Feb-06 22:23 UTC
[asterisk-users] Newbie query: how to write priority n+101
On Thu, 2009-02-05 at 22:01 +0100, Philipp Kempgen wrote:> Mark Michelson schrieb: > > Actually, jumping to priority n + 101 is a thing of the past > > And in addition extensions.conf is a thing of the past. ;-)<snip> How about ...... dialplan.conf .... .;-)