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 sr-users@lists.kamailio.org 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 -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!