Hi,

I have difficult times to edit SDP in 200 ok replies, I need to change
RTP/SAVPF to UDP/TLS/RTP/SAVPF in all 200 Ok.

Here is code snippet:

onreply_route {
                if ( $rm == "INVITE" && status=="200") {
                        if (search_body("a=fingerprint")) {
                                if (search_body(" RTP/SAVPF ")) {
                                        xlog("L_INFO","200 OK DTLS
call.\n");
                                        replace_body_all(" RTP/SAVPF ","
UDP/TLS/RTP/SAVPF ");
                                }
                        }
                }
}

What I'm doing wrong?

I think my code is executed against SDP of Invite, but not 200 OK.

Jurijs
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to