31 okt 2012 kl. 14:15 skrev Alex Solt <alex_solt@hotmail.com>:

I appreciate for the response.

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?
Is it after the has_totag() block?


route 
{
....
  
if (has_totag())
{
...
     if (loose_route())
    {
          // check for re-INVITE

    }

    // check for new INVITE  ?? 
   
} 

A new invite would not have a totag, so you have to check AFTER the block that checks the existence of the to-tag.

Please check the sample configuration you got with Kamailio to learn more!

Regards,
/Olle


--
* Olle E. Johansson - oej@edvina.net
* Kamailio & SIP Masterclass Miami FL December 2012