I would love to see the config too. I&#39;m actively trying to use OpenSips as an inbound / outbound proxy SBC and am having mixed success as well<br><br><div class="gmail_quote">On Mon, Nov 14, 2011 at 10:08 AM, Vik Killa <span dir="ltr">&lt;<a href="mailto:vipkilla@gmail.com">vipkilla@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;">Any chance you can post your opensips config? I&#39;ve been struggling<br>
with mixed success trying same setup.<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Nov 14, 2011 at 10:18 AM, Leon de Rooij<br>
&lt;<a href="mailto:leon@scarlet-internet.nl">leon@scarlet-internet.nl</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I&#39;m actually trying to configure the same thing right now - with opensips<br>
&gt; though, but (afaik) it uses the same dispatcher module.<br>
&gt; First I used a simple route script in opensips with using dispatcher, but<br>
&gt; after the first message (from ua through proxy to fs), the proxy would get<br>
&gt; out of the signaling path, while I want it to stay in.<br>
&gt; To fix that, I added record routing in the proxy configuration so it stays<br>
&gt; in the path.<br>
&gt; Registrations are also balanced towards the fs servers - but some clients<br>
&gt; are nat&#39;ed so the contact header was wrong - fix_nated_contact() in route<br>
&gt; and in  onreply_route fixed that.<br>
&gt; To get calls originating from fs to go through the proxy before going to the<br>
&gt; client, I tried:<br>
&gt; originate<br>
&gt; sofia/some_profile/<a href="mailto:sip%3Auser@mydomain.com">sip:user@mydomain.com</a>;fs_path=sip:ip_of_sip_proxy:5060<br>
&gt; &amp;park<br>
&gt; which worked. Then I found out about the sip_route_uri variable that can be<br>
&gt; set in the bridge string:<br>
&gt; originate<br>
&gt; {sip_route_uri=sip:ip_of_sip_proxy:5060}sofia/some_profile/<a href="mailto:sip%3Asome_user@mydomain.com">sip:some_user@mydomain.com</a><br>
&gt; &amp;park<br>
&gt; which seemed to do the same thing (does anyone know if there&#39;s any<br>
&gt; difference between the two variants ?)<br>
&gt; Then I tried putting the sip_route_uri in the dial-string param of the<br>
&gt; domain (or user), for example:<br>
&gt; &lt;param name=&quot;dial-string&quot;<br>
&gt; value=&quot;{sip_route_uri=sip:ip_of_sip_proxy:5060,sip_invite_domain=${dialed_domain},presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}&quot;/&gt;<br>
&gt; so now it&#39;s possible to just call the user as:<br>
&gt; originate user/<a href="mailto:some_user@mydomain.com">some_user@mydomain.com</a> &amp;park<br>
&gt; nice !<br>
&gt; And then I found out that you can just set an outbound-proxy param in the<br>
&gt; sip profile that&#39;s used for originating:<br>
&gt; &lt;param name=&quot;outbound-proxy&quot; value=&quot;sip:ip_of_sip_proxy:5060&quot;/&gt;<br>
&gt; so now you can leave out the sip_route_uri or fs_path variables, it just<br>
&gt; works.<br>
&gt; My proxy config still needs a lot of work, but I got the basic functionality<br>
&gt; working, still need to find out about using acls on fs side based on a sip<br>
&gt; header added by the proxy - I&#39;m already adding X-AUTH-IP headers on messages<br>
&gt; from clients towards fs which should do the trick, but I didn&#39;t test it yet.<br>
&gt; Anyway, would love to read some configs of ppl who successfuly setup<br>
&gt; opensips/kamailio/openser/... proxies in front of fs, what their experience<br>
&gt; is with using record-routing or not, etc.<br>
&gt; regards,<br>
&gt; Leon<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Nov 14, 2011, at 6:40 AM, Henrik Aagaard Sørensen wrote:<br>
&gt;<br>
&gt; The handling of several FS are not a issue, actually easy enough.<br>
&gt; I would like to have as little load on Kamailio as possible, as it just<br>
&gt; should load balance.<br>
&gt; Also, having to handle users on both Kamailio and FS makes unecessary work<br>
&gt; loads.<br>
&gt;<br>
&gt; On 14/11/2011, at 00.32, Sammy Govind &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi again,<br>
&gt; Why don&#39;t you just let Kamailio handle registrations. Anyway I was thinking<br>
&gt; about that LBing the registration would result in such a scenario that<br>
&gt; calling one extension to another would not make a successful call because<br>
&gt; the other endpoint maybe registered on some other FS.<br>
&gt; This may further lead you to making a dial-plan which would work somewhat<br>
&gt; like DUNDI but it&#39;d just have to search all the FS servers before joining a<br>
&gt; call.(Obv there are other intelligent approaches to minimize the headache)<br>
&gt; Try following the link I sent you and implement that in front of your FS, I<br>
&gt; think that Kamailio configuration is so well written that anyone can start<br>
&gt; understanding kamailio and implement such setups with little effort.<br>
&gt; By explaining your topology I meant how do you plan to use Kamailio in front<br>
&gt; of FS? i.e Kamailio on Public IP and all FS on private IPs and etc  as in a<br>
&gt; topo-hiding or SBC like setup!<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Sammy<br>
&gt;<br>
&gt; 2011/11/14 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Sammy.<br>
&gt;&gt; I&#39;ve actually removed registration and presence from Kamailio, so all it<br>
&gt;&gt; does is dispatch everything to FreeSwitch.<br>
&gt;&gt; Currently I only have 1 FreeSwitch, for testing this basic setup.<br>
&gt;&gt; Next move would be 2 FreeSwitch with 1 common database etc. But that&#39;s<br>
&gt;&gt; later.<br>
&gt;&gt; My FreeSwitch is the basic setup, without anything else. Just as the<br>
&gt;&gt; installation manuel is written. So I have my extension 1000 - 1019 etc. And<br>
&gt;&gt; calls between them works when connected directly to FreeSwitch.<br>
&gt;&gt; But when going through Kamailio Dispatcher it fails between the<br>
&gt;&gt; extensions.<br>
&gt;&gt; So I guess there should be some more setup in FreeSwitch when using a load<br>
&gt;&gt; balancer (dispatcher) in front of it.<br>
&gt;&gt; My setup is just Kamailio -&gt; FreeSwitch and FreeSwitch should handle<br>
&gt;&gt; everything.<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Nov 14, 2011 at 5:56 AM, Sammy Govind &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt; If everything is setup as you expected it then don&#39;t read this<br>
&gt;&gt;&gt; &gt; <a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb</a>,<br>
&gt;&gt;&gt; else follow the article from start till end and implement it. Don&#39;t worry<br>
&gt;&gt;&gt; about the name asterisk, just replace that all with FreeSWICTH. It will work<br>
&gt;&gt;&gt; like that too.<br>
&gt;&gt;&gt; Once that is implemented then apply dispatcher module on the route which<br>
&gt;&gt;&gt; says [REGFWD] or [TOASTERISK].<br>
&gt;&gt;&gt; Also explain your topology abit more  and features required as well that<br>
&gt;&gt;&gt; may help in telling which extra module you will require in order to make<br>
&gt;&gt;&gt; things work.<br>
&gt;&gt;&gt; In your current implementation are you sure SIP phones are registering on<br>
&gt;&gt;&gt; FS and not on Kamailio?and that both end points making call to each other<br>
&gt;&gt;&gt; are on same FS?<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt; Sammy<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2011/11/14 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi everyone. In regards to my earlier question regarding with FreeSwitch<br>
&gt;&gt;&gt;&gt; behind Kamailio Dispatcher, I&#39;ve attached a call from extension 1001 to<br>
&gt;&gt;&gt;&gt; 1002, which fails. It just hangs for some time and then says that 1002<br>
&gt;&gt;&gt;&gt; cannot be found, and then the voicemail for it comes up.<br>
&gt;&gt;&gt;&gt; 2011/11/13 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;m trying to get the setup Kamailio Dispatcher -&gt; FreeSwitch to work.<br>
&gt;&gt;&gt;&gt;&gt; I&#39;ve setup Kamailio via<br>
&gt;&gt;&gt;&gt;&gt; this: <a href="http://www.kamailio.org/docs/modules/stable/modules_k/dispatcher.html" target="_blank">http://www.kamailio.org/docs/modules/stable/modules_k/dispatcher.html</a><br>
&gt;&gt;&gt;&gt;&gt; I&#39;ve installed FreeSwitch from scratch on Ubuntu<br>
&gt;&gt;&gt;&gt;&gt; via: <a href="http://wiki.freeswitch.org/wiki/Ubuntu_Quick_Start" target="_blank">http://wiki.freeswitch.org/wiki/Ubuntu_Quick_Start</a><br>
&gt;&gt;&gt;&gt;&gt; Now, when registering extensions via Kamailio Dispatcher I&#39;m able to<br>
&gt;&gt;&gt;&gt;&gt; call to FreeSwitch and listen to hold music. But that&#39;s it. I&#39;m not able to<br>
&gt;&gt;&gt;&gt;&gt; call between extensions etc.<br>
&gt;&gt;&gt;&gt;&gt; Can anyone help me setting up FreeSwitch to accept registration, calls<br>
&gt;&gt;&gt;&gt;&gt; etc. from Kamailio and everything else that is needed to use FreeSwitch<br>
&gt;&gt;&gt;&gt;&gt; behind a load balancer?<br>
&gt;&gt;&gt;&gt;&gt; I&#39;m very new to FreeSwitch, but I&#39;m trying to use the terminal (without<br>
&gt;&gt;&gt;&gt;&gt; any GUI etc.) as I want the installation to be as clean as possible. So I<br>
&gt;&gt;&gt;&gt;&gt; would prefer very precise help, as I&#39;m still getting hold of FreeSwitch.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _________________________________________________________________________<br>
&gt;&gt;&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt;&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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; 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;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _________________________________________________________________________<br>
&gt;&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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;&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>