|
@@ -1695,6 +1695,31 @@ if (starts_with("$rU", "+358"))
|
|
|
</example>
|
|
|
</section>
|
|
|
|
|
|
+ <section id="textops.f.ends_with">
|
|
|
+ <title>
|
|
|
+ <function moreinfo="none">ends_with(str1, str2)</function>
|
|
|
+ </title>
|
|
|
+ <para>
|
|
|
+ The function returns <emphasis>true</emphasis> if the first string ends
|
|
|
+ with the second string. The parameters can contain variables.
|
|
|
+ </para>
|
|
|
+ <para>
|
|
|
+ This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
|
|
|
+ FAILURE_ROUTE and BRANCH_ROUTE.
|
|
|
+ </para>
|
|
|
+ <example>
|
|
|
+ <title><function>ends_with</function> usage</title>
|
|
|
+ <programlisting format="linespecific">
|
|
|
+...
|
|
|
+if (ends_with("$rU", "8800"))
|
|
|
+{
|
|
|
+ # do interesting stuff here
|
|
|
+}
|
|
|
+...
|
|
|
+</programlisting>
|
|
|
+ </example>
|
|
|
+ </section>
|
|
|
+
|
|
|
<section id="textops.f.set_body_multipart">
|
|
|
<title>
|
|
|
<function moreinfo="none">set_body_multipart([txt,content_type][,boundary])</function>
|