[OpenSER-Devel] [ openser-Patches-1968083 ] add replace_body_atonce

SourceForge.net noreply at sourceforge.net
Thu Jun 5 17:26:31 CEST 2008


Patches item #1968083, was opened at 2008-05-20 19:57
Message generated for change (Comment added) made by bogdan_iancu
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: modules
Group: ver devel
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Andreas Granig (agranig)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
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");

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-06-05 18:26

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Andreas,

I made a small rework on the fixup functions part (to make them more
general) - the patch is on svn. Maybe for 1.5, we can merge the two
replace_bodyxxxxx() functions and put a second param for controlling the
behaviour

Regards,
Bogdan

----------------------------------------------------------------------

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