[sr-dev] git:master:9abb53d3: modules: readme files regenerated - domain ... [skip ci]

Kamailio Dev kamailio.dev at kamailio.org
Tue Apr 25 18:31:31 CEST 2017


Module: kamailio
Branch: master
Commit: 9abb53d32e02c3adfedbb754082d93ecd62fb146
URL: https://github.com/kamailio/kamailio/commit/9abb53d32e02c3adfedbb754082d93ecd62fb146

Author: Kamailio Dev <kamailio.dev at kamailio.org>
Committer: Kamailio Dev <kamailio.dev at kamailio.org>
Date: 2017-04-25T18:31:21+02:00

modules: readme files regenerated - domain ... [skip ci]

---

Modified: src/modules/domain/README

---

Diff:  https://github.com/kamailio/kamailio/commit/9abb53d32e02c3adfedbb754082d93ecd62fb146.diff
Patch: https://github.com/kamailio/kamailio/commit/9abb53d32e02c3adfedbb754082d93ecd62fb146.patch

---

diff --git a/src/modules/domain/README b/src/modules/domain/README
index dee89d0..1cbd365 100644
--- a/src/modules/domain/README
+++ b/src/modules/domain/README
@@ -35,8 +35,8 @@ Juha Heinanen
 
               4.1. is_from_local()
               4.2. is_uri_host_local()
-              4.3. is_domain_local(pseudo_variable)
-              4.4. lookup_domain(domain[, prefix])
+              4.3. is_domain_local(domain)
+              4.4. lookup_domain(domain [, prefix])
 
         5. RPC Commands
 
@@ -89,8 +89,8 @@ Chapter 1. Admin Guide
 
         4.1. is_from_local()
         4.2. is_uri_host_local()
-        4.3. is_domain_local(pseudo_variable)
-        4.4. lookup_domain(domain[, prefix])
+        4.3. is_domain_local(domain)
+        4.4. lookup_domain(domain [, prefix])
 
    5. RPC Commands
 
@@ -223,8 +223,8 @@ modparam("domain", "register_myself", 1)
 
    4.1. is_from_local()
    4.2. is_uri_host_local()
-   4.3. is_domain_local(pseudo_variable)
-   4.4. lookup_domain(domain[, prefix])
+   4.3. is_domain_local(domain)
+   4.4. lookup_domain(domain [, prefix])
 
 4.1. is_from_local()
 
@@ -259,10 +259,10 @@ if (is_uri_host_local()) {
 };
 ...
 
-4.3. is_domain_local(pseudo_variable)
+4.3. is_domain_local(domain)
 
-   This function checks if the domain contained in the pseudo_variable is
-   local.
+   This function checks if the domain contained in the parameter is local.
+   The parameter can be a static string or contain pseduo-variables.
 
    This function is a generalized form of the is_from_local() and
    is_uri_host_local() functions, being able to completely replace them
@@ -278,28 +278,33 @@ if (is_uri_host_local()) {
 ...
 if (is_domain_local("$rd")) {
         ...
-};
+}
+if (is_domain_local("my.domain.com")) {
+        ...
+}
 if (is_domain_local("$fd")) {
         ...
-};
+}
 if (is_domain_local("$avp(some_avp_alias)")) {
         ...
-};
+}
 if (is_domain_local("$avp(i:850)")) {
         ...
-};
+}
 if (is_domain_local("$avp(s:some_avp)")) {
         ...
-};
+}
 ...
 
-4.4. lookup_domain(domain[, prefix])
+4.4. lookup_domain(domain [, prefix])
+
+   This function checks if domain given in domain argument is local and,
+   if so, adds attributes associated with domain's id (did) to AVPs. If
+   prefix argument (string) is given, names of attributes are prefixes by
+   it. In addition to attributes given in domain_attrs table, AVP named
+   did containing the did of domain is added.
 
-   This function checks if domain given in domain argument (pseudo
-   variable) is local and, if so, adds attributes associated with domain's
-   id (did) to AVPs. If prefix argument (string) is given, names of
-   attributes are prefixes by it. In addition to attributes given in
-   domain_attrs table, AVP did containing did of domain is added.
+   Both parameters can contain pseudo-variables.
 
    This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
    BRANCH_ROUTE, and LOCAL_ROUTE.




More information about the sr-dev mailing list