How to remove particular codec
Hello all,
I would like to remove CLEARMODE codec from INVITE's sdp everytime when there are also another audio codec, if this CLEARMODE is only one codec in sdp needs to be untouched.
For example, from this SDP i would like to remove codec 125.
m=audio 37710 RTP/AVP 8 0 18 125 101
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:125 CLEARMODE/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
a=sqn:0
a=cdsc: 1 image udptl t38
But in this SDP I would like to keep it.
m=audio 30596 RTP/AVP 125
a=rtpmap:125 CLEARMODE/8000/1
a=ptime:20