Sasmita,

I think the relevant piece here is not the call to “serialize_branches”, but 
how the branches are being created to begin with. Are you using drouting, 
dispatcher, registrar, etc? It seems like what is happening is that whatever 
mechanism you are using to track the contacts is considering the 486 response 
to mean that URI should not be tried again and it is removed from routing. This 
behavior is likely configurable in that module.

Ben Newlin

From: Users <users-boun...@lists.opensips.org> on behalf of Sasmita Panda 
<spa...@3clogic.com>
Date: Monday, October 9, 2023 at 8:47 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: [OpenSIPS-Users] Need to understand the seral forking logic of 
opensips .
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
Hi ,

I know this is a very basic question . Still I need some clarification .

I have 2 contact for same number , When I place a call Openips give that to 1st 
if 1st contact reject the call with 486 busy , then opensips try the same call 
to the 2nd contact without rejecting the call .

In the next call for same number , opensips tries to 2nd contact if that 
rejects the call with 486 it wont try to the 1st contact again . Why is this 
happening ?

route{

                        if (!serialize_branches(1)){
                                sl_send_reply("500","Unable to load contacts");
                                exit;
                        }else{
                                if (next_branches()){
                                        t_on_failure("1");
                                }
                        }
}

failure_route[1] {

   if ( t_check_status("404|477|480|481|408|486|50[234]")){
         if (next_branches())
         {
                t_on_failure("1");
                route(1);
         }

    }
}

This is in my config file . i have gone through the doc  
https://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc44<https://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc44>
but not able to understand properly .

How can I print the internally stored branches on avp ?

Thanks & Regards
Sasmita Panda
Senior Network Testing and Software Engineer
3CLogic , ph:07827611765
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to