<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12 Jul 2016, at 15:18, Grant Bagdasarian <<a 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 lang="EN-US" class="">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 lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">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 lang="EN-US" class=""><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 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></body></html>