<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>there should be a function to remove a line from sdp by matching
on its prefix (in sdpops?!?), might be easier to use that one.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 23.02.21 19:51, Denys Pozniak wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+x3AxoaBb+gDO9Er-W2Pos_v=74zy52h_DayCE+UfjAFGb-zg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello!
<div><br>
</div>
<div>There is a task to remove a fragment (<b>a=rtpmap:8
PCMA/8000#015#012</b>) from the SDP string generated by the
rtpengine.</div>
<div><br>
</div>
<div>
<div><i>v=0#015#012o=kw 1614043485 1614043486 IN IP4
185.19.237.77#015#012s=kw#015#012c=IN IP4
1.1.1.1#015#012t=0 0#015#012m=audio 31828 RTP/AVP 0 8
101#015#012a=silenceSupp:off - - -
-#015#012a=direction:both#015#012a=rtpmap:0
PCMU/8000#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:101
telephone-event/8000#015#012a=fmtp:101
0-16#015#012a=sendrecv#015#012a=rtcp:31829#015#012a=ptime:20#015#012<br>
</i></div>
</div>
<div>
<div><br>
</div>
<div>The most logical option seems to be using the re.subst
transformation, but so far no success.<br>
</div>
<div>$avp(write_sdp_pv) =
$(avp(write_sdp_pv){re.subst,/a=rtpmap:8
PCMA\/8000%23015%23012//s});<br>
</div>
</div>
<div><br>
</div>
<div>Сan there be an alternative or am I doing something wrong
with the re.subst?<br>
</div>
<div><br>
</div>
<div>-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr"><br>
<div>
<div>BR,</div>
<div>Denys Pozniak<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>