Module: kamailio
Branch: master
Commit: f86ea960a5c5a411e19105cb694e48753ae69d9f
URL: https://github.com/kamailio/kamailio/commit/f86ea960a5c5a411e19105cb694e487…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-04-26T07:31:49+02:00
modules: readme files regenerated - enum ... [skip ci]
---
Modified: src/modules/enum/README
---
Diff: https://github.com/kamailio/kamailio/commit/f86ea960a5c5a411e19105cb694e487…
Patch: https://github.com/kamailio/kamailio/commit/f86ea960a5c5a411e19105cb694e487…
---
diff --git a/src/modules/enum/README b/src/modules/enum/README
index fc4451d..8cfd091 100644
--- a/src/modules/enum/README
+++ b/src/modules/enum/README
@@ -27,9 +27,9 @@ Otmar Lendl
4. Functions
- 4.1. enum_query(["suffix"[,"service"]])
- 4.2. enum_pv_query("pvar"[,"suffix"[,"service"]])
- 4.3. i_enum_query(["suffix"[,"service"]])
+ 4.1. enum_query(["suffix" [,"service"]])
+ 4.2. enum_pv_query("pvar" [,"suffix" [,"service"]])
+ 4.3. i_enum_query(["suffix" [,"service"]])
4.4. is_from_user_enum()
List of Examples
@@ -61,9 +61,9 @@ Chapter 1. Admin Guide
4. Functions
- 4.1. enum_query(["suffix"[,"service"]])
- 4.2. enum_pv_query("pvar"[,"suffix"[,"service"]])
- 4.3. i_enum_query(["suffix"[,"service"]])
+ 4.1. enum_query(["suffix" [,"service"]])
+ 4.2. enum_pv_query("pvar" [,"suffix" [,"service"]])
+ 4.3. i_enum_query(["suffix" [,"service"]])
4.4. is_from_user_enum()
1. Overview
@@ -224,12 +224,12 @@ modparam("enum", "bl_algorithm", "txt")
4. Functions
- 4.1. enum_query(["suffix"[,"service"]])
- 4.2. enum_pv_query("pvar"[,"suffix"[,"service"]])
- 4.3. i_enum_query(["suffix"[,"service"]])
+ 4.1. enum_query(["suffix" [,"service"]])
+ 4.2. enum_pv_query("pvar" [,"suffix" [,"service"]])
+ 4.3. i_enum_query(["suffix" [,"service"]])
4.4. is_from_user_enum()
-4.1. enum_query(["suffix"[,"service"]])
+4.1. enum_query(["suffix" [,"service"]])
The function performs an enum query and rewrites the Request-URI with
the result of the query. See Section 1, “Overview” for more
@@ -241,6 +241,8 @@ modparam("enum", "bl_algorithm", "txt")
* service - Service string to be used in the service field. String
may contain pseudo variables.
+ Parameters can include pseudo-variables.
+
This function can be used from REQUEST_ROUTE.
Example 1.8. enum_query usage
@@ -265,11 +267,11 @@ enum_query("e164.arpa.","voice");
enum_query("e164.arpa.","+sip+voice:sip");
...
-4.2. enum_pv_query("pvar"[,"suffix"[,"service"]])
+4.2. enum_pv_query("pvar" [,"suffix" [,"service"]])
- The function performs an enum query on E.164 number stored in its
- pseudo variable argument and rewrites the Request-URI with the result
- of the query. See Section 1, “Overview” for more information.
+ The function performs an enum query on E.164 number stored in its first
+ argument and rewrites the Request-URI with the result of the query. See
+ Section 1, “Overview” for more information.
Meaning of the parameters is as follows:
* pvar - Pseudo variable that holds an E.164 number on which enum
@@ -277,6 +279,8 @@ enum_query("e164.arpa.","+sip+voice:sip");
* suffix - Suffix to be appended to the domain name.
* service - Service string to be used in the service field.
+ Parameters can include pseudo-variables.
+
This function can be used from REQUEST_ROUTE.
Example 1.9. enum_pv_query usage
@@ -301,13 +305,15 @@ enum_pv_query("$avp(i:100)","e164.arpa.","voice");
enum_pv_query("$avp(i:100)","e164.arpa.","+sip+voice:sip");
...
-4.3. i_enum_query(["suffix"[,"service"]])
+4.3. i_enum_query(["suffix" [,"service"]])
The function performs an enum query and rewrites the Request-URI with
the result of the query. This the Infrastructure-ENUM version of
enum_query(). The only difference to enum_query() is in the calculation
of the FQDN where NAPTR records are looked for.
+ Parameters can include pseudo-variables.
+
See
ftp://ftp.rfc-editor.org/in-notes/internet-drafts/draft-haberler-carrie
r-enum-01.txt for the rationale behind this function.
Module: kamailio
Branch: master
Commit: 9abb53d32e02c3adfedbb754082d93ecd62fb146
URL: https://github.com/kamailio/kamailio/commit/9abb53d32e02c3adfedbb754082d93e…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)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/9abb53d32e02c3adfedbb754082d93e…
Patch: https://github.com/kamailio/kamailio/commit/9abb53d32e02c3adfedbb754082d93e…
---
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.