Hi allI have the following code: if($T_reply_code=="200") { if(has_body("application/sdp")) { xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines will be removed"); set_rtpengine_set("0"); rtpengine_manage(); sdp_remove_line_by_prefix("a=rtcp"); sdp_remove_line_by_prefix("a=ssrc"); sdp_remove_line_by_prefix("a=ice"); sdp_remove_line_by_prefix("a=candidate"); xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines removed with SDPOPS"); } }When I look through traces - I see that 200 ok(with SDP) has all these attributes and they are not removed. Why SDPOPS does not remove these attributes?
Hi all these lines are added after rtpengine_manage? if yes,try msg_apply_changes() after rtpengine_manage and before deletion. ! read the description of msg_apply_changes, it may brake something!
cheers
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Why-SDPOPS-does-not-remove-attribute... Sent from the Users mailing list archive at Nabble.com.
Thank You, Richard rtpengine_manage("ICE=remove rtcp-mux-demux") it solved the issue. SIP signalling is accepted by softphones.
On Saturday, June 18, 2016 12:31 AM, Vasiliy Ganchev vancecezar@gmail.com wrote:
Hi all these lines are added after rtpengine_manage? if yes,try msg_apply_changes() after rtpengine_manage and before deletion. ! read the description of msg_apply_changes, it may brake something!
cheers
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Why-SDPOPS-does-not-remove-attribute... Sent from the Users mailing list archive at Nabble.com.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 17/06/16 03:46 AM, Dmitry wrote:
Hi all I have the following code:
if($T_reply_code=="200") { if(has_body("application/sdp")) { xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines will be removed");
set_rtpengine_set("0"); rtpengine_manage(); sdp_remove_line_by_prefix("a=rtcp"); sdp_remove_line_by_prefix("a=ssrc"); sdp_remove_line_by_prefix("a=ice"); sdp_remove_line_by_prefix("a=candidate"); xlog("L_INFO", "RTPENGINE received internal reply
$T_reply_code $rr SDP extra lines removed with SDPOPS");
} }
When I look through traces - I see that 200 ok(with SDP) has all these attributes and they are not removed.
Why SDPOPS does not remove these attributes?
Probably because there's a problem rewriting parts of the SDP body more than once. But if you don't want ICE attributes in the output SDP, you can use the rtpengine flags ICE=remove. You can influence rtcp-mux attributes in the same way. See docs.
Cheers
On 06/17/2016 09:25 AM, Richard Fuchs wrote:
On 17/06/16 03:46 AM, Dmitry wrote:
Hi all I have the following code:
if($T_reply_code=="200") { if(has_body("application/sdp")) { xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines will be removed");
set_rtpengine_set("0"); rtpengine_manage(); sdp_remove_line_by_prefix("a=rtcp"); sdp_remove_line_by_prefix("a=ssrc"); sdp_remove_line_by_prefix("a=ice"); sdp_remove_line_by_prefix("a=candidate"); xlog("L_INFO", "RTPENGINE received internal reply
$T_reply_code $rr SDP extra lines removed with SDPOPS");
} }
When I look through traces - I see that 200 ok(with SDP) has all these attributes and they are not removed.
Why SDPOPS does not remove these attributes?
Probably because there's a problem rewriting parts of the SDP body more than once. But if you don't want ICE attributes in the output SDP, you can use the rtpengine flags ICE=remove. You can influence rtcp-mux attributes in the same way. See docs.
Cheers
Are your log messages triggered?
--fred
Yes, Xlog messages are triggered during calls.
On Friday, June 17, 2016 6:35 PM, Fred Posner fred@palner.com wrote:
On 06/17/2016 09:25 AM, Richard Fuchs wrote:
On 17/06/16 03:46 AM, Dmitry wrote:
Hi all I have the following code:
if($T_reply_code=="200") { if(has_body("application/sdp")) { xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines will be removed");
set_rtpengine_set("0"); rtpengine_manage(); sdp_remove_line_by_prefix("a=rtcp"); sdp_remove_line_by_prefix("a=ssrc"); sdp_remove_line_by_prefix("a=ice"); sdp_remove_line_by_prefix("a=candidate");
xlog("L_INFO", "RTPENGINE received internal reply $T_reply_code $rr SDP extra lines removed with SDPOPS");
}
} When I look through traces - I see that 200 ok(with SDP) has all these attributes and they are not removed.
Why SDPOPS does not remove these attributes?
Probably because there's a problem rewriting parts of the SDP body more than once. But if you don't want ICE attributes in the output SDP, you can use the rtpengine flags ICE=remove. You can influence rtcp-mux attributes in the same way. See docs.
Cheers
Are your log messages triggered?
--fred
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users