Re: stir/shaken integration with clearip redirect method

Fred Posner via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
Hey JR,

Basic aspects of what I do…

Change the ru like you already have and then add something like:

if (!t_is_set("failure_route")) t_on_failure("MANAGE_FAILURE_STIR”);

Then 2 aspects…

onreply_route[MANAGE_REPLY] {
	if (t_check_status("30[1-2]")) {
		if (is_present_hf("Identity")) {
			$avp(stir) = $hdr(Identity);
			xinfo("Identity found: $avp(stir)\n");
		}
	}
}



failure_route[MANAGE_FAILURE_STIR] {
	xinfo("$T_reply_code received.\n");
	if (t_is_canceled()) {
		exit;
	}

	if (t_check_status("30[1-2]")) {
		if ($avp(stir)!=$null) {
			if (!is_present_hf("Date")) {
				append_time_to_request();
				xinfo("Date header added\n");
			}

			append_hf("Identity: $avp(stir)\r\n", "Server");
			xinfo("Identity header added: $avp(stir)\n");
		} else {
			xinfo("Identity not detected\n");
		}

		route(WHEREVER);
	}

	t_reply("404","Cannot Send MFS1");
}


Fred Posner
Tel: +1 (352) 664-3733
Alt: +1 (224) 334-3733

Contact info at https://fredp.xyz




> On May 19, 2025, at 3:45 PM, JR Richardson via sr-users <[email protected]> wrote:
> 
> Hey Folks,
> 
> I'm integrating STIR/SHAKEN using kamailio, but not using self hosted certs with the secsipid module, just using a redirect from clearip on the SIP Calls. I've got the basic connection to clearip using t_relay_to_tcp for testing, but I'm struggling with the checks and timeouts. I have call progress past the initial request where I need to wait for a response. Should I put the clearip invite in its own route block use return? Has anyone successfully integrated the redirect method with kamailio to clearip and can give me some example route checks in the kamailio configs?
> 
> Thanks.
> JR
> 
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the sender!

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.