|
@@ -237,9 +237,13 @@ Chapter 1. Admin Guide
|
|
|
The module implements text based operations over the SIP message
|
|
|
processed by Kamailio. SIP is a text based protocol and the module
|
|
|
provides a large set of very useful functions to manipulate the message
|
|
|
- at text level, e.g., regular expression search and replace, Perl-like
|
|
|
+ at text level, e.g., regular expression search, replace or
|
|
|
substitutions, checks for method type, header presence, insert of new
|
|
|
- header and date, etc.
|
|
|
+ header and date, string comparisons, multi-part body operations, etc.
|
|
|
+
|
|
|
+ If not stated otherwise, the regular expressions parameters for search,
|
|
|
+ replace or substitute have to be in POSIX format. For PCRE regular
|
|
|
+ expression matching, see the pcre or dialplan modules.
|
|
|
|
|
|
2. Known Limitations
|
|
|
|
|
@@ -565,7 +569,7 @@ replace_hdrs_str("Kamailio", "Kamailio SIP Proxy", "a");
|
|
|
|
|
|
4.15. subst('/re/repl/flags')
|
|
|
|
|
|
- Replaces re with repl (sed or perl like).
|
|
|
+ Replaces re with repl.
|
|
|
|
|
|
Meaning of the parameters is as follows:
|
|
|
* '/re/repl/flags' - sed like regular expression. flags can be a
|
|
@@ -646,7 +650,7 @@ if (subst_user('/(.*)3642$/$avp(user_prefix)\13642/')){$
|
|
|
|
|
|
4.18. subst_body('/re/repl/flags')
|
|
|
|
|
|
- Replaces re with repl (sed or perl like) in the body of the message.
|
|
|
+ Replaces re with repl in the body of the message.
|
|
|
|
|
|
Meaning of the parameters is as follows:
|
|
|
* '/re/repl/flags' - sed like regular expression. flags can be a
|
|
@@ -667,7 +671,7 @@ if ( subst_body('/^o=(.*) /o=$fU /') ) {};
|
|
|
|
|
|
4.19. subst_hf(hf, subexp, flags)
|
|
|
|
|
|
- Perl-like substitutions in the body of a header field.
|
|
|
+ Substitutions in the body of a header field.
|
|
|
|
|
|
Meaning of the parameters is as follows:
|
|
|
* hf - header field name.
|