Bladeren bron

registrar(s): marked obsoleted params

- removed use_domain (not present since ser 0.9.0)
- marked as removed & obsolete case_sensitive and desc_time_order
- minor fixes
- regenerated README
Andrei Pelinescu-Onciul 15 jaren geleden
bovenliggende
commit
5220222888

+ 29 - 35
modules_s/registrar/README

@@ -21,13 +21,12 @@ Jan Janak
         1.6.3. max_expires (integer)
         1.6.3. max_expires (integer)
         1.6.4. default_q (integer)
         1.6.4. default_q (integer)
         1.6.5. append_branches (integer)
         1.6.5. append_branches (integer)
-        1.6.6. use_domain (integer)
-        1.6.7. case_sensitive (integer)
-        1.6.8. desc_time_order (integer)
-        1.6.9. received_avp (integer)
-        1.6.10. received_param (integer)
-        1.6.11. max_contacts (integer)
-        1.6.12. retry_after (integer)
+        1.6.6. case_sensitive (integer)
+        1.6.7. desc_time_order (integer)
+        1.6.8. received_avp (integer)
+        1.6.9. received_param (integer)
+        1.6.10. max_contacts (integer)
+        1.6.11. retry_after (integer)
 
 
    1.7. Functions
    1.7. Functions
 
 
@@ -193,7 +192,7 @@ b1f-448a-a8be-e29572ea3bee>"
    is the same, although the Contact URI differs. Without the sip instance
    is the same, although the Contact URI differs. Without the sip instance
    this would have created two entries in the usrloc database.
    this would have created two entries in the usrloc database.
 
 
-   Example 3.
+   Example 3. Different Contact with the same sip.instance
 Contact: <sip:[email protected]:2500>;q=1.0;+sip.instance="<urn:uuid:6a66f3bd-5b
 Contact: <sip:[email protected]:2500>;q=1.0;+sip.instance="<urn:uuid:6a66f3bd-5b
 1f-448a-a8be-e29572ea3bee>"
 1f-448a-a8be-e29572ea3bee>"
 
 
@@ -279,32 +278,27 @@ modparam("registrar", "default_q", 100)
 modparam("registrar", "append_branches", 0)
 modparam("registrar", "append_branches", 0)
 ...
 ...
 
 
-1.6.6. use_domain (integer)
+1.6.6. case_sensitive (integer)
 
 
-   If set to 1 then the registrar will use username@domain as address of
-   record. If the variable is set to 0 then only username will be used as
-   the address of record.
-
-   Default value is 0.
-
-   Example 9. Set use_domain parameter
-...
-modparam("registrar", "use_domain", 1)
-...
+Note
 
 
-1.6.7. case_sensitive (integer)
+   This parameter was removed (obsolete since ser 2.0).
 
 
    If set to 1 then AOR comparison will be case sensitive, if set to 0
    If set to 1 then AOR comparison will be case sensitive, if set to 0
    then AOR comparison will be case insensitive--This is recommended.
    then AOR comparison will be case insensitive--This is recommended.
 
 
    Default value is 0.
    Default value is 0.
 
 
-   Example 10. Set case_sensitive parameter
+   Example 9. Set case_sensitive parameter
 ...
 ...
 modparam("registrar", "case_sensitive", 1)
 modparam("registrar", "case_sensitive", 1)
 ...
 ...
 
 
-1.6.8. desc_time_order (integer)
+1.6.7. desc_time_order (integer)
+
+Note
+
+   This parameter was removed (obsolete since ser 2.0).
 
 
    If set to 1 then all contacts will be ordered in descending
    If set to 1 then all contacts will be ordered in descending
    modification time order. In this case the most recently updated/created
    modification time order. In this case the most recently updated/created
@@ -312,12 +306,12 @@ modparam("registrar", "case_sensitive", 1)
 
 
    Default value is 0.
    Default value is 0.
 
 
-   Example 11. Set desc_time_order parameter
+   Example 10. Set desc_time_order parameter
 ...
 ...
 modparam("registrar", "desc_time_order", 1)
 modparam("registrar", "desc_time_order", 1)
 ...
 ...
 
 
-1.6.9. received_avp (integer)
+1.6.8. received_avp (integer)
 
 
    Registrar will store the value of the AVP configured by this parameter
    Registrar will store the value of the AVP configured by this parameter
    in the received column in the user location database. It will leave the
    in the received column in the user location database. It will leave the
