Hi,

1) In branch route you cannot do signaling (like sending a reply). Is the 500 reply generated from somewhere from your script? as OpenSIPS is may not send something like that by default. Maybe dropping the branch makes the t_relay() to fail and you have the 500 sending there ?

2) just print in branch route as $ru.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 11/8/23 3:08 PM, Sasmita Panda wrote:
Hi All ,

branch_route[1] {
  xlog("L_NOTICE", " Branch route URI :  $(branch(uri)) branch index : $T_branch_idx \n");

 xlog(" current branch Q value : $(branch(q))  ");
           if (isbflagset("Invalid")){
            xlog(" dropping current branch  : $(branch(uri)[$T_branch_idx])  ");

                 drop;
}
}

1. When drop() is called , it sends *"500 Server error occurred" . I want a custom  error response on this . Is this possible ?  If yes , then how will I do this ? *
*
*
*2.* Inside the branch route I wanted to print the*branch uri and q value* , but it's giving me NULL . Am I doing something wrong here ?
*
*

*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to