<html>
<head><title></title></head>
<body><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;"></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">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></body>
</html>