Wow, thanks, I&#39;ll have a look at it.<br><br><div class="gmail_quote">On Thu, Sep 29, 2011 at 4:23 PM, Carsten Bock <span dir="ltr">&lt;<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Henrik,<br>
<br>
i just added my config for a simple loadbalancer, which handles<br>
in-dialog requests and failover (i stripped a lot, which you might not<br>
need).<br>
Maybe that helps you!<br>
<br>
Carsten<br>
<br>
<br>
2011/9/29 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Daniel.<br>
&gt;<br>
&gt; I appreciate all the help I can get, very much.<br>
&gt;<br>
&gt; This is my configuration so far: <a href="http://pastebin.com/AYprC7Rm" target="_blank">http://pastebin.com/AYprC7Rm</a><br>
&gt;<br>
&gt; Where would you put it?<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Henrik<br>
&gt;<br>
&gt; On Thu, Sep 29, 2011 at 10:47 AM, Daniel-Constantin Mierla<br>
&gt; &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; please keep the mainling list cc-ed.<br>
&gt;&gt;<br>
&gt;&gt; Calling ds_select_dst() first in the main route block is not really a good<br>
&gt;&gt; place. First you have to handle sanity checks, within dialog requests a.s.o.<br>
&gt;&gt; Of course it is a matter of your purpose, but as general hint, selecting the<br>
&gt;&gt; destination should be done just (or as close as possible) before relaying.<br>
&gt;&gt;<br>
&gt;&gt; If you take default config and you have only load balancing, then you can<br>
&gt;&gt; replace location lookup part with load balancing. Other parts may be<br>
&gt;&gt; stripped as well, just giving some direction here.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Daniel<br>
&gt;&gt;<br>
&gt;&gt; On 9/28/11 11:11 PM, Henrik Aagaard Sørensen wrote:<br>
&gt;&gt;<br>
&gt;&gt; That did the job.<br>
&gt;&gt;<br>
&gt;&gt; I just placed the ds_select_dst-code at the very first thing after route{<br>
&gt;&gt;<br>
&gt;&gt; Thank you for your help!<br>
&gt;&gt;<br>
&gt;&gt; 2011/9/28 Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; the devel version of dispatcher module README has a different config<br>
&gt;&gt;&gt; example, maybe it helps you more:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id2522847" target="_blank">http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id2522847</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am considering to update it again soon to be a bit more complete and<br>
&gt;&gt;&gt; follow the structure of the default config file shipped with kamailio.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt; Daniel<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 9/28/11 6:30 PM, Henrik Aagaard Sørensen wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi Carsten.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The configuration works. It&#39;s actually where (which line) in the<br>
&gt;&gt;&gt; configuration I should put:<br>
&gt;&gt;&gt; ds_select_dst(&quot;1&quot;, &quot;0&quot;);<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; :) I&#39;m not strong in Kamailio and just want it to load balance between<br>
&gt;&gt;&gt; Freswitch servers. So I have a basic installation of Kamailio, without<br>
&gt;&gt;&gt; MySQL, NAT, Auth etc.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Sep 28, 2011 at 5:09 PM, Carsten Bock &lt;<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>&gt;<br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; When you&#39;ve got problems with placing &quot;ds_select_dst()&quot; in your<br>
&gt;&gt;&gt;&gt; config, you should do the following:<br>
&gt;&gt;&gt;&gt; - Open an Editor of your choice<br>
&gt;&gt;&gt;&gt; - go to the line, where you want to place it<br>
&gt;&gt;&gt;&gt; - type: ds_select_dst(&quot;1&quot;, &quot;0&quot;);<br>
&gt;&gt;&gt;&gt; - save &amp; exit<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Just kidding! You should do the following with your config:<br>
&gt;&gt;&gt;&gt; kamailio -f &lt;path-to-your-config&gt; -c<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; What error is displayed? If none, then check your syslog for errors.<br>
&gt;&gt;&gt;&gt; Could you post your config? It is better to put a full path in the<br>
&gt;&gt;&gt;&gt; config to the dispatcher-file... otherwise it might be dependent of,<br>
&gt;&gt;&gt;&gt; where you are running the init.d-skript/kamailio....<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am using dispatcher in Kamailio 1.5, 3.1 and 3.2, everythings works<br>
&gt;&gt;&gt;&gt; fine with me.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Kind regards,<br>
&gt;&gt;&gt;&gt; Carsten<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; 2011/9/28 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>&gt;:<br>
&gt;&gt;&gt;&gt; &gt; I&#39;ve installed 2 Freeswitch on different servers and would like to<br>
&gt;&gt;&gt;&gt; &gt; have<br>
&gt;&gt;&gt;&gt; &gt; Kamailio load balance between them.<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; I&#39;ve installed Kamailio following:<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; <a href="http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git</a><br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; I&#39;ve created dispatcher.list and added:<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; loadmodule &quot;dispatcher.so&quot;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; modparam(&quot;dispatcher&quot;, &quot;list_file&quot;, &quot;../etc/dispatcher.list&quot;)<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; in the kamailio.cfg.<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; But looking at:<br>
&gt;&gt;&gt;&gt; &gt; <a href="http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html" target="_blank">http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html</a><br>
&gt;&gt;&gt;&gt; &gt; I&#39;m having difficulties to placing:<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; ds_select_dst(&quot;1&quot;, &quot;0&quot;);<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; in the kamailio.cfg that was created originally.<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; Can anyone help me?<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
&gt;&gt;&gt;&gt; &gt; list<br>
&gt;&gt;&gt;&gt; &gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt;&gt;&gt; &gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</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;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Carsten Bock<br>
&gt;&gt;&gt;&gt; CEO (Geschäftsführer)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ng-voice GmbH i. Gr.<br>
&gt;&gt;&gt;&gt; Schomburgstr. 80<br>
&gt;&gt;&gt;&gt; D-22767 Hamburg / Germany<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; <a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
&gt;&gt;&gt;&gt; mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Mobile <a href="tel:%2B49%20179%202021244" value="+491792021244">+49 179 2021244</a><br>
&gt;&gt;&gt;&gt; Office <a href="tel:%2B49%2040%2034927219" value="+494034927219">+49 40 34927219</a><br>
&gt;&gt;&gt;&gt; Fax <a href="tel:%2B49%2040%2034927220" value="+494034927220">+49 40 34927220</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
&gt;&gt;&gt; Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
&gt;&gt;&gt; <a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
&gt;&gt; Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
&gt;&gt; <a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH i. Gr.<br>
Schomburgstr. 80<br>
D-22767 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Mobile <a href="tel:%2B49%20179%202021244" value="+491792021244">+49 179 2021244</a><br>
Office <a href="tel:%2B49%2040%2034927219" value="+494034927219">+49 40 34927219</a><br>
Fax <a href="tel:%2B49%2040%2034927220" value="+494034927220">+49 40 34927220</a><br>
<br>
</div></div>Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a><br>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br>