<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hmmm, indeed, passing SDP as variable to rtpengine is possible
      only with 3.0 , my bad....too many versions.<br>
      <br>
      This is the commit you are looking for: <br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/a27797d04ba418eb3ac4c2d6dadd0cdf7f3c17b6#diff-069ca6b59f3521936eca7bf3684ae63d">https://github.com/OpenSIPS/opensips/commit/a27797d04ba418eb3ac4c2d6dadd0cdf7f3c17b6#diff-069ca6b59f3521936eca7bf3684ae63d</a><br>
      <br>
      maybe you can grab the module from 3.0 right after that commit and
      copy it in 2.4 tree - it may compile.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
    <div class="moz-cite-prefix">On 03/06/2019 10:47 PM, Pat Burke
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a252cfcc6b90b8eae31cd28e3c9d6f98@voxtelesys.com">
      <title></title>
      <div class="iw_mail" dir="ltr">
        <p style="margin:0;">Thanks Bogdan,</p>
        <p style="margin:0;"><br>
        </p>
        <p style="margin:0;">I see that it is part of 3.0, but not a
          part of 2.4.  Is this a module we can pull back to 2.4?</p>
        <p style="margin:0;"><br>
        </p>
        <div class="signature">
          <div style="font-family: arial, helvetica, sans-serif;
            font-size: 16px;"><span data-mce-style="color: #808080;
              font-family: arial,helvetica,sans-serif; font-size: 11pt;"
              style="color: rgb(128, 128, 128); font-size: 11pt;">Regards,</span></div>
          <div style="font-family: arial, helvetica, sans-serif;
            font-size: 16px;">
            <span data-mce-style="color: #808080; font-family:
              arial,helvetica,sans-serif; font-size: 11pt;"
              style="color: rgb(128, 128, 128); font-size: 11pt;"><strong>Pat
                Burke</strong></span><br>
            <br>
            <div><img alt="Voxtelesys | solutions to grow your business"
