<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
I"m 100% sure the second part of the OR will not be executed if
you have an INVITE. Maybe you have a logical flaw in the cfg.<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 24.11.2024 12:31, Saint Michael
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAC9cSOBEO9epSuiGHAESDcgFHJB7ZuHHtTLeZOe46LPtEinBFA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">when I do
this</div>
<div class="gmail_default" style="font-size:small">if
(is_method("INVITE") || (is_method("ACK") &&
t_check_status("200")))</div>
<div class="gmail_default" style="font-size:small">I get an
error</div>
<div class="gmail_default" style="font-size:small">ERROR:tm:t_check_status:
cannot check status for a reply which has no transaction-state
established</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Since I am
executing this is_method("INVITE") is true, the other two
logical conditions after || ("or" condition) should not be
checked. That is how all languages work. </div>
<div class="gmail_default" style="font-size:small">The
parenthesis group together is_method("ACK") &&
t_check_status("200")), so they are one single logical
condition, and it should not be evaluated after a positive for
any previous condition.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></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>