if(has_totag()) {
if(loose_route()) {
if(is_method("INVITE")) {
# It's a reinvite.
}
}
}
On 10/31/2012 09:15 AM, Alex Solt wrote:
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 ???
}
Thanks,
AS
From: abalashov(a)evaristesys.com
Date: Wed, 31 Oct 2012 16:57:04 +0400
To: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] statefull proxy Q
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.
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.
Alex Solt <alex_solt(a)hotmail.com> wrote:
Hi,
Is there any function in kamailio that could differentiates between a
new incoming INVITE message and a re-INVITE message for an existing
active call?
Thanks,
AS
------------------------------------------------------------------------
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Sent from my mobile, and thus lacking in the refinement one might
expect from a
fully-fledged keyboard.
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Web:
http://www.evaristesys.com/,
http://www.alexbalashov.com/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web:
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org