Would you mind creating a wiki page on this? It would be good to document why you need this functionality, that is, what your business case is and how this solution helps you resolve your issue. Create your own page and then link to it from this page:<br>
<a href="http://wiki.freeswitch.org/wiki/Examples">http://wiki.freeswitch.org/wiki/Examples</a><br><br>Thanks!<br>-MC<br><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 6:31 AM, Humberto Quintana <span dir="ltr">&lt;<a href="mailto:hjqlopez@hotmail.com">hjqlopez@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
Hi,<br><br>I want to share my findings in making work Freeswitch as SBC when Kamailio is doing serial forking.  FS doesnt take any routing decision, it receives the R-URI from Kamailio. <br><br>After the 1st route failed, I was receiving &quot;482 Request merged&quot; for the 2nd route. That was because the SIP transaction &quot;lives&quot; for 4 seconds in FS after receiving the ACK for a 4xx, 5xx, 6xx reply (only when using UDP).  Also, Kamailio takes less than 1 second to try a new route for the same call, thus making FS generates the 482 message.<br>
<br><br>To adapt both to my needs. I set in external.xml  the timer T4 to 2500 (default is 4000):<br><br>&lt;settings&gt;<br>....<br>      &lt;param name=&quot;timer-T4&quot; value=&quot;2500&quot; /&gt;<br>&lt;/settings&gt;<br>
<br><br>In Kamailio, I&#39;m executing the sleep function (from cfgutils module) in the failure_route block:<br><br><br>failure_route[2] {<br><br>...Get your new ruri only for some  reply codes...<br><br>          avp_pushto(&quot;$ruri&quot;, &quot;$(avp(i:1511))&quot;);<br>
          append_branch();<br>          t_on_failure(&quot;2&quot;); #In case of a new failure this block will be executed again<br>          sleep(&quot;3&quot;);<br>          t_relay();<br>          return;<br>}<br><br>
<br><br>May be it&#39;s not the best solution but it could be helpful for someone else.<br><br>Best regards,<br><font color="#888888"><br>Humberto<br></font><div class="hm"><br><br><hr>Faster Hotmail access now on the new <a href="http://go.microsoft.com/?linkid=9677399" target="_blank">MSN homepage.</a></div>
</div>
<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>
<br></blockquote></div><br>