Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] 482 Request merged, in serial forking - Solved


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
msc at freeswitch.org
Guest





PostPosted: Thu Sep 10, 2009 2:33 pm    Post subject: [Freeswitch-users] 482 Request merged, in serial forking - S Reply with quote

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:
http://wiki.freeswitch.org/wiki/Examples

Thanks!
-MC

On Thu, Sep 10, 2009 at 6:31 AM, Humberto Quintana <hjqlopez@hotmail.com (hjqlopez@hotmail.com)> wrote:
Quote:
Hi,

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.

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.


To adapt both to my needs. I set in external.xml the timer T4 to 2500 (default is 4000):

<settings>
....
      <param name="timer-T4" value="2500" />
</settings>


In Kamailio, I'm executing the sleep function (from cfgutils module) in the failure_route block:


failure_route[2] {

...Get your new ruri only for some reply codes...

          avp_pushto("$ruri", "$(avp(i:1511))");
          append_branch();
          t_on_failure("2"); #In case of a new failure this block will be executed again
          sleep("3");
          t_relay();
          return;
}



May be it's not the best solution but it could be helpful for someone else.

Best regards,

Humberto


Faster Hotmail access now on the new MSN homepage.


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services