浏览代码

siptrace: docs for evcb_msg param and event_route[siptrace:msg]

Daniel-Constantin Mierla 5 年之前
父节点
当前提交
e9eeb08815
共有 1 个文件被更改,包括 46 次插入0 次删除
  1. 46 0
      src/modules/siptrace/doc/siptrace_admin.xml

+ 46 - 0
src/modules/siptrace/doc/siptrace_admin.xml

@@ -629,6 +629,25 @@ Supported on HEPv3 only.
 ...
 modparam("siptrace", "auth_key", "spoihepuirthpeuia")
 ...
+</programlisting>
+                </example>
+        </section>
+		<section id="siptrace.p.evcb_msg">
+                <title><varname>evcb_msg</varname> (str)</title>
+                <para>
+				Set the name of KEMI function to be executed instead of
+				event_route[siptrace:msg].
+                </para>
+                <para>
+                Default value is empty.
+                </para>
+                <example>
+                <title>Set <varname>evcb_msg</varname>
+                parameter</title>
+                <programlisting format="linespecific">
+...
+modparam("siptrace", "evcb_msg", "ksr_siptrace_msg")
+...
 </programlisting>
                 </example>
         </section>
@@ -794,6 +813,33 @@ hlog("$hdr(P-MyID)", "Another one with a custom correlation ID");
 	</section>
 	</section><!-- RPC commands -->
 
+    <section>
+	<title>Event Routes</title>
+	<section id="siptrace.ev.siptrace_msg">
+		<title>
+		<function moreinfo="none">event_route[siptrace:msg]</function>
+		</title>
+		<para>
+		The event route is executed when mirroring SIP traffic using core event
+		callbacks (data in/out on network). If drop() is used, then the mirroring
+		is no longer done.
+		</para>
+		<para>
+		Note: now only message content (e.g., headers, body) can be used for
+		conditions in the event route, the source and destination addresses are
+		not yet available.
+		</para>
+		<programlisting  format="linespecific">
+...
+event_route[siptrace:msg] {
+    if(is_method("OPTIONS")) {
+        drop();
+    }
+}
+...
+		</programlisting>
+	</section>
+	</section><!-- event routes -->
 	<section>
 		<title>Database setup</title>
 		<para>