VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
rentorbuy at yahoo.com Guest
|
Posted: Fri Feb 22, 2008 6:42 am Post subject: [asterisk-users] load balancing SIP extensions |
|
|
What I would like to do is have two identical *
servers which accept registrations of sip extensions
4000-4999.
If I define a rrDNS or LinuxHA then I should have
load-balanced registrations.
However, say ext. 4001 is registered on *1 and 4002 is
registered on *2, if 4001 tries to call 4002 then I
would like to do something like:
- lookup 4002 on *1, try to establish a call if it's
REGISTERED here
- if it's not registered here then try to look it up
on *2 and establish the call there
I tried to use DUNDi on my local servers but I can't
seem to make it work. Most howtos out there explain
the use of DUNDi when the extension ranges do not
overlap.
So in my case where both *1 and *2 have the same local
extension range 4XXX, can I go the DUNDi route or
should I stop bashing my head on that and explore
another solution?
If someone has configured a similar system then I'd
greatly appreciate some tips.
I read a few dundi docs like
http://www.voip-info.org/wiki-DUNDi.
Thanks
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
|
Back to top |
|
|
gandresin at gmail.com Guest
|
Posted: Fri Feb 22, 2008 7:02 am Post subject: [asterisk-users] load balancing SIP extensions |
|
|
On Fri, Feb 22, 2008 at 11:42 AM, Vieri <rentorbuy at yahoo.com> wrote:
Quote: | However, say ext. 4001 is registered on *1 and 4002 is
registered on *2, if 4001 tries to call 4002 then I
would like to do something like:
- lookup 4002 on *1, try to establish a call if it's
REGISTERED here
- if it's not registered here then try to look it up
on *2 and establish the call there
|
You can do that using the dial plan.
- Create an IAX link between both servers
- DIal plan in both servers:
First priority Dial using SIP/EXTEN
Second priority IAX/EXTEN
Dial IAX/EXTEN
--
Andres Jimenez
GPG : http://www.andresin.com/gpg/gandresin at gmail.com.asc |
|
Back to top |
|
|
YEHAVI at VMS.HUJI.AC.IL Guest
|
Posted: Fri Feb 22, 2008 12:44 pm Post subject: [asterisk-users] load balancing SIP extensions |
|
|
Quote: | What I would like to do is have two identical *
servers which accept registrations of sip extensions
4000-4999.
If I define a rrDNS or LinuxHA then I should have
load-balanced registrations.
However, say ext. 4001 is registered on *1 and 4002 is
registered on *2, if 4001 tries to call 4002 then I
would like to do something like:
- lookup 4002 on *1, try to establish a call if it's
REGISTERED here
- if it's not registered here then try to look it up
on *2 and establish the call there
...
|
I've tried doing something similar and came with two options. The common to
them is that I use MySQL for realtime extensions, and set "systemname"
parameter to the IP address of the server where the phone registers.
When a call arrives I check whether the REGSERVER coloumn is the same as the
local server or not. If not, then there are two options:
- Pass the call via IAX to the other servers; this makes both server process
the call and the audio.
- Send a "refer" message to the caller to contact the other server.
I had this working in the lab but not in production yet. If you want the
dialplan code for this then email me.
__Yehavi: |
|
Back to top |
|
|
rentorbuy at yahoo.com Guest
|
Posted: Fri Feb 22, 2008 12:49 pm Post subject: [asterisk-users] load balancing SIP extensions |
|
|
--- Andres Jimenez <gandresin at gmail.com> wrote:
Quote: | On Fri, Feb 22, 2008 at 11:42 AM, Vieri
<rentorbuy at yahoo.com> wrote:
Quote: | However, say ext. 4001 is registered on *1 and
| 4002 is
Quote: | registered on *2, if 4001 tries to call 4002 then
| I
Quote: | would like to do something like:
- lookup 4002 on *1, try to establish a call if
| it's
Quote: | REGISTERED here
- if it's not registered here then try to look it
| up
Quote: | on *2 and establish the call there
|
You can do that using the dial plan.
- Create an IAX link between both servers
- DIal plan in both servers:
First priority Dial using SIP/EXTEN
Second priority IAX/EXTEN Dial IAX/EXTEN
|
Thanks. I'll try that although I hope it won't go into
an infinite loop between the 2 servers.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
|
Back to top |
|
|
gandresin at gmail.com Guest
|
Posted: Fri Feb 22, 2008 2:11 pm Post subject: [asterisk-users] load balancing SIP extensions |
|
|
On Fri, Feb 22, 2008 at 5:49 PM, Vieri <rentorbuy at yahoo.com> wrote:
Quote: |
--- Andres Jimenez <gandresin at gmail.com> wrote:
Quote: | On Fri, Feb 22, 2008 at 11:42 AM, Vieri
<rentorbuy at yahoo.com> wrote:
Quote: | However, say ext. 4001 is registered on *1 and
| 4002 is
Quote: | registered on *2, if 4001 tries to call 4002 then
| I
Quote: | would like to do something like:
- lookup 4002 on *1, try to establish a call if
| it's
Quote: | REGISTERED here
- if it's not registered here then try to look it
| up
Quote: | on *2 and establish the call there
|
You can do that using the dial plan.
- Create an IAX link between both servers
- DIal plan in both servers:
First priority Dial using SIP/EXTEN
Second priority IAX/EXTEN Dial IAX/EXTEN
|
Thanks. I'll try that although I hope it won't go into
an infinite loop between the 2 servers.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
-- 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
|
--
Andres Jimenez
GPG : http://www.andresin.com/gpg/gandresin at gmail.com.asc |
|
Back to top |
|
|
gandresin at gmail.com Guest
|
Posted: Fri Feb 22, 2008 2:19 pm Post subject: [asterisk-users] load balancing SIP extensions |
|
|
On Fri, Feb 22, 2008 at 5:49 PM, Vieri <rentorbuy at yahoo.com> wrote:
Quote: | Thanks. I'll try that although I hope it won't go into
an infinite loop between the 2 servers.
|
You are right. That could happen if the phone is not registered anywhere
You can put some security in the dialplan.
if calls comes from IAX it means that PHONE is not registered in the
other server.
Just create special extensions to take the IAX calls (instead of GoTo):
PHONE is 101
SERVER 1
exten => 101,1, Dial SIP/101
exten => 101,1, Dial IAX-SERVER2/55101
exten => 55101,1, Dial SIP/101
exten => 55101,1, Hangup
SERVER 2
exten => 101,1, Dial SIP/101
exten => 101,1, Dial IAX-SERVER1/55101
exten => 55101,1, Dial SIP/101
exten => 55101,1, Hangup
I hope it helps,
--
Andres Jimenez
GPG : http://www.andresin.com/gpg/gandresin at gmail.com.asc |
|
Back to top |
|
|
anthonyf at rockynet.com Guest
|
Posted: Sat Feb 23, 2008 6:46 am Post subject: [asterisk-users] load balancing SIP extensions |
|
|
Vieri wrote:
Quote: | What I would like to do is have two identical *
servers which accept registrations of sip extensions
4000-4999.
If I define a rrDNS or LinuxHA then I should have
load-balanced registrations.
However, say ext. 4001 is registered on *1 and 4002 is
registered on *2, if 4001 tries to call 4002 then I
would like to do something like:
- lookup 4002 on *1, try to establish a call if it's
REGISTERED here
- if it's not registered here then try to look it up
on *2 and establish the call there
I tried to use DUNDi on my local servers but I can't
seem to make it work. Most howtos out there explain
the use of DUNDi when the extension ranges do not
overlap.
So in my case where both *1 and *2 have the same local
extension range 4XXX, can I go the DUNDi route or
should I stop bashing my head on that and explore
another solution?
If someone has configured a similar system then I'd
greatly appreciate some tips.
I read a few dundi docs like
http://www.voip-info.org/wiki-DUNDi.
Thanks
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
-- 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
| Have you tried placing the sip registrations in a db using realtime? |
|
Back to top |
|
|
rentorbuy at yahoo.com Guest
|
Posted: Sat Feb 23, 2008 2:28 pm Post subject: [asterisk-users] load balancing SIP extensions |
|
|
--- Anthony Francis <anthonyf at rockynet.com> wrote:
Quote: | Have you tried placing the sip registrations in a db
using realtime?
|
I'm not that sure I want to use realtime because I
would then depend on the sql service never failing (I
could use clustered active-active MySQL but that
sounds overkill, or maybe not).
I'll take a look at the pdf link of the previous post.
Thanks
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
|
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
|