<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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">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 02/27/2019 11:30 PM, Pat Burke
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a06c0e9fb1ee60b8d2852b9e3c41ce96@voxtelesys.com">
<title></title>
<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 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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>