<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I appreciate for the response.<br><br>I am using an old kamailio app. The has_totag() and loos_route() blocks are within the route() block. The question is where is the right place to check the new INVITE?<br>Is it after the has_totag() block?<br><br><br>route <br>{<br>....<br>&nbsp; <br>if (has_totag())<br>{<br>...<br>&nbsp;&nbsp;&nbsp;&nbsp; if (loose_route())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // check for re-INVITE<br><br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;  <font style="" color="#FF0000">// check for new INVITE&nbsp; ??</font>?&nbsp; <br>&nbsp;&nbsp; <br>} <br><br><br>Thanks,<br>AS<br><br><br><br><div><div id="SkyDrivePlaceholder"></div>&gt; From: abalashov@evaristesys.com<br>&gt; Date: Wed, 31 Oct 2012 16:57:04 +0400<br>&gt; To: sr-users@lists.sip-router.org<br>&gt; Subject: Re: [SR-Users] statefull proxy Q<br>&gt; <br>&gt; Yes. The reinvite is a sequential (in-dialog) request and, like all sequential requests, is handles in a different place in the route script than initial requests. <br>&gt; <br>&gt; Sequential requests are processed in the loose_route() section of the main request route. Initial requests (such as initial INVITEs) are dealt with further down. <br>&gt; <br>&gt; Alex Solt &lt;alex_solt@hotmail.com&gt; wrote:<br>&gt; <br>&gt; &gt;<br>&gt; &gt;Hi,<br>&gt; &gt;<br>&gt; &gt;Is there any function in kamailio that could differentiates between a<br>&gt; &gt;new incoming INVITE message and a re-INVITE message for an existing<br>&gt; &gt;active call?<br>&gt; &gt;<br>&gt; &gt;Thanks,<br>&gt; &gt;AS<br>&gt; &gt;                                               <br>&gt; &gt;<br>&gt; &gt;------------------------------------------------------------------------<br>&gt; &gt;<br>&gt; &gt;_______________________________________________<br>&gt; &gt;SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; &gt;sr-users@lists.sip-router.org<br>&gt; &gt;http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>&gt; <br>&gt; -- <br>&gt; Sent from my mobile, and thus lacking in the refinement one might expect from a fully-fledged keyboard. <br>&gt; <br>&gt; Alex Balashov - Principal <br>&gt; Evariste Systems LLC <br>&gt; 235 E Ponce de Leon Ave <br>&gt; Suite 106 <br>&gt; Decatur, GA 30030 <br>&gt; Tel: +1-678-954-0670<br>&gt; Web: http://www.evaristesys.com/, http://www.alexbalashov.com/<br>&gt; <br>&gt; _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; sr-users@lists.sip-router.org<br>&gt; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></div>                                               </div></body>
</html>