[asterisk-users] unnumbered priorities

Tony Mountifield tony at softins.clara.co.uk
Mon Sep 3 03:37:57 CDT 2007


In article <1188803091.4613.13.camel at anselm.kessenich.augustinnetz.de>,
Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> wrote:
> Am Sonntag, den 02.09.2007, 23:25 -0700 schrieb fateme fatah:
> > Hi:
> > When should we use "unnumbered priorities"(n) in extensions.What is
> > the different between these 2 forms of extensions.conf? and ,Are both
> > true?
> > extensions.conf:
> > form1:
> > [Conferencerooms]
> > exten => 333,1,Answer
> > exten => 333,n,meetme(8000|cim)
> > exten => 333,n,playback(vm-goodbye)
> > exten => 333,n,hangup
> > 
> > form2:
> > [Conferencerooms]
> > exten => 333,1,Answer
> > exten => 333,2,meetme(8000|cim)
> > exten => 333,3,playback(vm-goodbye)
> > exten => 333,4,hangup
> 
> On one of my Asterisk 1.2 setups, I have a dialplan that mixes both - so
> they can coexist in the same extensions.conf.
> 
> The difference is that with the "n" type extensions, you can easily
> insert a line or three without renumbering lots of lines - and searching
> for all those GOTOs that also need a new line number. Renumbering
> error-prone.

In fact the 'n' is just a shortcut for "next number" and is translated into
an actual number when the extensions.conf file is read.

If you do "show dialplan", you will see all the extensions have numbers,
even if you had used 'n'.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list