can't use msg_apply_changes() on failure route?
David Villasmil via sr-users <[email protected]> Thu, 23 Apr 2026 01:35:45 +0200
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <CAFGRPVpB1pX_dufO7dV1u8HeWxBPeoDQXZxBgW9PF33EX+CjzQ@mail.gmail.com> |
Hello all,
I need to make changes on the SDP. The first change is fine on the request
route, but i only need to make changes to it in the failure route to set it
properly for the failover endpoint.
I restore the sdp, but my problem is i can't modify it since i can't
manipulate it:
# Restore original dual-transport SDP before stripping for new
dest -- $avp(orig_sdp) was saved on the initial request route.
set_body("$avp(orig_sdp)", "application/sdp");
# Strip unsupported transport for new destination
if ( $du =~ "tls" ) {
xlogl("L_INFO", "[RTF_CARRIER] TLS dest - stripping
RTP/AVP\n");
sdp_remove_transport("RTP/AVP");
} else {
xlogl("L_INFO", "[RTF_CARRIER] Non-TLS dest - stripping
RTP/SAVP\n");
sdp_remove_transport("RTP/SAVP");
}
Any ideas how to accomplish this?
Thanks!
Regards,
David Villasmil
email: [email protected]
__________________________________________________________
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!