1. Peter Gradwell
  2. opensips-clone

Commits

vlad...@689a6050-402a-0410-94f2-e92a70836424  committed 701c906 Draft

- fixed bug where table name length would not be updated
- documented the db_table parameter
- documented the replication_mode parameter

  • Participants
  • Parent commits 5430438
  • Branches default

Comments (0)

Files changed (3)

File modules/b2b_entities/README

View file
    Vamanu
    Revision History
    Revision $Revision: 8103 $ $Date: 2011-06-30 18:48:57 +0300
-                              (Jo, 30 iun 2011) $
+                              (Thu, 30 Jun 2011) $
      __________________________________________________________
 
    Table of Contents
               1.3.6. update_period (int)
               1.3.7. b2b_key_prefix (string)
               1.3.8. db_mode (int)
+              1.3.9. db_table (str)
+              1.3.10. replication_mode (int)
 
         1.4. Exported Functions
 
    1.6. Set update_period parameter
    1.7. Set b2b_key_prefix parameter
    1.8. Set db_mode parameter
+   1.9. Set db_table parameter
+   1.10. Set replication_mode parameter
    2.1. b2b_api_t structure
 
 Chapter 1. Admin Guide
 modparam("b2b_entities", "db_mode", 1)
 ...
 
+1.3.9. db_table (str)
+
+   The name of the table that will be used for storing B2B
+   entities
+
+   Default value is “b2b_entities”
+
+   Example 1.9. Set db_table parameter
+...
+modparam("b2b_entities", "db_table", "some table name")
+...
+
+1.3.10. replication_mode (int)
+
+   Controls if the callid should be the same in more instances
+   running at the same time. 0 will lead to generating of
+   different callid's per instance 1 will lead to generating of
+   the same callid's in more instances
+
+   Default value is “0”
+
+   Example 1.10. Set replication_mode parameter
+...
+modparam("b2b_entities", "replication_mode", 1)
+...
+
 1.4. Exported Functions
 
    The module does not export functions to be used in

File modules/b2b_entities/b2b_entities.c

View file
 	{ "script_reply_route",    STR_PARAM,    &script_reply_route },
 	{ "replication_mode",      INT_PARAM,    &replication_mode   },
 	{ "db_url",                STR_PARAM,    &db_url.s           },
-	{ "b2be_dbtable",          STR_PARAM,    &b2be_dbtable.s     },
+	{ "db_table",              STR_PARAM,    &b2be_dbtable.s     },
 	{ "db_mode",               INT_PARAM,    &b2be_db_mode       },
 	{ "update_period",         INT_PARAM,    &b2b_update_period  },
 	{ "b2b_key_prefix",        STR_PARAM,    &b2b_key_prefix.s   },
 	if(b2be_db_mode && db_url.s)
 	{
 		db_url.len = strlen(db_url.s);
+		b2be_dbtable.len = strlen(b2be_dbtable.s);
 
 		/* binding to database module  */
 		if (db_bind_mod(&db_url, &b2be_dbf))

File modules/b2b_entities/doc/b2b_entities_admin.xml

View file
 		</example>
 	</section>
 
+	<section>
+		<title><varname>db_table</varname> (str)</title>
+		<para>
+			The name of the table that will be used for storing B2B entities
+		</para>
+		<para>
+		<emphasis>Default value is <quote>b2b_entities</quote></emphasis>
+		</para>
+		<example>
+		<title>Set <varname>db_table</varname> parameter</title>
+		<programlisting format="linespecific">
+...
+modparam("b2b_entities", "db_table", "some table name")
+...
+	</programlisting>
+		</example>
+	</section>
+
+	<section>
+		<title><varname>replication_mode</varname> (int)</title>
+		<para>
+			Controls if the callid should be the same in more instances running at the same time.
+			0 will lead to generating of different callid's per instance
+			1 will lead to generating of the same callid's in more instances
+		</para>
+		<para>
+		<emphasis>Default value is <quote>0</quote></emphasis>
+		</para>
+		<example>
+		<title>Set <varname>replication_mode</varname> parameter</title>
+		<programlisting format="linespecific">
+...
+modparam("b2b_entities", "replication_mode", 1)
+...
+	</programlisting>
+		</example>
+	</section>
+
 </section>