[SR-Users] Detect 200 OK for ReINVITE

Grant Bagdasarian gb at cm.nl
Tue Jul 12 15:36:49 CEST 2016


Hi Alex,

Here a sample config (not yet tested).
Does this make sense and will this work?

route[WITHINDLG] {
	
	if (!has_totag()) {
		return;
	}

	# Sequential request within a dialog should take the path determined by record-routing
	if (loose_route()) {
		if(is_method("BYE")) {
			route(ON_LOG_BYE);
		}
		
		if(is_method("INVITE")) {
			$avp(i:is_reinvite) = 1;
		}
		....
	}
	....
}

onreply_route[MANAGE_REPLY] {

	if(!t_check_trans()) {
		exit;
	}
	
	if($avp(i:is_reinvite)) {
		exit;
	}
	....
}

-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Tuesday, July 12, 2016 3:21 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] Detect 200 OK for ReINVITE

Don't know about detect, but you could set a transaction-persistent flag or AVP when processing the reinvite request. This will also be testable in the onreply_route. 

-- Alex

--
Principal, Evariste Systems LLC (www.evaristesys.com)

Sent from my Google Nexus.


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


More information about the sr-users mailing list