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.<br>
<br>So he would want something like this:<br>
<br>
sip profile 1 listening on 10.0.0.1 vlan1<br>
sip profile 2 listening on 10.0.0.1 vlan2<br><br>The likes of ACME packet SBCs/GENBAND etc support this but it is not possible in freeswitch currently.<br><br>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: <a href="http://codingrelic.geekhold.com/2009/10/code-snippet-sobindtodevice.html">http://codingrelic.geekhold.com/2009/10/code-snippet-sobindtodevice.html</a><br>
<br>Regards,<br>Steve<br><br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 6:22 AM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">its not possible to listen on 0.0.0.0 you can only guess at best on<br>
which ip goes with what packets and you cannot choose which source<br>
addr to put in outbound packets in that case. This is a limitation<br>
caused by the design of the SIP spec.<br>
<br>
<br>
You must create a distinct profile for every interface with the<br>
desired IP from each vlan.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Tue, Oct 26, 2010 at 11:49 AM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
> Thinking about it, it won't work. ext-sip-ip will be inside the<br>
> packets but they'll be sent from sip-ip so the clients won't see it<br>
> coming from the IP you want.<br>
><br>
> On 26 October 2010 17:47, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
>> Possibly your best bet would be to set sip-ip and rtp-ip to the<br>
>> specific interface and ext-sip-ip and ext-rtp-ip to the global IP.<br>
>><br>
>> I don't know how well this'll work though. Sofia might get very<br>
>> confused about where to send stuff to, since the same IP is used on<br>
>> essentially separate networks.<br>
>><br>
>> -Steve<br>
>><br>
>><br>
>> On 23 October 2010 19:47, Adam Kuśmirek <<a href="mailto:amkusmirek@gmail.com">amkusmirek@gmail.com</a>> wrote:<br>
>>> Hi All<br>
>>><br>
>>> I would like to run FreeSwitch as SBC in my network. I have<br>
>>> architecture with all clients connected via separate vlans.<br>
>>> It gives me possibility to use one ip address for all clients, but I<br>
>>> need FS sofia profile to bind to specific interface (eg eth0:20 vlan<br>
>>> 20) and global ip address.<br>
>>> As I see, for now sofia module allows to bind to ip address only. I<br>
>>> looked quickly to sourcees and it seems that this is limited by sofia<br>
>>> library.<br>
>>> Of course i may be wrong because I'm new to FS and didn't have time to<br>
>>> analyze sources.<br>
>>> Please, write some words on this topic.<br>
>>> Do you have plans to implement vlan support in FS.<br>
>>> I know that AcmePacket Net-Net gives such feature. Don't know any open<br>
>>> voip solution with this iplemented.<br>
>>><br>
>>> Regards Adam<br>
>>><br>
>>> _______________________________________________<br>
>>> FreeSWITCH-dev mailing list<br>
>>> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-dev mailing list<br>
> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>