<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>To add my 2c, if the performance is a **really big** concern, the
solution with transaction flags as mentioned by Alex is one of the
best.</p>
<p>In request route test for to-tag and then setflag(x). Then in
onreply_route[...] or failure_route[...] test if isflagset(x).</p>
<p>The other suggestions are also very fast, but not as fast as with
transaction flags.</p>
<p>On the other hand -- some details about avp names -- i: for avp
names is saying that the name has to be treated as integer id,
which is not the case for your example with:</p>
<p>$avp(i:is_reinvite) = 1;</p>
<p>After i: must be a number up to 2^16. Or just remove the i: and
let it be string name.<br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 12/07/16 15:55, Olle E. Johansson
wrote:<br>
</div>
<blockquote
cite="mid:C4753DA1-793C-417A-90D0-35684E72A30B@edvina.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 12 Jul 2016, at 15:18, Grant Bagdasarian <<a
moz-do-not-send="true" href="mailto:gb@cm.nl" class="">gb@cm.nl</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1;
font-family: Helvetica; font-size: 14px; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;" class=""><span
class="" lang="EN-US">Hi,<o:p class=""></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;" class=""><span
class="" lang="EN-US"><o:p class=""> </o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;" class=""><span
class="" lang="EN-US">Is it possible in Kamailio, or
SIP in general, to detect if a 200 OK is for a
ReINVITE?<o:p class=""></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;" class=""><span
class="" lang="EN-US"><o:p class=""> </o:p></span></div>
</div>
</div>
</blockquote>
Not from the 200 OK, but the matching INVITE you can check if
there’s a to-tag in Kamailio and SIP.</div>
<div><br class="">
</div>
<div>In Kamailio, if you are stateful, you can use the TMX module
pseudovariables to check the request</div>
<div>matching the response and check if there’s a to-tag. Check
the cookbook for </div>
<h3 class="sectionedit148" id="t_req_pv" style="padding: 0px;
line-height: 1.2; clear: left; font-size: 1.125em; margin: 0px
0px 0.888em; color: rgb(51, 51, 51); font-family: Arial,
sans-serif; background-color: rgb(255, 255, 255);">$T_req(pv)</h3>
<div class=""><a moz-do-not-send="true"
href="http://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables"
class="">http://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables</a></div>
<div><br class="">
</div>
<div>/O</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>