A few additional thoughts based on the responses from Fred and Alex:
I'd leave the RURI alone and just set the destination URI (unless you're required to have their hostname in your RURI domain). As Alex recommended, do this in the branch route. The advantage here is that you don't need to worry about any existing transport parameters in the RURI. Just:
branch_route[STIAS_BRANCH] { $du = "sip:" + $sht(clearip_ip)+ ":" $sht(clearip_port) + ";transport=tcp"; }
I'm not entirely sure on replacing the From: user, since you really want the value you're sending on to match what's signed. IIRC, clear IP has some options to allow for normalization to globalized e.164 (without the leading plus character). Also, if memory serves, you might want to re-try in the event of timeout failures, etc. since clear ip is operating multiple hosts on their hostname.
(note, my company used to use clear IP, but has since moved to signing our own calls, so I don't have any direct access or examples for clear IP - just going from memory.
Regards, Kaufman ________________________________ From: JR Richardson via sr-users sr-users@lists.kamailio.org Sent: Monday, May 19, 2025 2:45 PM To: sr-users@lists.kamailio.org sr-users@lists.kamailio.org Cc: JR Richardson jmr.richardson@gmail.com Subject: [SR-Users] stir/shaken integration with clearip redirect method
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
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!