Re: [SR-Users] kamcmd permissions problem

2015-06-10 Thread Daniel-Constantin Mierla
Hello, it is a permission issues to write to tmp/kamailio_ctl (or ser_ctl in 3.x versions). You can tune them via mod params of ctl module, see: - http://kamailio.org/docs/modules/4.2.x/modules/ctl.html#mode Cheers, Daniel On 09/06/15 15:37, Uri Shacked wrote: > Hi, > > I am using exec_avp() co

Re: [SR-Users] several uac_replace_from in one dialog

2015-06-10 Thread Daniel-Constantin Mierla
Hello, the changes to headers/body of sip messages are not applied immediately, see: - http://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or In your case, you can use msg_apply_changes() before the second uac_replace_from(). A better option is to use branch_route and do

Re: [SR-Users] Releasing Kamailio v4.3.0

2015-06-10 Thread Daniel-Constantin Mierla
Hello, the release will be out later today -- write to sr-dev if new commits are wanted into branch 4.3, do not push them directly before the announcement of the release is sent. Cheers, Daniel On 09/06/15 10:23, Daniel-Constantin Mierla wrote: > Hello, > > short note to remind about upcoming re

Re: [SR-Users] problem with dispatcher load balancing

2015-06-10 Thread Daniel-Constantin Mierla
Hello, what version of kamailio are you using? Cheers, Daniel On 09/06/15 20:51, Ding Ma wrote: > I'm trying to set up kamailio dispatcher to distribute calls to 2 > asterisk servers. So far, the failover case seems ok, but I cannot get > the dispatcher to distribute load. All calls are going to

[SR-Users] siremis with postgres

2015-06-10 Thread Tomas Zanet
Hi all, I need to install Kamailio, and Siremis as well, with Postgres backend. My current versions are the following: - Kamailio 4.2.1 - Siremis 4.2.0 - PHP 5.3.10-1ubuntu3.18 - postgres 9.1.3 To do so, I installed libpq-dev and compiled Kamailio with db_postgres module. After that, I create t

[SR-Users] WARNING: tm [t_lookup.c:1537]: t_unref(): WARNING: script writer didn't release transaction

2015-06-10 Thread Roberto Fichera
Hi All, I'm getting the warning in the subject after replacing a route() with a async_task_route(). In the called route() I'm doing some db query and send notify messages using the uac module. The async_task_route() is called once received a register message. Any idea what's is going on? Cheer

[SR-Users] Kamailio v4.3.0 Released - new major version is out

2015-06-10 Thread Daniel-Constantin Mierla
Kamailio v4.3.0 is out – a new major release, bringing more features, flexibility and improvements. You can read detailed release notes at: * http://www.kamailio.org/w/kamailio-v4-3-0-release-notes/ Many thanks to all developers and community members that made possible this release. Enjoy Kam

Re: [SR-Users] problem with dispatcher load balancing

2015-06-10 Thread Ding Ma
We're running kamailio 4.2.3. Are there any changes to dispatcher in 4.2.x? Thanks, # kamailio -V version: kamailio 4.2.3 (x86_64/linux) 5596bd flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLO

[SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Hello, I'm using LCR module where I have 44 million rules and 13 million rule targets (not all rules have destinations). Noting that I'm running Ubuntu on virtual machine with 8GB allocated memory. When I'm setting lcr_rule_hash_size parameter to 268435456 (2 power 28) I got the following err

Re: [SR-Users] siremis with postgres

2015-06-10 Thread Daniel-Constantin Mierla
Hello, can you look into Config.xml located inside siremis subfolder and see the values for database username and password? Cheers, Daniel On 10/06/15 14:59, Tomas Zanet wrote: > Hi all, > I need to install Kamailio, and Siremis as well, with Postgres backend. My > current versions are the foll

Re: [SR-Users] problem with dispatcher load balancing

2015-06-10 Thread Daniel-Constantin Mierla
It was a fix for maxload during 4.2.x, but don't recall exactly when was backported. Can you upgrade to latest 4.2.x and see the results? Your config file and database don't require any change, only deploy the binaries for latest 4.2.x and restart. If the issue is still there with latest 4.2.x, re

[SR-Users] R: siremis with postgres

2015-06-10 Thread Tomas Zanet
Here it is: Thanks, T. Tomas Zanet Software Design Department tza...@came.com CAME S.p.A. -Messaggio originale- Da: sr-users [mailto:sr-users-boun...@lists.sip-router.org] Per conto di Daniel-Constantin Mierla Inviato: mercoledì 10 giugno 2015 16:59 A: Kamai

[SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Juha Heinanen
Ali Taher writes: > I'm using LCR module where I have 44 million rules and 13 million rule > targets (not all rules have destinations). > When I'm setting lcr_rule_hash_size parameter to 268435456 (2 power 28) I > got the following error : "no memory for rules hash table" in the log it makes no

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Hi Juha, Can you please tell me what memory should be allocated to handle 44 million rules. Thanks, Ali -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Juha Heinanen Sent: Wednesday, June 10, 2015 6:13 PM To: Kamailio (SER) - Users Mailing L

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 11:33 AM, Ali Taher wrote: Can you please tell me what memory should be allocated to handle 44 million rules. How much memory, or how many hash buckets? -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Hi Alex, I don't know a lot about hash tables , and how hash buckets and memory are related. I just need to know the specs needed for a server in order to be able to handle 44 million or rules using LCR module , and what configuration (parameters) should be applied. Thanks, Ali -Original Mes

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Juha Heinanen
Ali Taher writes: > I just need to know the specs needed for a server in order to be able to > handle 44 million or rules using LCR module , and what configuration > (parameters) should be applied. I have already answered this. Calculate from lcr_mod.h rule_info struct how much memory one rule r

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 11:48 AM, Ali Taher wrote: Hi Alex, I don't know a lot about hash tables , and how hash buckets and memory are related. I just need to know the specs needed for a server in order to be able to handle 44 million or rules using LCR module , and what configuration (parameters) should

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Thanks Alex, So what memory should be allocated to handle 67m buckets ? Is there any documentation for hash tables for kamailio? Ali Sent from my iPhone > On Jun 10, 2015, at 6:52 PM, Alex Balashov wrote: > >> On 06/10/2015 11:48 AM, Ali Taher wrote: >> >> Hi Alex, >> >> I don't know a lot

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 12:00 PM, Ali Taher wrote: Is there any documentation for hash tables for kamailio? http://en.wikipedia.org/wiki/Hash_table -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free)

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 12:00 PM, Ali Taher wrote: So what memory should be allocated to handle 67m buckets ? A better question would be: why do you want to store 44m rules in memory? That's a lot of rules. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atla

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
This is the number of rules generated from our system for LCR routing (we are dealing with transit traffic) Ali Sent from my iPhone > On Jun 10, 2015, at 7:10 PM, Alex Balashov wrote: > >> On 06/10/2015 12:00 PM, Ali Taher wrote: >> >> So what memory should be allocated to handle 67m buckets

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 12:44 PM, Ali Taher wrote: This is the number of rules generated from our system for LCR routing (we are dealing with transit traffic) Indeed, but if you have a system of that size and complexity, I would encourage you to consider an LCR approach that does not rely on having th

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Juha Heinanen
Ali Taher writes: > This is the number of rules generated from our system for LCR routing > (we are dealing with transit traffic). i wonder how it is possible to have so many distinct e.164 prefixes for transit unless you need to deal with individual subscriber numbers. if you deal with subscrib

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 12:52 PM, Juha Heinanen wrote: i wonder how it is possible to have so many distinct e.164 prefixes for transit unless you need to deal with individual subscriber numbers. It's quite possible for folks who run dialler traffic[1], at least in the US. The reasons are: - Most rate

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Hi Alex, What do you mean by "consider an LCR approach that does not rely on having the entire data set in memory, but instead utilises an efficient, lightweight, but still database-bound query approach." Can I configure kamailio to read directly from the database without setting them in the m

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 03:53 PM, Ali Taher wrote: Can I configure kamailio to read directly from the database without setting them in the memory? Sure... http://kamailio.org/docs/modules/4.3.x/modules/sqlops.html -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 30

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
The case mentioned is exactly our case where we deal with class 4, wholesale carriers with many vendors; just as explained in the provided short duration dialer video where we are using Kamailio lcr as redirect server. Hence, what can we do in order to afford such Huge number of rules? How did

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 04:30 PM, Ali Taher wrote: How did your customer handle 137 million using kamailio lcr? Database query to PostgreSQL. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 (toll-free) / +

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 04:30 PM, Ali Taher wrote: How did your customer handle 137 million using kamailio lcr? I suppose I should clarify; they did not use Kamailio's lcr module. As I said earlier, I don't think the Kamailio lcr module is appropriate for such a case. -- Alex Balashov | Principal

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Ali Taher
Thanks Alex you saved my life! will check and try to implement this module Ali Sent from my iPhone > On Jun 10, 2015, at 10:55 PM, Alex Balashov wrote: > >> On 06/10/2015 03:53 PM, Ali Taher wrote: >> >> Can I configure kamailio to read directly from the database without >> setting them in the

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Abdul Hakeem
Hi Alex, What do you recommend for such giant 137 million routes or entries ? Cheers, Abdul Hakeem -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, June 10, 2015 9:41 PM To: sr-users@lists.sip-router.org Subject:

Re: [SR-Users] Kamailio LCR module memory concern

2015-06-10 Thread Alex Balashov
On 06/10/2015 05:13 PM, Abdul Hakeem wrote: What do you recommend for such giant 137 million routes or entries ? The same that anyone would recommend for any application that aims to store 137 million rows of anything: a relational database, queried manually from Kamailio route script using