Thanks, Daniel. This will definately help in rewrting SDP's. Question, i was
previously trying to use the 1.0 subst to alter the message body. Would this
not have worked? Also is content length updated automatically in the new
body functions?
Thanks,
Sumeet
From: Daniel-Constantin Mierla
<daniel(a)voice-system.ro>
Reply-To: daniel(a)voice-system.ro
To: devel <devel(a)openser.org>rg>, users <users(a)openser.org>
Subject: [Devel] new textops functions
Date: Tue, 21 Feb 2006 12:40:56 +0200
Hello,
the development version of textops module has a new set of functions that
work on the body of the SIP messages.
- search_body() - search a regular expression within the message's body
- search_append_body() - search a regular expression within the message's
body and append a text after it
- replace_body() - replace a regular expression match with a text
- replace_body_all() - replace all regular expression matches with a text
- subst_body() - sed/perl like subst operation over the message's body
More details about these functions at:
http://openser.org/docs/modules/1.1.x/textops.html
Cheers,
Daniel
_______________________________________________
Devel mailing list
Devel(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/