Pete Kay
2008-Apr-17 16:03 UTC
[asterisk-users] questions running 2 asterisk under the same LAN
Hi, I want to know if I am running two machines each with its own Asterisk on my LAN, show I change the port of one of the Asterisk to something like 5061? Otherwise, how does an external SIP client ( like IPkall.com) knows how to route DID call to Asterisk? What is the solution for this kind of setup? Thank you very much in advance for your inputs. Regards, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080418/59d0d4f0/attachment-0001.htm
Steve Totaro
2008-Apr-17 17:01 UTC
[asterisk-users] questions running 2 asterisk under the same LAN
On Thu, Apr 17, 2008 at 12:03 PM, Pete Kay <petedao at gmail.com> wrote:> Hi, > > I want to know if I am running two machines each with its own Asterisk on my > LAN, show I change the port of one of the Asterisk to something like 5061? > Otherwise, how does an external SIP client ( like IPkall.com) knows how to > route DID call to Asterisk? What is the solution for this kind of setup? > > Thank you very much in advance for your inputs. > > Regards, > PeteMaybe if you draw a clearer picture of what you have/need. I guess you only have one public IP and everything is behind a NAT router? If you have or can get additional IPs, it would make port forwarding rules on your router easier (if it supports multiple IPs) than changing ports on the Asterisk boxen, that would probably be my approach if possible, from what I can gather from your description. Thanks, Steve Totaro This link might be of help. http://www.voip-info.org/wiki-Asterisk+SIP+NAT+solutions Thanks, Steve Totaro
linuxian iandsd
2008-Apr-17 17:30 UTC
[asterisk-users] questions running 2 asterisk under the same LAN
you surely are using port forwarding right now, something like this: wan(5061) <-----you_router_here------> lan(5061)<----------->Asterisk_box_1(5061) so you only need to add this : wan(5062) <-----you_router_here------> lan(5061)<----------->Asterisk_box_2(5061) just tell your provider that second account goes to port 5062. another solution would be to add a second connection to internet & use it for second box as internet is cheap these days. On Thu, Apr 17, 2008 at 4:03 PM, Pete Kay <petedao at gmail.com> wrote:> Hi, > > I want to know if I am running two machines each with its own Asterisk on > my LAN, show I change the port of one of the Asterisk to something like > 5061? > Otherwise, how does an external SIP client ( like IPkall.com) knows how to > route DID call to Asterisk? What is the solution for this kind of setup? > > Thank you very much in advance for your inputs. > > Regards, > Pete > > > > _______________________________________________ > -- 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/20080417/c7c039b9/attachment.htm
Steve Edwards
2008-Apr-17 17:46 UTC
[asterisk-users] questions running 2 asterisk under the same LAN
On Fri, 18 Apr 2008, Pete Kay wrote:> I want to know if I am running two machines each with its own Asterisk on my > LAN, show I change the port of one of the Asterisk to something like 5061?It is common to have multiple instances of Asterisk listening to the same port number on the same LAN.> Otherwise, how does an external SIP client ( like IPkall.com) knows how to > route DID call to Asterisk? What is the solution for this kind of setup?It depends on the provider and your networking resources. Some (most?) providers "know" where to send the call based on registration. Each host can register as many accounts with as many providers as desired. Port forwarding can also solve a lot of problems. Switching to IAX (with registration) makes most of these issues moot. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000