src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png"
data-mce-src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png"
                data-mce-style="color: #00274c; font-family:
                arial,helvetica,sans-serif; font-size: 16pt;
                font-weight: bold; text-decoration: none;" style="color:
                rgb(0, 39, 76); font-size: 16pt; font-weight: bold;"
                moz-do-not-send="true"></div>
            <div><span data-mce-style="color: #999999; font-size: 8pt;"
                style="color: rgb(153, 153, 153); font-size: 8pt;">______________________________________________________________________________________</span></div>
            <div><span data-mce-style="font-size: 11pt; font-family:
                arial,helvetica,sans-serif; color: #808080;"
                style="font-size: 11pt; color: rgb(128, 128, 128);">Direct:
                (402) 403-5121   <span data-mce-style="font-size: 14pt;"
                  style="font-size: 14pt;">|</span>   Cell: (402)
                443-8929  <span data-mce-style="font-size: 14pt;"
                  style="font-size: 14pt;">|</span>   Email: <a
                  href="mailto:pat@voxtelesys.com"
                  moz-do-not-send="true">pat@voxtelesys.com</a></span></div>
            <div><span data-mce-style="font-size: 11pt; font-family:
                arial,helvetica,sans-serif; color: #808080;"
                style="font-size: 11pt; color: rgb(128, 128, 128);">1801
                23rd Avenue North   <span data-mce-style="font-size:
                  14pt;" style="font-size: 14pt;">|</span>  Suite 217
                   <span data-mce-style="font-size: 14pt;"
                  style="font-size: 14pt;">|</span>  Fargo, North Dakota
                58102</span></div>
          </div>
           </div>
        <br>
        <blockquote class="reply_block" dir="ltr" style="border-left:
          2px solid #0088CC; margin: 5pt 0 5pt 10pt; padding: 0 0 0 5pt;
          font-size: 13px; font-family:
          roboto,tahoma,helvetica,sans-serif;">
          <hr size="1">-----Original Message-----<br>
          From: "Bogdan-Andrei Iancu" <<a
            href="mailto:bogdan@opensips.org" moz-do-not-send="true">bogdan@opensips.org</a>><br>
          To: "OpenSIPS users mailling list" <<a
            href="mailto:users@lists.opensips.org"
            moz-do-not-send="true">users@lists.opensips.org</a>>,
          "Pat Burke" <<a href="mailto:pat@voxtelesys.com"
            moz-do-not-send="true">pat@voxtelesys.com</a>><br>
          Date: 03/05/19 09:45<br>
          Subject: Re: [OpenSIPS-Users] SDP manipulation & rtpengine<br>
          <br>
          <tt>Hi Pat,<br>
            <br>
            What you can do is to grab the SDP from the msg into a
            variable, to do whatever fixes/change you have to directly
            in the variable and push the body via variable to rtpengine.<br>
            <br>
            Regards,<br>
          </tt>
          <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com" moz-do-not-send="true">https://www.opensips-solutions.com</a>OpenSIPS Summit 2019
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/" moz-do-not-send="true">https://www.opensips.org/events/Summit-2019Amsterdam/</a></pre>
          <div class="moz-cite-prefix">On 02/27/2019 11:30 PM, Pat Burke
            wrote:<br>
          </div>
          <blockquote type="cite"
            cite="mid:a06c0e9fb1ee60b8d2852b9e3c41ce96@voxtelesys.com">
            <div class="iw_mail" dir="ltr">
              <p style="margin:0;"><span style="font-family: roboto,
                  tahoma, helvetica, sans-serif;">Hello:</span></p>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;"><br>
              </div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;">I am using trying to manipulate parts of
                the SDP body before calling rtpengine_offer /
                rtpengine_answer. However, any changes made via textops
                functions such as subst_body, replace_body,
                replace_body_all, etc. do not seem to impact the SDP
                that is sent to rtpengine.</div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;"><br>
              </div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;">In my particular case, rtpengine fails to
                parse the SDP because of an extra carriage return line
                feed sent in the SDP. Is there a way to send rtpengine
                manipulated SDP, rather than just the SDP sent in the
                request?</div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;"><br>
              </div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;"><b><u>Use case:</u></b></div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;">if (subst_body("/(^a=.*\r\n)\r\n/\1/g")) {</div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;">xlog("L_INFO", "bad SDP --- duplicate
                CRLF");</div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;">}</div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;"><br>
              </div>
              <div style="font-family: roboto, tahoma, helvetica,
                sans-serif;">rtpengine_offer(" ... options ... ");</div>
              <p style="margin:0;"><br>
              </p>
              <div>
                <div style="font-family: arial, helvetica, sans-serif;
                  font-size: 16px;"><span data-mce-style="color:
                    #808080; font-family: arial,helvetica,sans-serif;
                    font-size: 11pt;" style="color: rgb(128, 128, 128);
                    font-size: 11pt;">Regards,</span></div>
                <div style="font-family: arial, helvetica, sans-serif;
                  font-size: 16px;">
                  <span data-mce-style="color: #808080; font-family:
                    arial,helvetica,sans-serif; font-size: 11pt;"
                    style="color: rgb(128, 128, 128); font-size: 11pt;"><strong>Pat
                      Burke</strong></span><br>
                  <br>
                  <div><img alt="Voxtelesys | solutions to grow your
                      business"
src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png"
data-mce-src="http://www.voxtelesys.com/images/img/Voxtelesys-logo-2016-179x49-email-tagline.png"
                      data-mce-style="color: #00274c; font-family:
                      arial,helvetica,sans-serif; font-size: 16pt;
                      font-weight: bold; text-decoration: none;"
                      style="color: rgb(0, 39, 76); font-size: 16pt;
                      font-weight: bold;" moz-do-not-send="true"></div>
                  <div><span data-mce-style="color: #999999; font-size:
                      8pt;" style="color: rgb(153, 153, 153); font-size:
                      8pt;">______________________________________________________________________________________</span></div>
                  <div><span data-mce-style="font-size: 11pt;
                      font-family: arial,helvetica,sans-serif; color:
                      #808080;" style="font-size: 11pt; color: rgb(128,
                      128, 128);">Direct: (402) 403-5121 <span
                        data-mce-style="font-size: 14pt;"
                        style="font-size: 14pt;">|</span> Cell: (402)
                      443-8929 <span data-mce-style="font-size: 14pt;"
                        style="font-size: 14pt;">|</span> Email: <a
                        href="mailto:pat@voxtelesys.com"
                        moz-do-not-send="true">pat@voxtelesys.com</a></span></div>
                  <div><span data-mce-style="font-size: 11pt;
                      font-family: arial,helvetica,sans-serif; color:
                      #808080;" style="font-size: 11pt; color: rgb(128,
                      128, 128);">1801 23rd Avenue North <span
                        data-mce-style="font-size: 14pt;"
                        style="font-size: 14pt;">|</span> Suite 217 <span
                        data-mce-style="font-size: 14pt;"
                        style="font-size: 14pt;">|</span> Fargo, North
                      Dakota 58102</span></div>
                </div>
              </div>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Users mailing list<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a><a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
          </blockquote>
          <br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>