[SR-Users] How to change SDP in 200 Ok reply
Jurijs Ivolga
jurijs.ivolga at gmail.com
Tue Sep 26 09:17:55 CEST 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170926/e524d145/attachment.html>
More information about the sr-users
mailing list