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

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

[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

[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] 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

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

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

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:

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

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
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,

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

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

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

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: > >>

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),

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 ":username,domain" should have been in my case just ":username". Also if parsing of a field in redis comes out as having errors, just tweak the type of value

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). >

[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