<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://223/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>31 okt 2012 kl. 14:15 skrev Alex Solt &lt;<a href="mailto:alex_solt@hotmail.com">alex_solt@hotmail.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><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<span class="Apple-converted-space">&nbsp;</span><br>{<br>....<br>&nbsp;<span class="Apple-converted-space">&nbsp;</span><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;<span class="Apple-converted-space">&nbsp;</span><font color="#FF0000">// check for new INVITE&nbsp; ??</font>?&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>}<span class="Apple-converted-space">&nbsp;</span><br></div></div></blockquote><div><br></div>A new invite would not have a totag, so you have to check AFTER the block that checks the existence of the to-tag.</div><div><br></div><div>Please check the sample configuration you got with Kamailio to learn more!</div><div><br></div><div>Regards,</div><div>/Olle</div><div><br></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div><div style="font-size: medium; ">* Olle E. Johansson - <a href="mailto:oej@edvina.net">oej@edvina.net</a><br>* Kamailio &amp; SIP Masterclass Miami FL December 2012</div><div style="font-size: medium; ">* <a href="http://edvina.net/training/">http://edvina.net/training/</a></div></div><div><br class="khtml-block-placeholder"></div></div></div></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>