@@ -332,24 +326,24 @@ Note
 
 
    Default value is 42.
    Default value is 42.
 
 
-   Example 12. Set received_avp parameter
+   Example 11. Set received_avp parameter
 ...
 ...
 modparam("registrar", "received_avp", 43)
 modparam("registrar", "received_avp", 43)
 ...
 ...
 
 
-1.6.10. received_param (integer)
+1.6.9. received_param (integer)
 
 
    The name of the parameter that will be appended to Contacts of 200 OK
    The name of the parameter that will be appended to Contacts of 200 OK
    when the received URI was set by nathelper module.
    when the received URI was set by nathelper module.
 
 
    Default value is "received".
    Default value is "received".
 
 
-   Example 13. Set received_param parameter
+   Example 12. Set received_param parameter
 ...
 ...
 modparam("registrar", "received_param", "rcv")
 modparam("registrar", "received_param", "rcv")
 ...
 ...
 
 
-1.6.11. max_contacts (integer)
+1.6.10. max_contacts (integer)
 
 
    The parameter can be used to limit the number of contacts per AOR
    The parameter can be used to limit the number of contacts per AOR
    (Address of Record) in the user location database. Value 0 disables the
    (Address of Record) in the user location database. Value 0 disables the
@@ -357,13 +351,13 @@ modparam("registrar", "received_param", "rcv")
 
 
    Default value is 0.
    Default value is 0.
 
 
-   Example 14. Set max_contacts parameter
+   Example 13. Set max_contacts parameter
 ...
 ...
 # Allow no more than 10 contacts per AOR
 # Allow no more than 10 contacts per AOR
 modparam("registrar", "max_contacts", 10)
 modparam("registrar", "max_contacts", 10)
 ...
 ...
 
 
-1.6.12. retry_after (integer)
+1.6.11. retry_after (integer)
 
 
    The registrar can generate 5xx reply to REGISTER in various situations.
    The registrar can generate 5xx reply to REGISTER in various situations.
    It can, for example, happen when the max_contacts parameter is set and
    It can, for example, happen when the max_contacts parameter is set and
@@ -376,7 +370,7 @@ modparam("registrar", "max_contacts", 10)
 
 
    Default value is 0 (disabled).
    Default value is 0 (disabled).
 
 
-   Example 15. Set retry_after parameter
+   Example 14. Set retry_after parameter
 ...
 ...
 modparam("registrar", "retry_after", 30)
 modparam("registrar", "retry_after", 30)
 ...
 ...
@@ -398,7 +392,7 @@ modparam("registrar", "retry_after", 30)
      * domain - Logical domain within registrar. If database is used then
      * domain - Logical domain within registrar. If database is used then
        this must be name of the table which stores the contacts.
        this must be name of the table which stores the contacts.
 
 
-   Example 16. save usage
+   Example 15. save usage
 ...
 ...
 save("location");
 save("location");
 ...
 ...
@@ -411,7 +405,7 @@ save("location");
      * domain - Logical domain within registrar. If database is used then
      * domain - Logical domain within registrar. If database is used then
        this must be na e of the table which stores the contacts.
        this must be na e of the table which stores the contacts.
 
 
-   Example 17. save_noreply usage
+   Example 16. save_noreply usage
 ...
 ...
 save_noreply("location");
 save_noreply("location");
 ...
 ...
@@ -428,7 +422,7 @@ save_noreply("location");
    Meaning of the parameters is as follows:
    Meaning of the parameters is as follows:
      * domain - Name of table that should be used for the lookup.
      * domain - Name of table that should be used for the lookup.
 
 
-   Example 18. lookup usage
+   Example 17. lookup usage
 ...
 ...
 lookup("location");
 lookup("location");
 ...
 ...
@@ -443,7 +437,7 @@ lookup("location");
    Meaning of the parameters is as follows:
    Meaning of the parameters is as follows:
      * domain - Name of table that should be used for the lookup.
      * domain - Name of table that should be used for the lookup.
 
 
