Posted: Tue May 19, 2009 2:51 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
Greetings!
I'm hoping someone can help me with what should be the most basic of problems. Essentially, I want to have certain calls on an Asterisk 1.2.25 (Yes I know its old, upgrade, etc... its on my roadmap) install go out a couple of analog lines and all other calls go out a PRI. The analog lines are setup in Zaptel group 1 and the PRI channels are in Zaptel group 0. Here is my relevant config:
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup... correct? Is it the way I'm including the other context, the dial patterns, the priorities, etc? I'm not opposed to combining it into a single context, I just started it out with this way. All hints are appreciated. (Pun intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 3:06 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
The first _1866 line should start a new segment of the dialplan. The way
this should work is 1800 and 1866 go out on zap /g1; anything else falls
into zap/g0.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim Nelson
Sent: Tuesday, May 19, 2009 10:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Dialplan Priorities and Sort Order...
Greetings!
I'm hoping someone can help me with what should be the most basic of
problems. Essentially, I want to have certain calls on an Asterisk 1.2.25
(Yes I know its old, upgrade, etc... its on my roadmap) install go out a
couple of analog lines and all other calls go out a PRI. The analog lines
are setup in Zaptel group 1 and the PRI channels are in Zaptel group 0. Here
is my relevant config:
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup... correct?
Is it the way I'm including the other context, the dial patterns, the
priorities, etc? I'm not opposed to combining it into a single context, I
just started it out with this way. All hints are appreciated. (Pun
intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 3:18 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
Can you clarify ? Do you want the calls first go through analogs and
when they're all in use
then through the PRI ? Is that why you're putting the priority 101 in
the PRI context ?
Martin
On Tue, May 19, 2009 at 10:37 AM, Tim Nelson <tnelson@rockbochs.com> wrote:
Quote:
Greetings!
I'm hoping someone can help me with what should be the most basic of problems. Essentially, I want to have certain calls on an Asterisk 1.2.25 (Yes I know its old, upgrade, etc... its on my roadmap) install go out a couple of analog lines and all other calls go out a PRI. The analog lines are setup in Zaptel group 1 and the PRI channels are in Zaptel group 0. Here is my relevant config:
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup... correct? Is it the way I'm including the other context, the dial patterns, the priorities, etc? I'm not opposed to combining it into a single context, I just started it out with this way. All hints are appreciated. (Pun intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
On Tue, May 19, 2009 at 11:00 AM, Danny Nicholas <danny@debsinc.com> wrote:
Quote:
The first _1866 line should start a new segment of the dialplan. The way
this should work is 1800 and 1866 go out on zap /g1; anything else falls
into zap/g0.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim Nelson
Sent: Tuesday, May 19, 2009 10:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Dialplan Priorities and Sort Order...
Greetings!
I'm hoping someone can help me with what should be the most basic of
problems. Essentially, I want to have certain calls on an Asterisk 1.2.25
(Yes I know its old, upgrade, etc... its on my roadmap) install go out a
couple of analog lines and all other calls go out a PRI. The analog lines
are setup in Zaptel group 1 and the PRI channels are in Zaptel group 0. Here
is my relevant config:
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup... correct?
Is it the way I'm including the other context, the dial patterns, the
priorities, etc? I'm not opposed to combining it into a single context, I
just started it out with this way. All hints are appreciated. (Pun
intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 3:37 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
Good rewrite, but what about 1877 calls?
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Martin
Sent: Tuesday, May 19, 2009 11:28 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Dialplan Priorities and Sort Order...
ok, if 18xx are to go through analog lines and the rest through PRI
then it's simply
On Tue, May 19, 2009 at 11:00 AM, Danny Nicholas <danny@debsinc.com> wrote:
Quote:
The first _1866 line should start a new segment of the dialplan. The way
this should work is 1800 and 1866 go out on zap /g1; anything else falls
into zap/g0.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim Nelson
Sent: Tuesday, May 19, 2009 10:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Dialplan Priorities and Sort Order...
Greetings!
I'm hoping someone can help me with what should be the most basic of
problems. Essentially, I want to have certain calls on an Asterisk 1.2.25
(Yes I know its old, upgrade, etc... its on my roadmap) install go out a
couple of analog lines and all other calls go out a PRI. The analog lines
are setup in Zaptel group 1 and the PRI channels are in Zaptel group 0.
Here
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup...
correct?
Quote:
Is it the way I'm including the other context, the dial patterns, the
priorities, etc? I'm not opposed to combining it into a single context, I
just started it out with this way. All hints are appreciated. (Pun
intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 3:38 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
Yes I know this... that is exactly what I am trying to accomplish. :-)
--Tim
----- "Danny Nicholas" <danny@debsinc.com> wrote:
Quote:
The first _1866 line should start a new segment of the dialplan. The
way
this should work is 1800 and 1866 go out on zap /g1; anything else
falls
into zap/g0.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim
Nelson
Sent: Tuesday, May 19, 2009 10:38 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Dialplan Priorities and Sort Order...
Greetings!
I'm hoping someone can help me with what should be the most basic of
problems. Essentially, I want to have certain calls on an Asterisk
1.2.25
(Yes I know its old, upgrade, etc... its on my roadmap) install go out
a
couple of analog lines and all other calls go out a PRI. The analog
lines
are setup in Zaptel group 1 and the PRI channels are in Zaptel group
0. Here
is my relevant config:
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup...
correct?
Is it the way I'm including the other context, the dial patterns, the
priorities, etc? I'm not opposed to combining it into a single
context, I
just started it out with this way. All hints are appreciated. (Pun
intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Can you clarify ? Do you want the calls first go through analogs and
when they're all in use
then through the PRI ? Is that why you're putting the priority 101 in
the PRI context ?
Martin
On Tue, May 19, 2009 at 10:37 AM, Tim Nelson <tnelson@rockbochs.com>
wrote:
> Greetings!
>
> I'm hoping someone can help me with what should be the most basic of
problems. Essentially, I want to have certain calls on an Asterisk
1.2.25 (Yes I know its old, upgrade, etc... its on my roadmap) install
go out a couple of analog lines and all other calls go out a PRI. The
analog lines are setup in Zaptel group 1 and the PRI channels are in
Zaptel group 0. Here is my relevant config:
>
> ; Outbound via POTS
> [general-outbound]
> exten => _1800NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
> exten => _1800NXXXXXX,n,Answer
> exten => _1800NXXXXXX,n,Busy
> exten => _1800NXXXXXX,n,Hangup
> exten => _1866NXXXXXX,n,Dial(ZAP/g1/${EXTEN})
> exten => _1866NXXXXXX,n,Answer
> exten => _1866NXXXXXX,n,Busy
> exten => _1866NXXXXXX,n,Hangup
> include => pri_outbound
>
> ; Outbound via PRI
> [pri_outbound]
> exten => _X.,101,Dial(ZAP/g0/${EXTEN})
> exten => _X.,102,Answer
> exten => _X.,103,Busy
> exten => _X.,104,Hangup
>
> I certainly cannot be the only one who wants this sort of setup...
correct? Is it the way I'm including the other context, the dial
patterns, the priorities, etc? I'm not opposed to combining it into a
single context, I just started it out with this way. All hints are
appreciated. (Pun intended.. :-) )
>
> --Tim
>
> _______________________________________________
> -- 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
>
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 3:44 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
Not all 18xx are to go out the analog lines on g1. Only, 1866 and 1800.
The second part makes sense. Now do the two groups below continue to go into their own contexts and one included by the other or should they both go into the same context?
On Tue, May 19, 2009 at 11:00 AM, Danny Nicholas <danny@debsinc.com>
wrote:
> The first _1866 line should start a new segment of the dialplan.
 The way
> this should work is 1800 and 1866 go out on zap /g1; anything else
falls
> into zap/g0.
>
> -----Original Message-----
> From: asterisk-users-bounces@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim
Nelson
> Sent: Tuesday, May 19, 2009 10:38 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] Dialplan Priorities and Sort Order...
>
> Greetings!
>
> I'm hoping someone can help me with what should be the most basic
of
> problems. Essentially, I want to have certain calls on an Asterisk
1.2.25
> (Yes I know its old, upgrade, etc... its on my roadmap) install go
out a
> couple of analog lines and all other calls go out a PRI. The analog
lines
> are setup in Zaptel group 1 and the PRI channels are in Zaptel group
0. Here
> is my relevant config:
>
> ; Outbound via POTS
> [general-outbound]
> exten => _1800NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
> exten => _1800NXXXXXX,n,Answer
> exten => _1800NXXXXXX,n,Busy
> exten => _1800NXXXXXX,n,Hangup
> exten => _1866NXXXXXX,n,Dial(ZAP/g1/${EXTEN})
> exten => _1866NXXXXXX,n,Answer
> exten => _1866NXXXXXX,n,Busy
> exten => _1866NXXXXXX,n,Hangup
> include => pri_outbound
>
> ; Outbound via PRI
> [pri_outbound]
> exten => _X.,101,Dial(ZAP/g0/${EXTEN})
> exten => _X.,102,Answer
> exten => _X.,103,Busy
> exten => _X.,104,Hangup
>
> I certainly cannot be the only one who wants this sort of setup...
correct?
> Is it the way I'm including the other context, the dial patterns,
the
> priorities, etc? I'm not opposed to combining it into a single
context, I
> just started it out with this way. All hints are appreciated. (Pun
> intended.. :-) )
>
> --Tim
>
> _______________________________________________
> -- 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
>
>
> _______________________________________________
> -- 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
>
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 4:17 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
On Tue, 19 May 2009, Tim Nelson wrote:
Quote:
Not all 18xx are to go out the analog lines on g1. Only, 1866 and 1800.
The second part makes sense. Now do the two groups below continue to go
into their own contexts and one included by the other or should they
both go into the same context?
You would not need multiple contexts unless you want to exclude some
phones from using one of the sets of lines.
Cheers,
j
Quote:
--Tim
----- "Martin" <asterisklist@callthem.info> wrote:
> ok, if 18xx are to go through analog lines and the rest through PRI
> then it's simply
>
> exten => _18XXNXXXXXX,1,Dial(zap/g1/${EXTEN})
> exten => _18XXNXXXXXX,n,Hangup
>
> exten => _1[2-79]XXNXXXXXX,1,Dial(zap/g0/${EXTEN})
> exten => _1[2-79]XXNXXXXXX,n,Hangup()
>
> Martin
>
> On Tue, May 19, 2009 at 11:00 AM, Danny Nicholas <danny@debsinc.com>
> wrote:
> > The first _1866 line should start a new segment of the dialplan.
> Â The way
> > this should work is 1800 and 1866 go out on zap /g1; anything else
> falls
> > into zap/g0.
> >
> > -----Original Message-----
> > From: asterisk-users-bounces@lists.digium.com
> > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim
> Nelson
> > Sent: Tuesday, May 19, 2009 10:38 AM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: [asterisk-users] Dialplan Priorities and Sort Order...
> >
> > Greetings!
> >
> > I'm hoping someone can help me with what should be the most basic
> of
> > problems. Essentially, I want to have certain calls on an Asterisk
> 1.2.25
> > (Yes I know its old, upgrade, etc... its on my roadmap) install go
> out a
> > couple of analog lines and all other calls go out a PRI. The analog
> lines
> > are setup in Zaptel group 1 and the PRI channels are in Zaptel group
> 0. Here
> > is my relevant config:
> >
> > ; Outbound via POTS
> > [general-outbound]
> > exten => _1800NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
> > exten => _1800NXXXXXX,n,Answer
> > exten => _1800NXXXXXX,n,Busy
> > exten => _1800NXXXXXX,n,Hangup
> > exten => _1866NXXXXXX,n,Dial(ZAP/g1/${EXTEN})
> > exten => _1866NXXXXXX,n,Answer
> > exten => _1866NXXXXXX,n,Busy
> > exten => _1866NXXXXXX,n,Hangup
> > include => pri_outbound
> >
> > ; Outbound via PRI
> > [pri_outbound]
> > exten => _X.,101,Dial(ZAP/g0/${EXTEN})
> > exten => _X.,102,Answer
> > exten => _X.,103,Busy
> > exten => _X.,104,Hangup
> >
> > I certainly cannot be the only one who wants this sort of setup...
> correct?
> > Is it the way I'm including the other context, the dial patterns,
> the
> > priorities, etc? I'm not opposed to combining it into a single
> context, I
> > just started it out with this way. All hints are appreciated. (Pun
> > intended.. :-) )
> >
> > --Tim
> >
> > _______________________________________________
> > -- 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
> >
> >
> > _______________________________________________
> > -- 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
> >
>
> _______________________________________________
> -- 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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
; Outbound via PRI
[pri_outbound]
exten => _X.,1,Dial(ZAP/g0/${EXTEN})
exten => _X.,n,Busy
exten => _X.,n,Hangup
exten => h,1,Hangup
Tim Nelson wrote:
Quote:
Greetings!
I'm hoping someone can help me with what should be the most basic of problems. Essentially, I want to have certain calls on an Asterisk 1.2.25 (Yes I know its old, upgrade, etc... its on my roadmap) install go out a couple of analog lines and all other calls go out a PRI. The analog lines are setup in Zaptel group 1 and the PRI channels are in Zaptel group 0. Here is my relevant config:
; Outbound via PRI
[pri_outbound]
exten => _X.,101,Dial(ZAP/g0/${EXTEN})
exten => _X.,102,Answer
exten => _X.,103,Busy
exten => _X.,104,Hangup
I certainly cannot be the only one who wants this sort of setup... correct? Is it the way I'm including the other context, the dial patterns, the priorities, etc? I'm not opposed to combining it into a single context, I just started it out with this way. All hints are appreciated. (Pun intended.. :-) )
--Tim
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue May 19, 2009 11:06 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
On Tue, May 19, 2009 at 02:05:47PM -0400, M Hulber wrote:
Quote:
What you have here should work just fine except:
exten => _1866NXXXXXX,1,Dial(ZAP/g1/${EXTEN}) -- note the change from n to 1.
I also don't understand why you have an "Answer" after your Dial statements.
I would do this:
Hi
I am new to asterisk and still trying to get head around dialplan. can
I clarify what is happening in this plan
in context general-outbound, you are including pri_outbound (all its
rules are placed at the bottom because its an include this its rules are
sorted bellow the rules in the context, similarly the order of include
is important)
Posted: Wed May 20, 2009 6:22 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
Alex Samad wrote:
Quote:
On Tue, May 19, 2009 at 02:05:47PM -0400, M Hulber wrote:
> What you have here should work just fine except:
>
> exten => _1866NXXXXXX,1,Dial(ZAP/g1/${EXTEN}) -- note the change from n to 1.
>
> I also don't understand why you have an "Answer" after your Dial statements.
>
> I would do this:
>
Hi
I am new to asterisk and still trying to get head around dialplan. can
I clarify what is happening in this plan
in context general-outbound, you are including pri_outbound (all its
rules are placed at the bottom because its an include this its rules are
In my modification I did not put the pri_outbound inclusion at the
bottom because it's not necessary. The general-outbound rules will get
matched before the pri_outbound rules.
Quote:
sorted bellow the rules in the context, similarly the order of include
is important)
Why do you use busy after the dial ?
I left the busy after dial because this is what the original poster
had. In this case, if the channel does not get hungup then the next
execution will be a busy, letting the caller know the call was not
completed. In the dialplan macro I normally use it checks for the call
status and acts accordingly as seen below. If you are new to Asterisk
syntax this is probably confusing. If you are following it, I don't
exit on a BUSY because I frequently get a BUSY when there is actually a
congestion or channel problem. Anyhow, how often is a line actually
busy these days?
Posted: Wed May 20, 2009 8:40 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
On Wed, May 20, 2009 at 03:16:34PM -0400, M Hulber wrote:
Quote:
Alex Samad wrote:
> On Tue, May 19, 2009 at 02:05:47PM -0400, M Hulber wrote:
>
[snip]
Quote:
>
I left the busy after dial because this is what the original poster
had. In this case, if the channel does not get hungup then the next
execution will be a busy, letting the caller know the call was not
completed. In the dialplan macro I normally use it checks for the call
status and acts accordingly as seen below. If you are new to Asterisk
syntax this is probably confusing. If you are following it, I don't
exit on a BUSY because I frequently get a BUSY when there is actually a
congestion or channel problem. Anyhow, how often is a line actually
busy these days?
Wow thats a neet way to dial multiple providers, can you make it into a
macro and passin an array of numbers ? and maybe another param to
specify how many elements in the array ?
[snip]
Quote:
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Thu May 21, 2009 5:18 pm Post subject: [asterisk-users] Dialplan Priorities and Sort Order...
It is already a macro, not sure about passing an array of numbers.
Alex Samad wrote:
Quote:
On Wed, May 20, 2009 at 03:16:34PM -0400, M Hulber wrote:
> Alex Samad wrote:
>
>> On Tue, May 19, 2009 at 02:05:47PM -0400, M Hulber wrote:
>>
>>
[snip]
>>
>>
> I left the busy after dial because this is what the original poster
> had. In this case, if the channel does not get hungup then the next
> execution will be a busy, letting the caller know the call was not
> completed. In the dialplan macro I normally use it checks for the call
> status and acts accordingly as seen below. If you are new to Asterisk
> syntax this is probably confusing. If you are following it, I don't
> exit on a BUSY because I frequently get a BUSY when there is actually a
> congestion or channel problem. Anyhow, how often is a line actually
> busy these days?
>
> exten => s,n,Set(DIALS1="IAX2/xxxxxxxx@carrier1-out/${ARG1},90,T")
> exten => s,n,Set(DIALS2="IAX2/xxxxxxxx@carrier2-out/${ARG1},90,T")
> exten => s,n,Set(DIALS3="SIP/${ARG1}@carrier3-out,90,T")
>
> exten => s,n,Set(DialNum=3)
> exten => s,n,Set(DialCount=0)
>
> exten => s,n(dial),Set(DialCount=$[1 + ${DialCount}])
> exten => s,n,GotoIf($[${DialCount} > ${DialNum}]?h,1)
> exten => s,n,Dial(${DIALS${DialCount}})
> exten => s,n,Goto(dial)
>
> exten => s-CONGESTION,1,Congestion(5)
> exten => s-CONGESTION,n,Macro(rhangup)
>
> exten => s-BUSY,1,Playtones(busy)
> exten => s-BUSY,n,Busy(5)
> exten => s-BUSY,n,Macro(rhangup)
>
> exten => h,1,GotoIf($[${DIALSTATUS} = BUSY]?s-BUSY,1)
> exten => h,n,GotoIf($[${DIALSTATUS} = CHANUNAVAIL]?s-CONGESTION,1)
> exten => h,n,GotoIf($[${DIALSTATUS} = CONGESTION]?s-CONGESTION,1)
> exten => h,n,Macro(rhangup)
>
> exten => t,1,Macro(rhangup)
>
>
Wow thats a neet way to dial multiple providers, can you make it into a
macro and passin an array of numbers ? and maybe another param to
specify how many elements in the array ?
[snip]
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- 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
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