Here is a question for all you routing guru's out there.. I am using an ADSL line (512/256Kbps) to connect from the internet to my Asterisk server.. At a point I will run out of bandwidth so the cheapest option would be to add a second ADSL line.. The problem is how will the routing work? If I put 2 IP's on one NIC will the return traffice be routed back via the gatway of the IP that is was recieved on or will it try and route all outbound traffic via the primary IP's gateway?? Would it be better to add 2 NICs instead of 2 IP's on one NIC?? although I don't see that this would change the routing logic.. Has anyone played with this type of setup? later..
WipeOut, Well will you really run out of bandwidth ? Would that be due to other (normal Internet traffic) traffic or would it all be RTP traffic, I ask because maybe some kind of priority queuing might be more effective ... It's a good question, the source and destination address/port of RTP packets is negotiated with SIP and I strongly suspect that Asterisk will only ever provide the primary address of an interface as the source (although this maybe be adjustable with bindaddr config option). I've just built a new Asterisk box so am going to try this out myself ... Will let you know ... Rgds, Adam> -----Original Message----- > From: WipeOut [mailto:wipe_out@lycos.co.uk] > Sent: 26 September 2003 11:36 > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] RTP routing.. > > > Here is a question for all you routing guru's out there.. > > I am using an ADSL line (512/256Kbps) to connect from the > internet to my > Asterisk server.. At a point I will run out of bandwidth so > the cheapest > option would be to add a second ADSL line.. > > The problem is how will the routing work? > > If I put 2 IP's on one NIC will the return traffice be routed > back via > the gatway of the IP that is was recieved on or will it try and route > all outbound traffic via the primary IP's gateway?? > > Would it be better to add 2 NICs instead of 2 IP's on one > NIC?? although > I don't see that this would change the routing logic.. > > Has anyone played with this type of setup? > > later.. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person
Hi, I work for an ISP (c; So I am going to build over the weekend a single Asterisk (RH9) box with two IP addresses (separate subnets) on the same NIC with a L2 ethernet switch connected then two separate routers (one for each subnet) and then try and make some calls to my production Asterisk box. I'll run EtheReal on the same L2 switch so I can see all the SIP and RTP packets so once its setup it should only take a few test calls to figure out exactly whats going on ... Adam> -----Original Message----- > From: WipeOut [mailto:wipe_out@lycos.co.uk] > Sent: 26 September 2003 13:08 > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] RTP routing.. > > > Hi Adam, > > No queuing won't be an option.. all the traffic I am thinking > about will > be voice traffic moving in and out of the Asterisk box.. > > Are you setting up this same senario where you are boing to have two > data paths?? > > Later.. > > Low, Adam wrote: > > >WipeOut, > > > >Well will you really run out of bandwidth ? > > > >Would that be due to other (normal Internet traffic) traffic > or would it all be RTP traffic, I ask because maybe some kind > of priority queuing might be more effective ... > > > >It's a good question, the source and destination > address/port of RTP packets is negotiated with SIP and I > strongly suspect that Asterisk will only ever provide the > primary address of an interface as the source (although this > maybe be adjustable with bindaddr config option). > > > >I've just built a new Asterisk box so am going to try this > out myself ... Will let you know ... > > > >Rgds, Adam > > > > > > > >>-----Original Message----- > >>From: WipeOut [mailto:wipe_out@lycos.co.uk] > >>Sent: 26 September 2003 11:36 > >>To: asterisk-users@lists.digium.com > >>Subject: [Asterisk-Users] RTP routing.. > >> > >> > >>Here is a question for all you routing guru's out there.. > >> > >>I am using an ADSL line (512/256Kbps) to connect from the > >>internet to my > >>Asterisk server.. At a point I will run out of bandwidth so > >>the cheapest > >>option would be to add a second ADSL line.. > >> > >>The problem is how will the routing work? > >> > >>If I put 2 IP's on one NIC will the return traffice be routed > >>back via > >>the gatway of the IP that is was recieved on or will it try > and route > >>all outbound traffic via the primary IP's gateway?? > >> > >>Would it be better to add 2 NICs instead of 2 IP's on one > >>NIC?? although > >>I don't see that this would change the routing logic.. > >> > >>Has anyone played with this type of setup? > >> > >>later.. > >> > >> > >> > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person
WipeOut, I just started to whiteboard this and had some realisations/questions: 1. I guess/hope your ADSL connection is not NAT'd ? 2. You will need two NIC's as I assume you will have two separate next hop gateways with each ADSL connection! 3. How would you load balance the inbound calls over the two connections (ensuring each doesn't exceed capacity)? The more I think about this the more I feel that a better solution would be to place a router between the Asterisk server and the two ADSL modems with some kind of NAT setup ... Adam ********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person
I can restrict the RTP ports used with my Cisco 79xx phones and on my Cisco AS5300 and I think you can with Asterisk by using the rtp.conf but I'm not completely sure, I'd suggest diving into the source for that one ...> -----Original Message----- > From: Andre Lomonaco [mailto:Lomonaco@microcity.com.br] > Sent: 26 September 2003 14:31 > To: 'asterisk-users@lists.digium.com' > Subject: RES: [Asterisk-Users] RTP routing.. > > > > Hi, > > Sorry for my bad english but I?ll try to explain my problem > > I got an Asterisk running in my house with ADSL... > I?m using X100P and TDM400P cards.... > > My intention is get calls via PSTN to my house and > Redirect to my computer in my work using X-Lite by SIP... > > Here?s the map with Firewalls > > Call for anyone to my house => PSTN => X100P => EXTENSIONS => > SIP/RTP => ISA MICROSOFT FIREWALL => COMPUTER IN MY WORK WITH XLITE > > It?s working very nice, but I had to disable iptables in my > Asterisk Box(Home)... > > I was using my linux with PPPoe Client, DynamicDnsClient and > IPTABLES... > > I?d like to know if is possible to using IPTABLES again. > My stupid question is: Can I restrict the ports that Asterisk uses > to transmit RTP. > > When I was using IPTABLES with only port 5060 open , the SIP > registration > works nice but I didn?t receive sound... > > Andre Lomonaco > > > -----Mensagem original----- > De: Low, Adam [mailto:ALow@Prioritytelecom.com] > Enviada em: Friday, September 26, 2003 9:06 AM > Para: 'asterisk-users@lists.digium.com' > Assunto: RE: [Asterisk-Users] RTP routing.. > > WipeOut, > > I just started to whiteboard this and had some realisations/questions: > > 1. I guess/hope your ADSL connection is not NAT'd ? > 2. You will need two NIC's as I assume you will have two > separate next hop > gateways with each ADSL connection! > 3. How would you load balance the inbound calls over the two > connections > (ensuring each doesn't exceed capacity)? > > The more I think about this the more I feel that a better > solution would be > to place a router between the Asterisk server and the two > ADSL modems with > some kind of NAT setup ... > > Adam > > > ********* DISCLAIMER ********* > > This message and any attachment are confidential and may be > privileged or > otherwise protected from disclosure and may include > proprietary information. > If you are not the intended recipient, please telephone or > email the sender > and delete this message and any attachment from your system. > If you are not > the intended recipient you must not copy this message or attachment or > disclose the contents to any other person > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person