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 ???
}