Hi
I am re-using the pres shtable pattern from the RLS module.
I've found that the default size of the hash size is 512 when I think it
should be 9 (2^9=512) (rls.c line 92 in master)
If you do not set the hash size from the config file the code will bit
shift 512 and you will get an overflow.
Am I correct?
Regards
Richard.
This email is subject to the disclaimer of Smile Communications at http://www.smilecoms.com/disclaimer
Hi
I am using the presence module in library mode and have found that even
when in this mode the presence notifier process (default is number of
presence notifier processes is 1) is forked in the child init process.
I think if you are in library mode you should break out before this
process(es) is forked.
I've attached a patch - if everyone is OK I will commit this to master.
Regards
Richard.
This email is subject to the disclaimer of Smile Communications at http://www.smilecoms.com/disclaimer
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#353 - carrierroute not loading with kamailio 4.0.x
User who did this - Pete Ashdown (pashdown)
----------
This is sort of a deal breaker for me. Could be alleviated by the debs for 4.1.x being created.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=353#comment1277
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: 4.1
Commit: ac7d551b29c2ce8e5ba3c668a1dcd8c5abfddfbe
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ac7d551…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 21 10:24:41 2014 +0100
dispatcher: readme regenerated with new sameple config and sections content
---
modules/dispatcher/README | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/modules/dispatcher/README b/modules/dispatcher/README
index edd9801..2357883 100644
--- a/modules/dispatcher/README
+++ b/modules/dispatcher/README
@@ -223,7 +223,7 @@ Chapter 1. Admin Guide
message attributes.
The module can be used as a stateless load balancer, it does not depend
- on any call state tracing module. It requires the TM module if you
+ on any call state tracking module. It requires the TM module if you
enable auto-discovery of active/inactive gateways.
It is very lightweight, therefore suitable for handling heavy SIP
@@ -702,7 +702,14 @@ Note
4.1. ds_select_dst(set, alg)
The method selects a destination from addresses set. It returns true if
- a new destination is set.
+ a new destination is set. The selected address is set to dst_uri field
+ (aka the outbound proxy address or the $du variable), not being visible
+ in the SIP request.
+
+ If the bit 2 in 'flags' parameter is set, the rest of the addresses
+ from the destination set is stored in AVP list. You can use
+ 'ds_next_dst()' to use next address in order to achieve serial forking
+ to all possible destinations.
Meaning of the parameters is as follows:
* set - the id of the set from where to pick up destination address.
@@ -1081,6 +1088,9 @@ r,opt)
# - define WITH_DEBUG
#
+#!ifndef DBURL
+#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
+#!endif
####### Global Parameters #########
@@ -1168,8 +1178,7 @@ modparam("tm", "fr_timer", 2000)
modparam("tm", "fr_inv_timer", 40000)
# ----- dispatcher params -----
-modparam("dispatcher", "db_url",
- "mysql://openser:openserro@localhost/openser")
+modparam("dispatcher", "db_url", DBURL)
modparam("dispatcher", "table_name", "dispatcher")
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
@@ -1228,8 +1237,6 @@ route {
# dispatch destinations
route(DISPATCH);
-
- route(RELAY);
}
@@ -1317,7 +1324,8 @@ route[DISPATCH] {
}
xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
t_on_failure("RTF_DISPATCH");
- return;
+ route(RELAY);
+ exit;
}
# Sample failure route
Module: sip-router
Branch: 4.1
Commit: 7a21f21d2e5d48fa83454a4ed2fa4a9671f9d015
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7a21f21…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 21 10:13:51 2014 +0100
dispatcher: more details on how destination select functions work
(cherry picked from commit f210c266311498393b93d66b41e8c08d89cbc731)
---
modules/dispatcher/doc/dispatcher_admin.xml | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/modules/dispatcher/doc/dispatcher_admin.xml b/modules/dispatcher/doc/dispatcher_admin.xml
index d375fd0..75debec 100644
--- a/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/modules/dispatcher/doc/dispatcher_admin.xml
@@ -24,7 +24,7 @@
</para>
<para>
The module can be used as a stateless load balancer, it does not
- depend on any call state tracing module. It requires the TM module if
+ depend on any call state tracking module. It requires the TM module if
you enable auto-discovery of active/inactive gateways.
</para>
<para>
@@ -741,7 +741,15 @@ modparam("dispatcher", "force_dst", 1)
</title>
<para>
The method selects a destination from addresses set. It returns true if
- a new destination is set.
+ a new destination is set. The selected address is set to dst_uri field
+ (aka the outbound proxy address or the $du variable), not being visible
+ in the SIP request.
+ </para>
+ <para>
+ If the bit 2 in 'flags' parameter is set, the rest of the addresses from
+ the destination set is stored in AVP list. You can use 'ds_next_dst()'
+ to use next address in order to achieve serial forking to all possible
+ destinations.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
@@ -875,7 +883,7 @@ ds_select_dst("1", "$var(a)");
<function moreinfo="none">ds_select_domain(set, alg)</function>
</title>
<para>
- The method selects a destination from addresses set and rewrites the
+ The method selects a destination from addresses set and rewrites the
host and port from R-URI. The parameters have same meaning as for
ds_select_dst().
</para>