<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
May I ask why using the "B" flag here ?<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/7/23 9:00 AM, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q45VwbBmrFhhC0V4m-wEmCfmAbbhgr0gQ4Cc6+Tb+UNx4Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div>I am using opensips 3.2 version . </div>
<div>route {</div>
<div>-------</div>
<div> if ($rm=="INVITE")<br>
{<br>
if(!lookup("location","B"))<br>
{<br>
if (!t_reply(404, "Not Found"))<br>
{<br>
sl_reply_error();<br>
}<br>
exit;<br>
}<br>
}<br>
</div>
<div> if (!serialize_branches(1)){</div>
sl_send_reply(500,"Unable to
load contacts");<br>
exit;<br>
}else{<br>
# if (next_branches()){<br>
t_on_failure("1");<br>
}<br>
}<br>
<div><br>
</div>
<div>Then of course the route(1) and failure_route(1) i have
called . But what is happening in my case is . I have 2
branches , For Invite opensips tries both the branches but if
both branch wont accept the call Opensips should reply error
code to the caller . But Opensips create a new invite as the
Caller sent and again follows the lookup logic .</div>
<div><br>
</div>
<div>Why is this happening ? How will I manage this ?</div>
<div><br>
</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>