Module: kamailio
Branch: master
Commit: f49200b82025fc0ba3caf04415c56b1aa7ff447a
URL:
https://github.com/kamailio/kamailio/commit/f49200b82025fc0ba3caf04415c56b1…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2017-03-04T12:31:55Z
db_text : add documentation for db_text.query
---
Modified: src/modules/db_text/doc/db_text_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/f49200b82025fc0ba3caf04415c56b1…
Patch:
https://github.com/kamailio/kamailio/commit/f49200b82025fc0ba3caf04415c56b1…
---
diff --git a/src/modules/db_text/doc/db_text_admin.xml
b/src/modules/db_text/doc/db_text_admin.xml
index a5cb874..9c0ecb0 100644
--- a/src/modules/db_text/doc/db_text_admin.xml
+++ b/src/modules/db_text/doc/db_text_admin.xml
@@ -270,6 +270,26 @@ modparam("db_text", "db_mode", 1)
</programlisting>
</example>
</section>
+ <section>
+ <title><varname>default_connection</varname>
(string)</title>
+ <para>
+ connection for use with rpc query command.
+ </para>
+
+ <para>
+ <emphasis>
+ Default value is <quote>none</quote> (off).
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>default_connection</varname>
parameter</title>
+ <programlisting format="linespecific">
+ ...
+ modparam("db_text", "default_connection",
"text:///var/db/kamailio/dbtext")
+ ...
+ </programlisting>
+ </example>
+ </section>
<section>
<title><varname>emptystring</varname> (integer)</title>
<para>
@@ -329,6 +349,18 @@ modparam("db_text", "file_buffer_size", 8192)
kamcmd db_text.dump
</programlisting>
</section>
+ <section>
+ <title>
+ <function moreinfo="none">db_text.query</function>
+ </title>
+ <para>run sql command</para>
+ <para>Name: <emphasis>db_text.query</emphasis></para>
+ <para>Parameters: <emphasis>sqlcmd</emphasis></para>
+ <para>RPC Command Format:</para>
+ <programlisting format="linespecific">
+ kamcmd db_text.query 'select * from location where
username="xxx"'
+ </programlisting>
+ </section>
</section>
<section>
<title>Installation and Running</title>