Hello,
are you executing rtpengine_manage() before or after removing the codec?
Cheers,
Daniel
On 16/11/16 10:03, Oliver Roth wrote:
Hi there
I have the following problem – I need to remove a codec in the initial
INVITE.
This happens since I changed from rtpproxy to rtpengine. I changed all
rtpproxy_manage() to rtpengine_manage().
Originating INVITE with the “clearmode”
m=audio 9196 RTP/AVP 8 0 125 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:125 CLEARMODE/8000
a=rtpmap:101 telephone-event/8000
I do the following in the config
route[SDP] {
xlog(, "L_INFO", "SDP: request method $rm");
# remove CLEARMODE if Colt
if($avp(s:todirection) =~"^MyCarrier+") {
if (is_method("INVITE")) {
xlog(, "L_INFO", "SDP
remove: request method $rm");
msg_apply_changes();
sdp_remove_codecs_by_name("CLEARMODE");
#sdp_remove_codecs_by_id("125");
}
}
}
This block gets hit as I can see with the xlog entry.
In the sent INVITE the “Clearmode” is still in the sdp header
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:125 CLEARMODE/8000
a=rtpmap:101 telephone-event/8000
So with rtpproxy – it worked
With rtpengine not any more …
Any idea?
KR,
Oli
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 -
http://www.asipto.com