Browse code

p_usrloc: updated documentation

Updated documentation in p_usrloc module for parameters db_ops_ruid and db_update_as_insert.

Patric Marschall authored on 16/06/2015 13:34:28
Showing 1 changed files
... ...
@@ -539,7 +539,7 @@ modparam("p_usrloc", "connection_expires", "300")
539 539
 	    </para>
540 540
 	    <example>
541 541
 		<title>Set <varname>alg_location</varname> parameter</title>
542
-		<programlisting format="linespecific">
542
+			<programlisting format="linespecific">
543 543
 ...
544 544
 modparam("p_usrloc", "alg_location", 1)
545 545
 ...
... ...
@@ -584,7 +584,53 @@ modparam("p_usrloc", "default_db_type", "cluster")
584 584
 </programlisting>
585 585
 	    </example>
586 586
 	</section>
587
+
588
+	<section>
589
+	<title><varname>db_ops_ruid</varname> (int)</title>
590
+	<para>
591
+		If set to 1, database queries for update or delete are done using
592
+		ruid value. If it is set to 0, the old style using aor, contact and
593
+		call-id is done.
594
+	</para>
595
+	<para>
596
+	<emphasis>
597
+		Default value is <quote>1</quote>.
598
+	</emphasis>
599
+	</para>
600
+	<example>
601
+	<title>Set <varname>db_ops_ruid</varname> parameter</title>
602
+	<programlisting format="linespecific">
603
+...
604
+modparam("p_usrloc", "db_ops_ruid", 0)
605
+...
606
+    </programlisting>
607
+    </example>
608
+	</section>
609
+    
610
+    <section>
611
+        <title><varname>db_update_as_insert</varname> (string)</title>
612
+        <para>
613
+                Set this parameter if you want to do INSERT DB operations
614
+                instead of UPDATE DB operations. It is recommended to set this parameter
615
+                if you use Cassandra as a DB backend.
616
+        </para>
617
+        <para>
618
+        <emphasis>
619
+             Default value is <quote>0</quote>.
620
+        </emphasis>
621
+	</para>
622
+	<example>
623
+	<title>Set <varname>db_update_as_insert</varname> parameter</title>
624
+<programlisting format="linespecific">
625
+...
626
+modparam("usrloc", "db_update_as_insert", 1)
627
+...
628
+</programlisting>
629
+    </example>
587 630
     </section>
631
+
632
+    </section>
633
+
588 634
     	<section>
589 635
 		<title><varname>default_db_url</varname>(str)</title>
590 636
 		<para>
... ...
@@ -647,7 +693,9 @@ modparam("p_usrloc", "db_mode", 2)
647 647
 	<title><varname>db_url</varname></title> <para> This parameters is now obsolete, and replaced by specific p_usrloc parameters</para>
648 648
 	</section>
649 649
     </section>
650
-    <section>
650
+  
651
+
652
+    <section>	    
651 653
 	<title>Installation &amp; Running</title>
652 654
 	<section>
653 655
 	<title>Database setup</title>