Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] help with rotating number plan


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
pabelanger at gmail.com
Guest





PostPosted: Thu May 08, 2008 10:46 am    Post subject: [asterisk-users] help with rotating number plan Reply with quote

G'day all,

I'm trying to come up with a quick, easy solution to have a static
inbound number in my dialplan, rotate calling 2 numbers. Example:
1st call into asterisk

exten => 1234,1,Dial(sip/1111,10)
exten => 1234,n,Dial(sip/2222,10)

2nd call into asterisk

exten => 1234,1,Dial(sip/2222,10)
exten => 1234,n,Dial(sip/1111,10)

We're kind off looking to do load balancing via the dial plan.

But I'm having a little trouble getting the logic to trace 1st call
in, 2nd call in, 1st call in, 2nd call in, etc.

Any help?

Thanks again,
PB
Back to top
andres at paglayan.com
Guest





PostPosted: Thu May 08, 2008 11:08 am    Post subject: [asterisk-users] help with rotating number plan Reply with quote

On Thu, 2008-05-08 at 11:46 -0400, Paul Belanger wrote:

Quote:
G'day all,

I'm trying to come up with a quick, easy solution to have a static
inbound number in my dialplan, rotate calling 2 numbers. Example:


1st call into asterisk

exten => 1234,1,Dial(sip/1111,10)
exten => 1234,n,Dial(sip/2222,10)

2nd call into asterisk

exten => 1234,1,Dial(sip/2222,10)
exten => 1234,n,Dial(sip/1111,10)

explore the use of set(DB)
it stores values on a persistent astDB
so you can use it to toggle where the next call dials
Quote:

We're kind off looking to do load balancing via the dial plan.

But I'm having a little trouble getting the logic to trace 1st call
in, 2nd call in, 1st call in, 2nd call in, etc.

Any help?

Thanks again,
PB

_______________________________________________
-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080508/1b564fc7/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5537 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080508/1b564fc7/attachment.bin
Back to top
philipp.kempgen at amo...
Guest





PostPosted: Thu May 08, 2008 11:11 am    Post subject: [asterisk-users] help with rotating number plan Reply with quote

Paul Belanger schrieb:

Quote:
I'm trying to come up with a quick, easy solution to have a static
inbound number in my dialplan, rotate calling 2 numbers. Example:


1st call into asterisk

exten => 1234,1,Dial(sip/1111,10)
exten => 1234,n,Dial(sip/2222,10)

2nd call into asterisk

exten => 1234,1,Dial(sip/2222,10)
exten => 1234,n,Dial(sip/1111,10)

We're kind off looking to do load balancing via the dial plan.

But I'm having a little trouble getting the logic to trace 1st call
in, 2nd call in, 1st call in, 2nd call in, etc.

I don't quite understand why you would want to that in the first
place but you could use a global variable.
Set(GLOBAL(somevar)=0)
Set(GLOBAL(somevar)=1)
Set(GLOBAL(somevar)=0)
...
Whenever a call comes in, use somevar to decide what to do.
show application GotoIf
Gr??e,
Philipp Kempgen
--
Asterisk-Tag.org 2008, 26.-27. Mai -> http://www.asterisk-tag.org
amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Back to top
info at tripple-o.nl
Guest





PostPosted: Thu May 08, 2008 12:53 pm    Post subject: [asterisk-users] help with rotating number plan Reply with quote

An option to rotate between numbers is to add a queue to the system
and add 1111 and 2222 as agents and pick the proper strategy (rrmemory
or leastrecent). This has some advantages:
- the calls are devided as you have in mind
- when there are more calls coming in they are queued instead of a
busy tone
- you can scale by just adding an agent to the queue

see http://www.voip-info.org/wiki-Asterisk+call+queues for further info
Erik de Wild
Tripple-o
Your Asterisk migration partner


Quote:
I'm trying to come up with a quick, easy solution to have a static
inbound number in my dialplan, rotate calling 2 numbers. Example:


1st call into asterisk

exten => 1234,1,Dial(sip/1111,10)
exten => 1234,n,Dial(sip/2222,10)

2nd call into asterisk

exten => 1234,1,Dial(sip/2222,10)
exten => 1234,n,Dial(sip/1111,10)

