<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
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 ?<br>
<br>
2) just print in branch route as $ru.<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 11/8/23 3:08 PM, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q459xTQz=TBng-1YW1TJFm9JRhEz70HoN4Ged9tp=3AM=Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div>branch_route[1] {<br>
xlog("L_NOTICE", " Branch route URI : $(branch(uri)) branch
index : $T_branch_idx \n");<br>
<br>
xlog(" current branch Q value : $(branch(q)) ");<br>
if (isbflagset("Invalid")){<br>
xlog(" dropping current branch :
$(branch(uri)[$T_branch_idx]) ");<br>
<br>
drop;<br>
}<br>
}<br>
</div>
<div><br>
</div>
<div>1. When drop() is called , it sends <b>"500 Server error
occurred" . I want a custom error response on this . Is
this possible ? If yes , then how will I do this ? </b></div>
<div><b><br>
</b></div>
<div><b>2.</b> Inside the branch route I wanted to print the<b>
branch uri and q value</b> , but it's giving me NULL . Am I
doing something wrong here ?</div>
<div><b><br>
</b></div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Senior Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>