The FS in front that doesn&#39;t handle the media is a good solution for me!<div>The incoming SIP call can be bridged with a simple round robin rule to &quot;FS media server&quot; and a called prefix number can be added by front FS (and removed by FS media server) to propagate the &quot;source IP address&quot;.</div>
<div>Thank you for this info: I&#39;ll do some test on this solution.</div><div><br></div><div>Stephen<br><br><div class="gmail_quote">On Sun, Dec 12, 2010 at 9:51 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It is, but it relies on the caller supporting 3xx. They might not<br>
handle the redirect.<br>
<br>
A lot won&#39;t because you could redirect them to anywhere, so lots of<br>
implementations will ignore the 3xx. FreeSWITCH for instance can<br>
either ignore a 3xx or will send the call back into the dialplan.<br>
<br>
I think you&#39;ll have more success having a FS server in front of the<br>
others and bridging the call through to each server. If you set<br>
inbound_bypass_media=true on the SIP profile, the RTP media will<br>
bypass that server and go directly between the caller and the other FS<br>
box. That means that the call won&#39;t be using any CPU since it&#39;ll only<br>
wake up when a SIP packet is being sent/received. You&#39;ll still be<br>
creating a session through so it&#39;ll still be allocating memory to the<br>
call, a SIP proxy would use fewer resources.<br>
<br>
-Steve<br>
<div><div></div><div class="h5"><br>
<br>
On 12 December 2010 19:28, Saeed Ahmed &lt;<a href="mailto:saeedahmad1981@gmail.com">saeedahmad1981@gmail.com</a>&gt; wrote:<br>
&gt; Thanks Steve for suggestion, i&#39;ll check X-Auth-IP, its new for me.<br>
&gt; Since we are talking about HA options... Is it practically doable use it:<br>
&gt;<br>
&gt; <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_redirect#Example_2" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_redirect#Example_2</a><br>
&gt; The idea is to run one FS box (Redirect-FS) in front of several FS boxes<br>
&gt; which redirect the call to active/available FS. If we make some script on<br>
&gt; redirect FS to count the active calls on media FSes and rearrange the order<br>
&gt; of redirect then loadbalacing can also be done.<br>
&gt; ...possible?<br>
&gt;<br>
&gt; On Sun, Dec 12, 2010 at 12:23 PM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; 1. i am thinking to use kamailo in front of FS boxes, is there any<br>
&gt;&gt; &gt; difference between kamailo and opensips?<br>
&gt;&gt;<br>
&gt;&gt; They&#39;re both forks of OpenSER so for the most part there&#39;s little<br>
&gt;&gt; difference.<br>
&gt;&gt;<br>
&gt;&gt; There are some small differences though since the fork. For example,<br>
&gt;&gt; opensips has a load_balancer module which kamalio does not (kamalio<br>
&gt;&gt; can still do load balancing but has a different interface to do so).<br>
&gt;&gt;<br>
&gt;&gt; &gt; 2. if kamailo or opensips is running in front of FS, then will it send<br>
&gt;&gt; &gt; call<br>
&gt;&gt; &gt; to FS with original customer ip? so i can do billing etc on FS box<br>
&gt;&gt; &gt; -&gt; actually i do IP based authentication and also ip based billing on FS<br>
&gt;&gt; &gt; box, so in case, i recieve kamailo ip on FS box then i&#39;ll loose the<br>
&gt;&gt; &gt; original<br>
&gt;&gt; &gt; customer overview.<br>
&gt;&gt;<br>
&gt;&gt; It will appear coming from the proxy IP. But there is a workaround.<br>
&gt;&gt; Configure a proxy ACL on the SIP profile and add your proxy IP to it.<br>
&gt;&gt; Then adjust your proxy routing rules so that it adds a X-Auth-IP<br>
&gt;&gt; header that contains the original IP.<br>
&gt;&gt; Anything coming from anything in the proxy ACL is trusted and FS will<br>
&gt;&gt; use the value from X-Auth-IP (if it exists).<br>
&gt;&gt;<br>
&gt;&gt; -Steve<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 11 December 2010 14:00, Saeed Ahmed &lt;<a href="mailto:saeedahmad1981@gmail.com">saeedahmad1981@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 1. i am thinking to use kamailo in front of FS boxes, is there any<br>
&gt;&gt; &gt; difference between kamailo and opensips?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2. if kamailo or opensips is running in front of FS, then will it send<br>
&gt;&gt; &gt; call<br>
&gt;&gt; &gt; to FS with original customer ip? so i can do billing etc on FS box<br>
&gt;&gt; &gt; -&gt; actually i do IP based authentication and also ip based billing on FS<br>
&gt;&gt; &gt; box, so in case, i recieve kamailo ip on FS box then i&#39;ll loose the<br>
&gt;&gt; &gt; original<br>
&gt;&gt; &gt; customer overview.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; thanks<br>
&gt;&gt; &gt; On Tue, Dec 7, 2010 at 2:31 PM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; There are a few performance tweaking tips at<br>
&gt;&gt; &gt;&gt; <a href="http://wiki.freeswitch.org/wiki/Performance_testing_and_configurations" target="_blank">http://wiki.freeswitch.org/wiki/Performance_testing_and_configurations</a>.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Yes a Sangoma card will reduce your CPU load since transcoding won&#39;t<br>
&gt;&gt; &gt;&gt; be done on the CPU any longer, that will then mean there&#39;s more CPU<br>
&gt;&gt; &gt;&gt; available so you&#39;ll be able to handle more calls.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; However, if you&#39;re looking to increase your number of calls then you<br>
&gt;&gt; &gt;&gt; probably want a cluster of servers as Juan pointed out.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; It&#39;ll mean you can increase the capacity by adding extra servers, so<br>
&gt;&gt; &gt;&gt; there&#39;d no longer be a limit to the number of calls you could handle<br>
&gt;&gt; &gt;&gt; (just add another server).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; It&#39;ll also make maintenance easier, as you&#39;ll be able to pull a server<br>
&gt;&gt; &gt;&gt; from service for updates etc while traffic continues to run on the<br>
&gt;&gt; &gt;&gt; other servers. Maintenance won&#39;t mean a service outage.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If you&#39;re handling that many calls then additional servers would make<br>
&gt;&gt; &gt;&gt; your service more reliable. If a server crashes you&#39;ll still have the<br>
&gt;&gt; &gt;&gt; calls running on the other servers while you&#39;re fixing the problem so<br>
&gt;&gt; &gt;&gt; you won&#39;t have a complete outage. If FS is behind a load balancer then<br>
&gt;&gt; &gt;&gt; your customers might not even notice anything apart from a few dropped<br>
&gt;&gt; &gt;&gt; calls.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; There&#39;s <a href="http://wiki.freeswitch.org/wiki/Freeswitch_HA" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_HA</a> which will<br>
&gt;&gt; &gt;&gt; attempt to continue calls if FS crashes and restarts, but I think<br>
&gt;&gt; &gt;&gt; that&#39;s only for SIP-SIP not SIP-ISDN.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; -Steve<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On 7 December 2010 12:26, Stephen Wilde &lt;<a href="mailto:wstephen80@gmail.com">wstephen80@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt; I have one server running Freeswitch with some ISDN connections (via<br>
&gt;&gt; &gt;&gt; &gt; FreeTDM+Sangoma boards) and some SIP connections with service<br>
&gt;&gt; &gt;&gt; &gt; providers<br>
&gt;&gt; &gt;&gt; &gt; and<br>
&gt;&gt; &gt;&gt; &gt; customer.<br>
&gt;&gt; &gt;&gt; &gt; The usage of Freeswitch is as switching so it &quot;bridge&quot; each incoming<br>
&gt;&gt; &gt;&gt; &gt; call to<br>
&gt;&gt; &gt;&gt; &gt; a new outgoing call.<br>
&gt;&gt; &gt;&gt; &gt; SIP calls use G.729 and ISDN calls use ALaw for voice encoding.<br>
&gt;&gt; &gt;&gt; &gt; Now the number of call is grow up and also the CPU load is a little<br>
&gt;&gt; &gt;&gt; &gt; high<br>
&gt;&gt; &gt;&gt; &gt; so<br>
&gt;&gt; &gt;&gt; &gt; I have the necessity to scale UP my Freeswitch to handle more calls:<br>
&gt;&gt; &gt;&gt; &gt; what is<br>
&gt;&gt; &gt;&gt; &gt; the best way to do that?<br>
&gt;&gt; &gt;&gt; &gt; My first idea is to use a Sangoma D500 board to reduce the CPU load.<br>
&gt;&gt; &gt;&gt; &gt; Can<br>
&gt;&gt; &gt;&gt; &gt; be<br>
&gt;&gt; &gt;&gt; &gt; this a solution?<br>
&gt;&gt; &gt;&gt; &gt; There are different way to scale UP?<br>
&gt;&gt; &gt;&gt; &gt; Thanks in advance,<br>
&gt;&gt; &gt;&gt; &gt; Stephen<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>