There is no support for STIR/SHAKEN with chan_sip in any version. What should ultimately be done is upgrading to a current supported version of Asterisk, and 18 is not one of them. There have been (and continue to be at times) fixes/changes to STIR/SHAKEN.
If I use secsipidx, obtain a certificate from an authorized STI Certificate Authority (CA), generate the SIP Identity header in AGI, and add it using SIPAddHeader, will this work? Will the provider or carrier allow it? @Dovid