Re: [asterisk-users] Use different local IP for each SIP trunk

2011-12-20 Thread Paulo Santos

Hello,

Douglas Mortensen wrote:

With that said, then it appears that the only way that I can have
multiple trunks setup with them is to have asterisk use a different
IP for all of the SIP  RTP traffic for each given trunk. Essentially
I would setup multiple IP addresses on my eth0 interface. Is there a
way in asterisk that I could configure it to use one local IP for the
source in all SIP/RTP traffic for 1 SIP trunk  then a different
local IP for the other SIP trunk?


It's not an asterisk configuration but rather a interface configuration.
I need something similar and I use 2 IPs on the same port. In debian,
the configuration goes like this:

auto eth0
iface eth0 inet static
address ip1
netmask netmask1
network network1
broadcast broadcast1
gateway default_gateway

auto eth0:0
iface eth0:0 inet static
address ip2
netmask netmask2
up route add -net network2 netmask netmask2 gw gw2

And you can add more routes for other specific IPs/networks.


José Pablo Méndez Soto wrote:

May I ask why do you need different IP addresses to source calls? I
mean, its not a common practice, would like to understand the idea
behind it.


In my case, the operator installed a gateway with a dedicated line and 
it's connected to the local network, but instead of being 192.168.0.0 
it's on 10.0.0.0. So I use this 2 networks in the same NIC in the 
asterisk machine.


Best regards,
Paulo Santos


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Use different local IP for each SIP trunk

2011-12-20 Thread giovanni.v

Il 20/12/2011 6.07, Anton Kvashenkin ha scritto:

you can add exterin= in sip.conf for each trunk


I think this can be used only in [general] section not on peers 
definition; also useful only when asterisk is behind nat. Not?


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Use different local IP for each SIP trunk

2011-12-20 Thread Anton Kvashenkin
Externip support per device in sip.conf
http://edvina.net/products/edvx/

2011/12/20 giovanni.v i...@keybits.org

 Il 20/12/2011 6.07, Anton Kvashenkin ha scritto:

  you can add exterin= in sip.conf for each trunk


 I think this can be used only in [general] section not on peers
 definition; also useful only when asterisk is behind nat. Not?


 --
 __**__**_
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
  
 http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Use different local IP for each SIP trunk

2011-12-19 Thread Douglas Mortensen
Hello,

I have a SIP provider whom I may want to have multiple trunks with, rather than 
just adding more channels to the individual trunk. I have discussed the matter 
with them  they have told me that the only way that they identify which trunk 
should be used for each call is simply by the source IP address that the SIP 
calls are originating from. They do not use sip username/password or any other 
means to authenticate the remote caller.

With that said, then it appears that the only way that I can have multiple 
trunks setup with them is to have asterisk use a different IP for all of the 
SIP  RTP traffic for each given trunk. Essentially I would setup multiple IP 
addresses on my eth0 interface. Is there a way in asterisk that I could 
configure it to use one local IP for the source in all SIP/RTP traffic for 1 
SIP trunk  then a different local IP for the other SIP trunk?

Thanks,
-
Doug Mortensen
Network Consultant
Impala Networks Inc
CCNA, MCSA, Security+, A+
Linux+, Network+, Server+
A.A.S. Information Technology
.
www.impalanetworks.comhttp://www.impalanetworks.com/
P: (505) 327-7300
F: (505) 327-7545

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Use different local IP for each SIP trunk

2011-12-19 Thread Anton Kvashenkin
AFAIK you can add exterin= in sip.conf for each trunk, correct me if i'm
wrong.

2011/12/20 Douglas Mortensen d...@impalanetworks.com

 Hello,

 ** **

 I have a SIP provider whom I may want to have multiple trunks with, rather
 than just adding more channels to the individual trunk. I have discussed
 the matter with them  they have told me that the only way that they
 identify which trunk should be used for each call is simply by the source
 IP address that the SIP calls are originating from. They do not use sip
 username/password or any other means to authenticate the remote caller.***
 *

 ** **

 With that said, then it appears that the only way that I can have multiple
 trunks setup with them is to have asterisk use a different IP for all of
 the SIP  RTP traffic for each given trunk. Essentially I would setup
 multiple IP addresses on my eth0 interface. Is there a way in asterisk that
 I could configure it to use one local IP for the source in all SIP/RTP
 traffic for 1 SIP trunk  then a different local IP for the other SIP trunk?
 

 ** **

 Thanks,

 -

 Doug Mortensen

 Network Consultant

 *Impala Networks Inc*

 CCNA, MCSA, Security+, A+

 Linux+, Network+, Server+

 A.A.S. Information Technology

 .

 www.impalanetworks.com

 P: (505) 327-7300

 F: (505) 327-7545

 ** **

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Use different local IP for each SIP trunk

2011-12-19 Thread José Pablo Méndez Soto
May I ask why do you need different IP addresses to source calls? I mean,
its not a common practice, would like to understand the idea behind it.

 *José Pablo Méndez
*


On Mon, Dec 19, 2011 at 11:07 PM, Anton Kvashenkin
anton.juga...@gmail.comwrote:

 AFAIK you can add exterin= in sip.conf for each trunk, correct me if i'm
 wrong.

 2011/12/20 Douglas Mortensen d...@impalanetworks.com

 Hello,

 ** **

 I have a SIP provider whom I may want to have multiple trunks with,
 rather than just adding more channels to the individual trunk. I have
 discussed the matter with them  they have told me that the only way that
 they identify which trunk should be used for each call is simply by the
 source IP address that the SIP calls are originating from. They do not use
 sip username/password or any other means to authenticate the remote caller.
 

 ** **

 With that said, then it appears that the only way that I can have
 multiple trunks setup with them is to have asterisk use a different IP for
 all of the SIP  RTP traffic for each given trunk. Essentially I would
 setup multiple IP addresses on my eth0 interface. Is there a way in
 asterisk that I could configure it to use one local IP for the source in
 all SIP/RTP traffic for 1 SIP trunk  then a different local IP for the
 other SIP trunk?

 ** **

 Thanks,

 -

 Doug Mortensen

 Network Consultant

 *Impala Networks Inc*

 CCNA, MCSA, Security+, A+

 Linux+, Network+, Server+

 A.A.S. Information Technology

 .

 www.impalanetworks.com

 P: (505) 327-7300

 F: (505) 327-7545

 ** **

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users