Re: [SR-Users] kamailio does not start with db_mongdb and usrloc

2018-02-23 Thread Daniel-Constantin Mierla
Hello, I don't know if you can see the result sent back by mongodb in its logs, it doesn't show it there. Maybe you can sniff the traffic on the network and see if mongodb sends the proper response back. Kamailio logs like nothing was retrieved. Cheers, Daniel On 22.02.18 18:02, Stephane Focant

Re: [SR-Users] Kamailio ims with TCP

2018-02-23 Thread Daniel-Constantin Mierla
Hello, have you look at syslog messages? Are there any errors? Between Kamailio instances, tcp for sip should work. Check also configs to be sure UDP is not enforced there. Cheers, Daniel On 22.02.18 12:40, Amar Tinawi wrote: > Hello list  > > For some reason i couldn't register on kamailio ims

Re: [SR-Users] kamailio does not start with db_mongdb and usrloc

2018-02-23 Thread Stephane
Hello Daniel, I took a pcap trace. And I see the following in the answer sent by mongo Failed to parse: { find: "version", filter: { table_name: "location" }, table_version: 1, $db: "kamailio", $readPreference: { mode: "primaryPreferred" }, $clusterTime: { clusterTime: Timestamp(1519379980, 1), s

Re: [SR-Users] Using the db_redis module for integration with usrloc

2018-02-23 Thread Lucian Balaceanu
Hello, Just a quick note to say that I debugged the issue down to having the MULTIDOMAIN set to 0 and as such most probably the "&usrdom:username,domain" should have been in my case just "&usrdom:username". Also if parsing of a field in redis comes out as having errors, just tweak the type of

[SR-Users] Strongswan on same Server in EC2 as kamailio 4.4

2018-02-23 Thread Jonathan Hunter
Hi Guys, I have an issue with sending a BYE message back down a strongswan VPN tunnel on a server in the Amazon EC2 environment. To get the configuration working correctly I have the Public IP address bound to a loopback virtual interface, and I also have kamailio listening to it. Calls estab

Re: [SR-Users] RFC: db_redisusrloc module - review and how to deal with

2018-02-23 Thread Julien Chavanton
Hi, just sharing my experience from last year while adding some features to db_postgres and db_sqlite On Wed, Feb 21, 2018 at 1:33 AM, Daniel-Constantin Mierla wrote: > Hello, > > (cross-posting being something I want to get developers and users > express their opinions). > > We were recently in

[SR-Users] Kamailio json_rpc isn't reloading htable data from database into memory

2018-02-23 Thread José Seabra
Hello there, I'm using xHTTP and json_rpc module to receive http instructions to reload htable's from database to memory. The way i'm calling the json_rpc in kamailio script is the following: $var(json_rpc)='{"jsonrpc": "2.0", "method": "htable.reload", "id":"htable"}';

Re: [SR-Users] rtpengine codecs transcoding: performance

2018-02-23 Thread Jeff Brower
Abdoul- > Is there a study comparing the performance (quality and cpu/ram > consumption) of codecs transcoding between rtpengine and > asterisk/freeswith? Is rtpengine more efficient? Can you specify which codec and number of concurrent channels (capacity) ? For older non-complex codecs (G726,

[SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Cody Herzog
Hello. I'm curious as to how SIP messages received over TLS are divided amongst the available TCP workers. Based on some searching, I was hoping and expecting that the messages would be load balanced amongst the TCP workers at the level of individual SIP messages. However, with my configuratio

[SR-Users] Load-balance on 2 proxies

2018-02-23 Thread David Villasmil
Hello guys, I hava a setup where there are 2 kamailios in active-active connected to the same db (no registration yet). They both forward requests load balancing to several freeswitches. My question is, is the load balance algorithm independent on the 2 servers, or do they act as 1 load balancing

Re: [SR-Users] Load-balance on 2 proxies

2018-02-23 Thread Alex Balashov
Dispatcher does not synchronise state across multiple Kamailio instances, no. But there are of course ways to accomplish that manually, if you have a high level of spiritual commitment to this. The various load-based features can also be used to achieve this to some degree without keeping any state

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Alex Balashov
Hi, As with UDP workers, the kernel divides incoming TCP in a semi-random way at a trough of TCP workers all calling accept(). So, the distribution is indeed at the connection level rather than the message level, and so long as the connection persists, messages go to the same worker. In theory, a

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Brandon Armstead
Cody, Kamailio should receive from normal TCP / Kernel stack handoff - you may be able to do some tuning with sysctl - however one alternate suggestion that could help spread load on actual Kamailio TCP workers is by firing up additional workers on alternate ports but this still would not ensu

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Cody Herzog
Thanks very much for the quick replies, Alex and Brandon. The main reason I'm hitting a bottleneck is because my architecture is not optimal. I have a number of edge proxies which communicate with all my clients. The clients are usually distributed pretty evenly across all the proxies. On those

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Alex Balashov
A common design which avoids this is to use TCP at the client edge and UDP inside the network core. This is one of the reasons why TCP is not optimal for use inside the core. -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.e

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Cody Herzog
>A common design which avoids this is to use TCP at the client edge and >UDP inside the network core. This is one of the reasons why TCP is not >optimal for use inside the core. That makes sense, but is unfortunately not an option for me due to strict security requirements. I need to use TLS on t

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Alex Balashov
On Fri, Feb 23, 2018 at 07:17:48PM +, Cody Herzog wrote: > That makes sense, but is unfortunately not an option for me due to > strict security requirements. I need to use TLS on the whole path. Personally, I would work around that requirement, either by using a compliant private backplane/b

Re: [SR-Users] Load-balance on 2 proxies

2018-02-23 Thread David Villasmil
Thanks for you reply. How would you recommend this? On Fri, Feb 23, 2018, 19:08 Alex Balashov wrote: > Dispatcher does not synchronise state across multiple Kamailio > instances, no. But there are of course ways to accomplish that manually, > if you have a high level of spiritual commitment to

Re: [SR-Users] Load-balance on 2 proxies

2018-02-23 Thread Alex Balashov
My first question would be: why is the status quo a problem? On February 23, 2018 3:39:10 PM EST, David Villasmil wrote: >Thanks for you reply. > >How would you recommend this? > >On Fri, Feb 23, 2018, 19:08 Alex Balashov >wrote: > >> Dispatcher does not synchronise state across multiple Kamai

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Cody Herzog
Thanks. Regarding UDP, that all makes sense. For my short-term needs, to minimize risk and infrastructure changes, it looks like the ASYNC module will work. Here's the basic outline of what I'm doing: async_workers=8 route { route(CHECK_IS_EXPENSIVE_OPERATION);

Re: [SR-Users] Load-balance on 2 proxies

2018-02-23 Thread David Villasmil
There's no status quo yet. I haven't really done stress tests :) but before diving into it, I'm wondering... On Fri, Feb 23, 2018, 21:42 Alex Balashov wrote: > My first question would be: why is the status quo a problem? > > On February 23, 2018 3:39:10 PM EST, David Villasmil < > david.villasmi

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Juha Heinanen
This issue may be related to the question: https://github.com/kamailio/kamailio/issues/1107 -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] How are SIP messages divided amongst TCP workers?

2018-02-23 Thread Cody Herzog
Thanks, Juha. You are correct. That feature request is directly relevant to this thread. I will upvote the feature request, and add a link back to this thread. The proposed workaround of using async workers is the one I opted to use. ___ Kamailio (SER)