VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
raanders at acm.org Guest
|
Posted: Fri Apr 18, 2008 1:48 pm Post subject: [asterisk-users] Dialplan extension priorities |
|
|
Second questions.
Well possibly three questions.
Can I create in a context a priority that skips a chunk. The example in
Paul Mahler's book indicates so but I'd like to confirm, without/before
testing, my code.
This is desired so I can add/remove/augment dialplans/contexts that
have a common jump to point.
exten => 701,1, ...
exten => 701,2, ...
exten => 701,n, ...
exten => 701,n, GotoIf( ... , 701,33)
exten => 701,n, ...
exten => 701,33, ...
So I can add and and remove lines both before and after the GotoIf line.
Sorry for the mishmash of terms and concepts but I'm still pretty new to
this.
So second part/question. Is there a "Manual' for * 1.4.x?
And the third par/question. Is the any books out or nearly so that
cover * 1.4. I really hate typing in a bunch of stuff only to find it
doesn't work.
Rod
-- |
|
Back to top |
|
|
tilghman at mail.jeffa... Guest
|
Posted: Fri Apr 18, 2008 2:22 pm Post subject: [asterisk-users] Dialplan extension priorities |
|
|
On Friday 18 April 2008 13:48:04 Roderick A. Anderson wrote:
Quote: | Second questions.
Well possibly three questions.
Can I create in a context a priority that skips a chunk. The example in
Paul Mahler's book indicates so but I'd like to confirm, without/before
testing, my code.
This is desired so I can add/remove/augment dialplans/contexts that
have a common jump to point.
exten => 701,1, ...
exten => 701,2, ...
exten => 701,n, ...
exten => 701,n, GotoIf( ... , 701,33)
exten => 701,n, ...
exten => 701,33, ...
So I can add and and remove lines both before and after the GotoIf line.
|
Yes. The priority n simply means "take the last priority that was used in the
dialplan and add 1 to it".
Quote: | So second part/question. Is there a "Manual' for * 1.4.x?
And the third par/question. Is the any books out or nearly so that
cover * 1.4. I really hate typing in a bunch of stuff only to find it
doesn't work.
|
Try O'Reilly for "Asterisk: The Future of Telephony", second edition.
Full disclosure: I assisted in the technical review of the book, and a few
sections of the appendices are almost completely my contribution. Not to
mention some of the modules.
--
Tilghman |
|
Back to top |
|
|
Guest
|
Posted: Fri Apr 18, 2008 2:42 pm Post subject: [asterisk-users] Dialplan extension priorities |
|
|
Tilghman Lesher wrote:
Quote: | On Friday 18 April 2008 13:48:04 Roderick A. Anderson wrote:
Quote: | Second questions.
Well possibly three questions.
Can I create in a context a priority that skips a chunk. The example in
Paul Mahler's book indicates so but I'd like to confirm, without/before
testing, my code.
This is desired so I can add/remove/augment dialplans/contexts that
have a common jump to point.
exten => 701,1, ...
exten => 701,2, ...
exten => 701,n, ...
exten => 701,n, GotoIf( ... , 701,33)
exten => 701,n, ...
exten => 701,33, ...
So I can add and and remove lines both before and after the GotoIf line.
|
Yes. The priority n simply means "take the last priority that was used in the
dialplan and add 1 to it".
Quote: | So second part/question. Is there a "Manual' for * 1.4.x?
And the third par/question. Is the any books out or nearly so that
cover * 1.4. I really hate typing in a bunch of stuff only to find it
doesn't work.
|
Try O'Reilly for "Asterisk: The Future of Telephony", second edition.
Full disclosure: I assisted in the technical review of the book, and a few
sections of the appendices are almost completely my contribution. Not to
mention some of the modules.
| In the example, I believe the OP was using n algebraically to show the
areas between 2 and 33 without realizing that n was in fact a valid
priority number.
Roderick, yes, you can use Goto or GotoIf to skip entire sections of
dialplan logic. You either need to number your priorities fully or use
labels with your n's if you choose to use n priorities.
exten => s,1,
exten => s,2,Goto(s,4)
exten => s,3,
exten => s,4,
OR
exten => s,1
exten => s,n,Goto(s,superjump)
exten => s,n
exten => s,n(superjump),
I believe that's how it works, but it's from memory, so might not be
quite right.
Moj
--
*Mojo Wentworth*
HORAN & COMPANY, LLC
403 Lincoln Street, Suite 210
Sitka, AK 99835
(907) 747-6666
(907) 747-7417 - Fax
mojo at horanappraisals.com |
|
Back to top |
|
|
raanders at acm.org Guest
|
Posted: Fri Apr 18, 2008 3:29 pm Post subject: [asterisk-users] Dialplan extension priorities |
|
|
Tilghman Lesher wrote:
Quote: | On Friday 18 April 2008 13:48:04 Roderick A. Anderson wrote:
Quote: | Second questions.
Well possibly three questions.
Can I create in a context a priority that skips a chunk. The example in
Paul Mahler's book indicates so but I'd like to confirm, without/before
testing, my code.
This is desired so I can add/remove/augment dialplans/contexts that
have a common jump to point.
exten => 701,1, ...
exten => 701,2, ...
exten => 701,n, ...
exten => 701,n, GotoIf( ... , 701,33)
exten => 701,n, ...
exten => 701,33, ...
So I can add and and remove lines both before and after the GotoIf line.
|
Yes. The priority n simply means "take the last priority that was used in the
dialplan and add 1 to it".
|
Just to clarify (and tie into Moj's response) if my last 'n' works out
to a priority of 20 I _do not_ need priorities 21 through 32.
Quote: | Quote: | So second part/question. Is there a "Manual' for * 1.4.x?
And the third par/question. Is the any books out or nearly so that
cover * 1.4. I really hate typing in a bunch of stuff only to find it
doesn't work.
|
Try O'Reilly for "Asterisk: The Future of Telephony", second edition.
|
Excellent. I just down loaded the free version and see it covers * 1.4.
I'll probably order the dead tree version next week.
Quote: | Full disclosure: I assisted in the technical review of the book, and a few
sections of the appendices are almost completely my contribution. Not to
mention some of the modules.
|
I see you keep popping up on the list!
Thanks to you and Moj for the quick reply.
Rod
-- |
|
Back to top |
|
|
tony at softins.clara.... Guest
|
Posted: Fri Apr 18, 2008 4:52 pm Post subject: [asterisk-users] Dialplan extension priorities |
|
|
In article <480904C7.5080105 at acm.org>,
Roderick A. Anderson <raanders at acm.org> wrote:
Quote: |
Just to clarify (and tie into Moj's response) if my last 'n' works out
to a priority of 20 I _do not_ need priorities 21 through 32.
|
That's true. Just remember the dialplan won't fall through a gap.
The only way to reach a priority after a gap is to Goto it in some way.
In your example above, if you return from priority 20, it will look only
for 21, and if not found, it won't keep looking for higher priorities.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org |
|
Back to top |
|
|
raanders at acm.org Guest
|
Posted: Fri Apr 18, 2008 6:10 pm Post subject: [asterisk-users] Dialplan extension priorities |
|
|
Tony Mountifield wrote:
Quote: | In article <480904C7.5080105 at acm.org>,
Roderick A. Anderson <raanders at acm.org> wrote:
Quote: | Just to clarify (and tie into Moj's response) if my last 'n' works out
to a priority of 20 I _do not_ need priorities 21 through 32.
|
That's true. Just remember the dialplan won't fall through a gap.
The only way to reach a priority after a gap is to Goto it in some way.
|
Thanks! I guess that is an unexpected two edged sword. Note-to-self:
Make sure the last 'n' is where I want to be if plan falls through.
Quote: | In your example above, if you return from priority 20, it will look only
for 21, and if not found, it won't keep looking for higher priorities.
Cheers
Tony
|
Rod
-- |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|