We're kind off looking to do load balancing via the dial plan.

But I'm having a little trouble getting the logic to trace 1st call
in, 2nd call in, 1st call in, 2nd call in, etc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080508/f060ae8a/attachment.htm
Back to top
pabelanger at gmail.com
Guest





PostPosted: Thu May 08, 2008 1:56 pm    Post subject: [asterisk-users] help with rotating number plan Reply with quote

I do link the idea of have a queue answer the calls and route to the
extensions, but will have to figure out a way to do this with have the
SIP extensions logging into the queues.

On Thu, May 8, 2008 at 1:53 PM, info at tripple-o.nl <info at tripple-o.nl> wrote:
Quote:
An option to rotate between numbers is to add a queue to the system and add
1111 and 2222 as agents and pick the proper strategy (rrmemory
or leastrecent). This has some advantages:
- the calls are devided as you have in mind
- when there are more calls coming in they are queued instead of a busy
tone
- you can scale by just adding an agent to the queue
see http://www.voip-info.org/wiki-Asterisk+call+queues for further info

Erik de Wild
Tripple-o
Your Asterisk migration partner

I'm trying to come up with a quick, easy solution to have a static

inbound number in my dialplan, rotate calling 2 numbers. Example:


1st call into asterisk

exten => 1234,1,Dial(sip/1111,10)

exten => 1234,n,Dial(sip/2222,10)

2nd call into asterisk

exten => 1234,1,Dial(sip/2222,10)

exten => 1234,n,Dial(sip/1111,10)

We're kind off looking to do load balancing via the dial plan.

But I'm having a little trouble getting the logic to trace 1st call

in, 2nd call in, 1st call in, 2nd call in, etc.


_______________________________________________
-- 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
Back to top
stotaro at totarotechn...
Guest





PostPosted: Thu May 08, 2008 4:21 pm    Post subject: [asterisk-users] help with rotating number plan Reply with quote

I second the queues idea. You can make static queues including the
sip channels. The previous mentioned ideas, while they may work, are
a little more intricate than then the queue idea.

I think that if you do not need 1.4, 1.2 has much less bugs than 1.4.
This conclusion is not from experience but from bug reports.

Thanks,
Steve Totaro

On Thu, May 8, 2008 at 2:56 PM, Paul Belanger <pabelanger at gmail.com> wrote:
Quote:
I do link the idea of have a queue answer the calls and route to the
extensions, but will have to figure out a way to do this with have the
SIP extensions logging into the queues.



On Thu, May 8, 2008 at 1:53 PM, info at tripple-o.nl <info at tripple-o.nl> wrote:
Quote:
An option to rotate between numbers is to add a queue to the system and add
1111 and 2222 as agents and pick the proper strategy (rrmemory
or leastrecent). This has some advantages:
- the calls are devided as you have in mind
- when there are more calls coming in they are queued instead of a busy
tone
- you can scale by just adding an agent to the queue
see http://www.voip-info.org/wiki-Asterisk+call+queues for further info

Erik de Wild
Tripple-o
Your Asterisk migration partner

I'm trying to come up with a quick, easy solution to have a static

inbound number in my dialplan, rotate calling 2 numbers. Example:


1st call into asterisk

exten => 1234,1,Dial(sip/1111,10)

exten => 1234,n,Dial(sip/2222,10)

2nd call into asterisk

exten => 1234,1,Dial(sip/2222,10)

exten => 1234,n,Dial(sip/1111,10)

We're kind off looking to do load balancing via the dial plan.

But I'm having a little trouble getting the logic to trace 1st call

in, 2nd call in, 1st call in, 2nd call in, etc.




Quote:
_______________________________________________
-- 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
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Thu May 08, 2008 5:41 pm    Post subject: [asterisk-users] help with rotating number plan Reply with quote

On Thu, 8 May 2008, Paul Belanger wrote:

Quote:
I do link the idea of have a queue answer the calls and route to the
extensions, but will have to figure out a way to do this with have the
SIP extensions logging into the queues.

You can define a device to be a member of a queue in queue.conf. For
example:

[customer-service]
context = customer-service
member = sip/cs1
member = sip/cs2
member = sip/super2
strategy = rrmemory

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services