-   Example 19. registered usage
+   Example 18. registered usage
 ...
 ...
 if (registered("location")) {
 if (registered("location")) {
     sl_send_reply("100", "Trying");
     sl_send_reply("100", "Trying");

+ 8 - 1
modules_s/registrar/doc/functions.xml

@@ -1,6 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
-   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+	"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
+	[ <!ENTITY % local.common.attrib
+	 "xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'">
+	 <!-- Include general documentation entities -->
+	 <!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
+	 %docentities;
+	]
+>
 
 
 <section id="registrar.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
 <section id="registrar.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
     <sectioninfo>
     <sectioninfo>

+ 14 - 21
modules_s/registrar/doc/params.xml

@@ -1,6 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
-   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+	"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
+	[ <!ENTITY % local.common.attrib
+	 "xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'">
+	 <!-- Include general documentation entities -->
+	 <!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
+	 %docentities;
+	]
+>
 
 
 <section id="registrar.parameters" xmlns:xi="http://www.w3.org/2001/XInclude">
 <section id="registrar.parameters" xmlns:xi="http://www.w3.org/2001/XInclude">
     <sectioninfo>
     <sectioninfo>
@@ -122,28 +129,11 @@ modparam("registrar", "append_branches", 0)
 	</example>
 	</example>
     </section>
     </section>
 
 
-    <section id="registrar.use_domain">
-	<title><varname>use_domain</varname> (integer)</title>
-	<para>
-	    If set to 1 then the registrar will use username@domain as address
-	    of record. If the variable is set to 0 then only username will be
-	    used as the address of record.
-	</para>
-	<para>
-	    Default value is 0.
-	</para>
-	<example>
-	    <title>Set <varname>use_domain</varname> parameter</title>
-	    <programlisting>
-...
-modparam("registrar", "use_domain", 1)
-...
-	    </programlisting>
-	</example>
-    </section>
-
     <section id="case_sensitive">
     <section id="case_sensitive">
 	<title><varname>case_sensitive</varname> (integer)</title>
 	<title><varname>case_sensitive</varname> (integer)</title>
+	<note><para>
+		This parameter was removed (obsolete since ser 2.0).
+	</para></note>
 	<para>
 	<para>
 	    If set to 1 then <acronym>AOR</acronym> comparison will be case
 	    If set to 1 then <acronym>AOR</acronym> comparison will be case
 	    sensitive, if set to 0 then <acronym>AOR</acronym> comparison will
 	    sensitive, if set to 0 then <acronym>AOR</acronym> comparison will
@@ -164,6 +154,9 @@ modparam("registrar", "case_sensitive", 1)
 
 
     <section id="desc_time_order">
     <section id="desc_time_order">
 	<title><varname>desc_time_order</varname> (integer)</title>
 	<title><varname>desc_time_order</varname> (integer)</title>
+	<note><para>
+		This parameter was removed (obsolete since ser 2.0).
+	</para></note>
 	<para>
 	<para>
 	    If set to 1 then all contacts will be ordered in descending
 	    If set to 1 then all contacts will be ordered in descending
 	    modification time order. In this case the most recently
 	    modification time order. In this case the most recently

+ 9 - 1
modules_s/registrar/doc/registrar.xml

@@ -1,6 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
-   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+	"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
+	[ <!ENTITY % local.common.attrib
+	 "xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'">
+	 <!-- Include general documentation entities -->
+	 <!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
+	 %docentities;
+	]
+>
 
 
 <section id="registrar" xmlns:xi="http://www.w3.org/2001/XInclude">
 <section id="registrar" xmlns:xi="http://www.w3.org/2001/XInclude">
     <sectioninfo>
     <sectioninfo>
@@ -247,6 +254,7 @@ Contact: <sip:[email protected]:2532>;q=1.0;+sip.instance="<urn:uuid:6a66f3bd-5
 		entries in the usrloc database.
 		entries in the usrloc database.
 	</para>
 	</para>
 	<example>
 	<example>
+		<title>Different Contact with the same sip.instance</title>
 		<programlisting>
 		<programlisting>
 <![CDATA[
 <![CDATA[
 Contact: <sip:[email protected]:2500>;q=1.0;+sip.instance="<urn:uuid:6a66f3bd-5b1f-448a-a8be-e29572ea3bee>"]]>
 Contact: <sip:[email protected]:2500>;q=1.0;+sip.instance="<urn:uuid:6a66f3bd-5b1f-448a-a8be-e29572ea3bee>"]]>