[OpenSER-Devel] [ openser-Patches-1968083 ] add replace_body_atonce
SourceForge.net
noreply at sourceforge.net
Tue May 20 18:57:55 CEST 2008
Patches item #1968083, was opened at 2008-05-20 18:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1968083&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andreas Granig (agranig)
Assigned to: Nobody/Anonymous (nobody)
Summary: add replace_body_atonce
Initial Comment:
This patch adds a new function "replace_body_atonce()", which allows to replace multiple lines at once (opposed to replace_body_all(), which does line-by-line matching).
This is useful if you for example want to strip parts or the overall SDP body from a message, like:
if(has_body() && replace_body_atonce("^.+$", ""))
remove_hf("Content-Type");
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1968083&group_id=139143
More information about the Devel
mailing list