HMR for targetting the second m= line in the SIPREC Invite .
Hi
I am tryin to come up with an HMR to strip off all the codecs except 18 amd 101 in the second m= line . For example :
o=- 4823843 593122 IN IP4 128.164.92.10
s=-
c=IN IP4 128.164.92.150
t=0 0
m=audio 25010 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=inactive
a=label:838870935
m=audio 25014 RTP/AVP 0 8 9 18 120 102 104 103 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:9 g722/8000
a=rtpmap:18 g729/8000
a=fmtp:18 annexb=no
a=rtpmap:120 opus/48000/2
a=rtpmap:102 iLBC/8000
a=rtpmap:104 iSAC/32000
a=rtpmap:103 iSAC/16000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15a=label:838870934
a=sendonly
so i want the result to be