[OpenSIPS-Users] SDP manipulation & rtpengine

Pat Burke pat at voxtelesys.com
Wed Feb 27 16:30:12 EST 2019


Hello:


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.


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?


Use case:
if (subst_body("/(^a=.*\r\n)\r\n/\1/g")) {
  xlog("L_INFO", "bad SDP --- duplicate CRLF");
}


rtpengine_offer(" ... options ... ");


Regards,
Pat Burke



______________________________________________________________________________________
Direct: (402) 403-5121   |   Cell: (402) 443-8929  |   Email: pat at voxtelesys.com
1801 23rd Avenue North   |  Suite 217    |  Fargo, North Dakota 58102
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190227/2b1a57fd/attachment-0001.html>


More information about the Users mailing list