<div dir="ltr"><div>Hello!</div><div><br></div><div>Thanks for the answer.</div><div>But if we abstract, it’s an SDP. How to transform a string containing # character?<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 1 мар. 2021 г. в 13:05, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <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>On 23.02.21 19:51, Denys Pozniak wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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">
            <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></fieldset>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">https://www.paypal.me/dcmierla</a></pre>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>