Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] asterisk multiple ip


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
cervajs at fpf.slu.cz
Guest





PostPosted: Fri Aug 29, 2014 4:26 am    Post subject: [asterisk-users] asterisk multiple ip Reply with quote

hi,

i need migrate customers from severeal to one asterisk server with
multiple ip aliases
like
eth0 192.168.10.1
eth0:1 192.168.10.20
eth0:2 192.168.10.30

i must preserve endpoint configuration to these ip adressess

the problem is if i register to 192.168.10.30, the answer is from
192.168.10.1

are there some ways for this scenario?
1) chan_pjsip?
2) kamailio in front of asterisk on the same server?
3) iptables magic?
4) ...

thanks

--
---------------------------------------
Marek Cervenka
=======================================


--
_____________________________________________________________________
-- 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
Back to top
Derek.Andrew at usask.ca
Guest





PostPosted: Fri Aug 29, 2014 5:38 am    Post subject: [asterisk-users] asterisk multiple ip Reply with quote

You can achieve your goal with policy based routing (http://en.wikipedia.org/wiki/Policy-based_routing). You would need to install the iproute2 package and set up ip rules for routing.


This would allow you to answer endpoints registering on 192.168.10.30 with the address 192.168.10.30.

On Fri, Aug 29, 2014 at 3:26 AM, Marek Cervenka <cervajs@fpf.slu.cz (cervajs@fpf.slu.cz)> wrote:
Quote:
hi,

i need migrate customers from severeal to one asterisk server with
multiple ip aliases
like
eth0 192.168.10.1
eth0:1 192.168.10.20
eth0:2 192.168.10.30

i must preserve endpoint configuration to these ip adressess

the problem is if i register to 192.168.10.30, the answer is from
192.168.10.1

are there some ways for this scenario?
1) chan_pjsip?
2) kamailio in front of asterisk on the same server?
3) iptables magic?
4) ...

thanks

--
---------------------------------------
Marek Cervenka
=======================================


--
_____________________________________________________________________
-- 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



--
Copyright 2014 Derek Andrew (excluding quotations)
Back to top
cervajs at fpf.slu.cz
Guest





PostPosted: Fri Aug 29, 2014 8:40 am    Post subject: [asterisk-users] asterisk multiple ip Reply with quote

it looks like i found solution with chan_pjsip

/etc/asterisk/pjsip.conf
[transport-udp-net1]
type=transport
protocol=udp
bind=192.168.10.20

[transport-udp-net2]
type=transport
protocol=udp
bind=192.168.10.30

[net1_user1]
type=endpoint
transport=transport-udp-net1

[net2_user1]
type=endpoint
transport=transport-udp-net2

can you someone confirm this solution?


Dne 29.8.2014 v 11:26 Marek Cervenka napsal(a):
Quote:
hi,

i need migrate customers from severeal to one asterisk server with
multiple ip aliases
like
eth0 192.168.10.1
eth0:1 192.168.10.20
eth0:2 192.168.10.30

i must preserve endpoint configuration to these ip adressess

the problem is if i register to 192.168.10.30, the answer is from
192.168.10.1

are there some ways for this scenario?
1) chan_pjsip?
2) kamailio in front of asterisk on the same server?
3) iptables magic?
4) ...

thanks



--
---------------------------------------
Marek Cervenka
=======================================


--
_____________________________________________________________________
-- 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
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