I don’t think such a thing would work with chan_sip, but it’s past time to have migrated to pjsip anyway. If using pjsip, there is this post which may get you what you need
Generally when confronted with disagreeable routers, your time is better spent changing to TLS signaling.