Module: kamailio
Branch: master
Commit: 77f4cea8df15920f33f0f017c7303d2306aeee83
URL: https://github.com/kamailio/kamailio/commit/77f4cea8df15920f33f0f017c7303d2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-25T18:12:36+02:00
domain: clarifications about string parameters in the docs
---
Modified: src/modules/domain/doc/domain_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/77f4cea8df15920f33f0f017c7303d2…
Patch: https://github.com/kamailio/kamailio/commit/77f4cea8df15920f33f0f017c7303d2…
---
diff --git a/src/modules/domain/doc/domain_admin.xml b/src/modules/domain/doc/domain_admin.xml
index c0c99bd..561fb92 100644
--- a/src/modules/domain/doc/domain_admin.xml
+++ b/src/modules/domain/doc/domain_admin.xml
@@ -247,17 +247,18 @@ if (is_uri_host_local()) {
</example>
</section>
<section id="domain.f.is_domain_local">
- <title><function moreinfo="none">is_domain_local(pseudo_variable)</function></title>
+ <title><function moreinfo="none">is_domain_local(domain)</function></title>
<para>
This function checks if the domain contained in the
- pseudo_variable is local.
+ parameter is local. The parameter can be a static string or contain
+ pseduo-variables.
</para>
<para>
This function is a generalized form of the is_from_local()
and is_uri_host_local() functions, being able to completely
replace them and also extends them by allowing the domain to
be taken from any of the above mentioned sources.
- The following equivalences exist:
+ The following equivalences exist:
</para>
<itemizedlist>
<listitem><para>
@@ -277,33 +278,37 @@ 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)")) {
...
-};
+}
...
</programlisting>
</example>
</section>
<section id="domain.f.lookup_domain">
- <title><function moreinfo="none">lookup_domain(domain[, prefix])</function></title>
- <para>
- 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.
+ <title><function moreinfo="none">lookup_domain(domain [, prefix])</function></title>
+ <para>
+ 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.
+ </para>
+ <para>
+ Both parameters can contain pseudo-variables.
</para>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
### Description
Config file has parameter "shm_mem_size" (or "shm" or "shm_mem") which allows to set shared memory size (in Mb) via configuration file. This parameter worked well in 3.1.5. Now it does not work (4.4.2). Shared memory size is always 64Mb (default value). The only way to set another size is to use "-m" command line option.
#### Reproduction
- Set shm_mem_size=512 in configuration file
- Start kamailio and check size of shared memory using "kamcmd core.shmmem"
- Expected result: total size of shared memory should be 512 Mb (in bytes)
- Actual result: 64Mb
### Possible Solutions
A workaround is to use "-m" command line option to send shared memeory size.
### Additional Information
version: kamailio 4.4.3 (x86_64/linux) 5a2195
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 5a2195
compiled on 13:41:22 Sep 27 2016 with gcc 4.4.7
OS: CentOS 6.8 (kernel 2.6.32-642.4.2.el6.x86_64)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/950