[Freeswitch-dev] VLAN support in sofia module
steve.kurzeja at gmail.com
Wed Nov 10 00:54:45 PST 2010
I think what the original poster is saying is that his existing architecture
uses "overlapping" IP addresses ("one ip address for all clients").
Clients/devices are on separate vlans and the SBC sits in each vlan
listening on the same IP address. Client <--> SBC IP is then on the same
broadcast domain and not IP routed. The clients are all configured to talk
to the same SBC address which makes provisioning simple.
So he would want something like this:
sip profile 1 listening on 10.0.0.1 vlan1
sip profile 2 listening on 10.0.0.1 vlan2
The likes of ACME packet SBCs/GENBAND etc support this but it is not
possible in freeswitch currently.
In linux this can be done using the SO_BINDDEVICE socket option to force
packets out a particular interface rather than use the linux IP routing
table. A good description is here:
On Wed, Oct 27, 2010 at 6:22 AM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> its not possible to listen on 0.0.0.0 you can only guess at best on
> which ip goes with what packets and you cannot choose which source
> addr to put in outbound packets in that case. This is a limitation
> caused by the design of the SIP spec.
> You must create a distinct profile for every interface with the
> desired IP from each vlan.
> On Tue, Oct 26, 2010 at 11:49 AM, Steven Ayre <steveayre at gmail.com> wrote:
> > Thinking about it, it won't work. ext-sip-ip will be inside the
> > packets but they'll be sent from sip-ip so the clients won't see it
> > coming from the IP you want.
> > On 26 October 2010 17:47, Steven Ayre <steveayre at gmail.com> wrote:
> >> Possibly your best bet would be to set sip-ip and rtp-ip to the
> >> specific interface and ext-sip-ip and ext-rtp-ip to the global IP.
> >> I don't know how well this'll work though. Sofia might get very
> >> confused about where to send stuff to, since the same IP is used on
> >> essentially separate networks.
> >> -Steve
> >> On 23 October 2010 19:47, Adam Kuśmirek <amkusmirek at gmail.com> wrote:
> >>> Hi All
> >>> I would like to run FreeSwitch as SBC in my network. I have
> >>> architecture with all clients connected via separate vlans.
> >>> It gives me possibility to use one ip address for all clients, but I
> >>> need FS sofia profile to bind to specific interface (eg eth0:20 vlan
> >>> 20) and global ip address.
> >>> As I see, for now sofia module allows to bind to ip address only. I
> >>> looked quickly to sourcees and it seems that this is limited by sofia
> >>> library.
> >>> Of course i may be wrong because I'm new to FS and didn't have time to
> >>> analyze sources.
> >>> Please, write some words on this topic.
> >>> Do you have plans to implement vlan support in FS.
> >>> I know that AcmePacket Net-Net gives such feature. Don't know any open
> >>> voip solution with this iplemented.
> >>> Regards Adam
> >>> _______________________________________________
> >>> FreeSWITCH-dev mailing list
> >>> FreeSWITCH-dev at lists.freeswitch.org
> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> >>> http://www.freeswitch.org
> > _______________________________________________
> > FreeSWITCH-dev mailing list
> > FreeSWITCH-dev at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> > http://www.freeswitch.org
> Anthony Minessale II
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-dev