<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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 "482 Request merged" for the 2nd route. That was because the SIP transaction "lives" 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><settings><br>....<br> <param name="timer-T4" value="2500" /><br></settings><br><br><br>In Kamailio, I'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("$ruri", "$(avp(i:1511))");<br> append_branch();<br> t_on_failure("2"); #In case of a new failure this block will be executed again<br> sleep("3");<br> t_relay();<br> return;<br>}<br><br><br><br>May be it's not the best solution but it could be helpful for someone else.<br><br>Best regards,<br><br>Humberto<br><br><br /><hr />Faster Hotmail access now on the new <a href='http://go.microsoft.com/?linkid=9677399' target='_new'>MSN homepage.</a></body>
</html>