[SR-Users] Re: SRV in advertise?

2024-07-01 Thread Joel Serrano via sr-users
What error are you getting? On Sun, Jun 30, 2024 at 16:24 David Villasmil via sr-users < sr-users@lists.kamailio.org> wrote: > Hello guys, > > I'm trying to use an SRV as an advertised address but kamailio fails to > start. Is this not possible? > > Thanks, > > David Villasmil > email:

[SR-Users] Re: Inbound Identity Verification Stir/Shaken

2024-05-30 Thread Joel Serrano via sr-users
On one of our carriers, I had to request them to send us the identity header. Ask them in case you are in the same situation. On Thu, May 30, 2024 at 2:09 PM David Villasmil via sr-users < sr-users@lists.kamailio.org> wrote: > Hello, > > For outgoing calls _from your DIDs_ to your providers, you

[SR-Users] Re: q_malloc.c:520 WARNINGs

2024-05-20 Thread Joel Serrano via sr-users
> > > I’ve just noticed a similar behavior in kamailio 5.8.1 after upgrading > from 5.6.3. I haven’t had time to poke around on it much yet. Wondering > if anyone found the root cause? In my case I’m calling just `dp_match("1", > "$rU");` > > > &g

[SR-Users] Re: q_malloc.c:520 WARNINGs

2024-03-09 Thread Joel Serrano via sr-users
I've tried setting corelog=L_INFO but I can still see the WARNINGS. Also, one correction in my previous msg, I don't have 2 "debug" lines, I have them defined within a condition: #!ifdef WITH_DEBUG debug=L_DBG #!else debug=L_NOTICE #!endif ... ... Joel. On Fri, Mar 8, 2024 at 9:

[SR-Users] Re: q_malloc.c:520 WARNINGs

2024-03-09 Thread Joel Serrano via sr-users
And also to add: This is on a debian 12 with Kamailio v5.8.0 On Sat, Mar 9, 2024 at 7:30 AM Joel Serrano wrote: > I've tried setting corelog=L_INFO but I can still see the WARNINGS. > > Also, one correction in my previous msg, I don't have 2 "debug" lines, I > ha

[SR-Users] q_malloc.c:520 WARNINGs

2024-03-08 Thread Joel Serrano via sr-users
Hi, Does anyone know what this WARNING means or how to fix it? 2024-03-09T00:39:15.406674-05:00 csbc03 csbc[33024]: WARNING: {1 1 INVITE CALL-ID} [core/mem/q_malloc.c:520]: qm_free(): WARNING: free(0) called from dialplan: dp_db.c: pcre2_free(206) 2024-03-09T00:39:15.406823-05:00 csbc03

[SR-Users] Re: SSL key logger for Diffie-Hellman cipher

2024-03-07 Thread Joel Serrano via sr-users
ions of the openssl-dev > stuff. Other things could be file or path permissions, or maybe a > security tool blocking it (would auditd do that?). > > At this point I'd reach out to their support. > > On Tue, Mar 5, 2024 at 10:24 PM Joel Serrano wrote: > > > > Hi Calvin, &

[SR-Users] Re: SSL key logger for Diffie-Hellman cipher

2024-03-05 Thread Joel Serrano via sr-users
Hi Calvin, Thanks for the tip on capturing on LO interface, I'm sure you just saved me some headaches ;) Interestingly when I check the environ I do see the env vars being set, but in the maps I don't see the keylogger: root@csbc03:~# cat /proc/2216899/environ

[SR-Users] Re: SSL key logger for Diffie-Hellman cipher

2024-03-05 Thread Joel Serrano via sr-users
Ok so for whatever reason Kamailio is not sending keys, but if I try on the same machine with openssl binary directly I do see keys being sent to the voipmonitor-sniffer. I will report here what I find for anyone else that runs into this. On Tue, Mar 5, 2024 at 1:43 PM Joel Serrano wrote

[SR-Users] Re: SSL key logger for Diffie-Hellman cipher

2024-03-05 Thread Joel Serrano via sr-users
ct pointer to function SSL_CTX_set_keylog_callback : 0x7f10d6adcf00 * SSL KEYLOG : log to : 10.2.1.19:1234 OpenSSL> quit root@csbc03:~# Does anyone have any tips on how to troubleshoot this? I know this might not be directly related to Kamailio... Thanks, Joel. On Wed, Feb 28, 2024 at 11:10 AM

[SR-Users] Re: SSL key logger for Diffie-Hellman cipher

2024-02-28 Thread Joel Serrano via sr-users
; I'm sure the siptrace module would have similar results, it's just not > part of the "homogenous deployment" approach we're taking with this project. > > On Tue, Feb 27, 2024 at 1:29 AM Joel Serrano via sr-users < > sr-users@lists.kamailio.org> wrote: > >> Calvi

[SR-Users] Re: SSL key logger for Diffie-Hellman cipher

2024-02-27 Thread Joel Serrano via sr-users
Calvin, Voipmonitor-sniffer has support for Kamailio’s ‘siptrace’ module, but this is useful if your goal is to capture SIP over TLS traffic, I’m not sure if that is the reason you have been asked to capture the DH session keys… If that's the case, any reason you went with LD_PRELOAD method vs

[SR-Users] Re: Remove all Via Header or create custome Via Header

2022-12-24 Thread Joel Serrano
Depending on where and how you are setting this up, you could leverage floating IPs and if one node fails the IP is "moved" to the good node… On Thu, Dec 22, 2022 at 23:21 Benoît Panizzon wrote: > Hi Alex > > > Are you talking about the proxy's own Via hop? > > Exactly... > > > If your

Re: [SR-Users] Interactions of dmq_usrloc and usrloc w/db_mode > 0

2022-09-26 Thread Joel Serrano
+1 in this situation haha, also hoping to get some nice input :D On Mon, Sep 26, 2022 at 9:20 AM Matteo Brancaleoni wrote: > Well, > > I asked a similar question here > https://lists.kamailio.org/pipermail/sr-users/2022-July/115160.html but > no answer yet :) > > What I see on my side is that

Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-19 Thread Joel Serrano
t; You should return -1 or any négative number instead of 0 in route ABC if > you want the calling block to continue. > > Return 0 will end kamailio script. Its équivalent to exit in 5.6.1 and > even 5.5.4 if i remember. > > Le 16 sept. 2022 15:48, Joel Serrano a écrit : >

Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-16 Thread Joel Serrano
. Thanks, Joel. On Thu, Sep 15, 2022 at 9:50 AM Joel Serrano wrote: > In sngrep I do see the the INVITEs coming in, I’ll check more on the OS > side and see what I can find. > > Again, thanks for checking! I’ll follow up with what I find. > > On Thu, Sep 15, 2022 at 09:16 Daniel

Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-15 Thread Joel Serrano
debian 11. I'm > just lost and don't really understand what the hell is going on. > > Thanks, I appreciate your help with this. > Joel. > > > > On Wed, Sep 14, 2022 at 9:50 AM Joel Serrano wrote: > >> Hi Daniel, >> >> I've followed your suggestions a

Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-14 Thread Joel Serrano
t; inspect the written file to see where each kamailio process is in the > execution stack. > > Cheers, > Daniel > On 14.09.22 10:20, Joel Serrano wrote: > > Bumping this! Any comments? Or suggestions on what to check? I'm feeling > it has to be something stupid but I can't see

Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-14 Thread Joel Serrano
Bumping this! Any comments? Or suggestions on what to check? I'm feeling it has to be something stupid but I can't see it :( On Sun, Sep 11, 2022 at 12:56 AM Joel Serrano wrote: > Hello, > > I have a cluster of 2 kamailios v5.5 on debian 9 working flawlessly. > > We have add

[SR-Users] Kamailio stops processing requests mid script

2022-09-11 Thread Joel Serrano
Hello, I have a cluster of 2 kamailios v5.5 on debian 9 working flawlessly. We have added a third node, also on v5.5 but debian 11. Kamailio doesn't work correctly for some reason that I'm not seeing. The symptoms are: 1- Kamailio receives INVITEs and starts to process them per routing script.

[SR-Users] Question on pike_check_ip(ipaddr)

2022-05-13 Thread Joel Serrano
Hello, One of our customers has lots of extensions that register to our platform using all the same IP. Sometimes they get caught in our pike velocity rules but if we increase the values to accommodate this client then all the others could abuse the system. I was wondering if

Re: [SR-Users] Tips on picking random element from a list

2022-05-05 Thread Joel Serrano
Of course, those aren't really "random" in the mathematical sense, but > > if you're goal is "you have a pool of 10 numbers and want them to be > > assigned to the p-asserted-identity URI user each one-tenth of the > > time", either of the above methods should wor

Re: [SR-Users] Tips on picking random element from a list

2022-05-03 Thread Joel Serrano
://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > *From:* sr-users *On Behalf Of *Joel > Serrano > *Sent:* Tuesday, May 3, 2022 6:20 PM > *To:* Kamailio (SER) - Users Mailing List > *Subject:* [SR-Users] Tips on picking random element from a list

[SR-Users] Tips on picking random element from a list

2022-05-03 Thread Joel Serrano
Hi Everyone, I have to implement a flow where outbound calls get their caller-id set with a random number from a pool. I've been looking around and, as most of the time, there are tons of ways to implement something like this... This is a simple implementation, the number pool is fixed and will

Re: [SR-Users] Experiences with Kamailio on Debian 11 Bullseye

2021-11-17 Thread Joel Serrano
+1 here using Kam 5.5 and debian 11 in prod, we finished the migration like a month ago and so far everything is going well. On Wed, Nov 17, 2021 at 12:57 PM Fred Posner wrote: > Tested a 5.5.x build (with TLS) on Debian 11 (and raspbian) without > issue, but have been in test environments. > >

[SR-Users] Stir/Shaken Kamailio modules - stirshaken vs secsipid

2021-10-29 Thread Joel Serrano
Hi everyone, As most of us, I'm starting to implement STIR/SHAKEN in our platform. I've seen there are 2 modules available in Kamailio for this: stirshaken: https://www.kamailio.org/docs/modules/5.5.x/modules/stirshaken.html secsipid: https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html

Re: [SR-Users] T_req(pv) not accessible in dialog event route in v5.5.2

2021-10-22 Thread Joel Serrano
; > The solution is to store the source IP of the request avp/xavp (I think > this event route is executed after corresponding transaction match), or in > a dialog variable or in htable (using callid/from tag as a key). > > Cheers, > Daniel > On 22.10.21 01:56, Joel Serrano w

Re: [SR-Users] T_req(pv) not accessible in dialog event route in v5.5.2

2021-10-21 Thread Joel Serrano
I think it could be related to: https://github.com/kamailio/kamailio/issues/2479 Commit: https://github.com/kamailio/kamailio/commit/2e7710e292a649c6c57e46d5994d3b2cf3815865 Thanks! Joel. On Thu, Oct 21, 2021 at 4:22 PM Joel Serrano wrote: > Hello, > > I'm in the process of upda

[SR-Users] T_req(pv) not accessible in dialog event route in v5.5.2

2021-10-21 Thread Joel Serrano
Hello, I'm in the process of updating some servers that are running Kam v5.1.4 to v5.5.2. After the upgrade I've noticed that I've lost some custom metrics that we have defined via config-script. Snippet of the relevant config: event_route[dialog:start] { # Gather metrics regarding source

Re: [SR-Users] update max_while_loops in config

2021-10-08 Thread Joel Serrano
Hey Juha, I'm wondering if you ever got this working using jsonrpc_exec() ? I have the same situation as you, where I'd like to increase max_while_loops for a certain task, and then lower it again, and I'm not sure of the correct format for the jsonrpc_exec() command for this. Also, did you have

Re: [SR-Users] Understanding regex format for subst_hf

2021-10-05 Thread Joel Serrano
gex supports matching with PCRE and dialplan offers a way to do > substitutions by matching with PCRE library. > > I updated the readme of textops to reflect somehow better the above. > > Cheers, > Daniel > On 04.10.21 19:50, Joel Serrano wrote: > > So now when combined wi

Re: [SR-Users] Understanding regex format for subst_hf

2021-10-04 Thread Joel Serrano
subst_run failed Can anyone remind me the name of the parameter I have to adjust to increase the buffer size? Thanks, Joel. On Mon, Oct 4, 2021 at 10:46 AM Joel Serrano wrote: > Update: > > I managed to achieve it using the "regex" module with "pcre_match()&quo

Re: [SR-Users] Understanding regex format for subst_hf

2021-10-04 Thread Joel Serrano
Update: I managed to achieve it using the "regex" module with "pcre_match()", that will take negative lookahead nicely. On Mon, Oct 4, 2021 at 10:18 AM Joel Serrano wrote: > Hey guys, > > I'm trying to do a replacement regex using subst_hf but I can't s

[SR-Users] Understanding regex format for subst_hf

2021-10-04 Thread Joel Serrano
Hey guys, I'm trying to do a replacement regex using subst_hf but I can't seem to get the format right and the docs are confusing. *subst_hf: *docs say it uses perl-like regex (as I understand it, that would mean PCRE). Docs also say in the 'subexp' param that it uses the same format as *subst.*

[SR-Users] Let's Encrypt DST Root CA X3 cert CA expiration 30th/Sept - Any issues?

2021-10-01 Thread Joel Serrano
Hello, I'm wondering if anyone had any issues yesterday with the expiration of the DST Root CA X3 cert? Out of all the servers I manage, only a couple were affected (debian 8). They were production servers so we replaced the cert with a different one to solve the issue while we find the root

Re: [SR-Users] AVPs in Switch/Case

2021-06-22 Thread Joel Serrano
e only with > constants. > > Cheers, > Daniel > On 22.06.21 10:29, Joel Serrano wrote: > > Hi guys, > > Quick question, are AVPs valid in "switch" as "case"'s? > > Example: > > $avp(var1) = "101"; > $avp(var2) = "201";

[SR-Users] AVPs in Switch/Case

2021-06-22 Thread Joel Serrano
Hi guys, Quick question, are AVPs valid in "switch" as "case"'s? Example: $avp(var1) = "101"; $avp(var2) = "201"; switch($rU) { case "$avp(var1)": ... break; case "$avp(var2)": ... break; default: send_reply("403", "Forbidden"); exit; } For some reason I can't get the case to match, and I'm

Re: [SR-Users] logging error events to database

2021-01-30 Thread Joel Serrano
Hey Sergiu, I’m curious, have you seen that happen by any chance on the kams your have taking with MSTeams? Joel. On Fri, Jan 29, 2021 at 11:31 Sergiu Pojoga wrote: > Thanks Alex & Daniel for suggesting these ingenious potential solutions. > > On Fri, Jan 29, 2021 at 2:09 PM Daniel-Constantin

Re: [SR-Users] Source Port on TLS OPTIONS from Dispatcher

2021-01-07 Thread Joel Serrano
Hi Charles, I don't think your issue is rport, make sure you are setting the Contact header correctly. Have you checked this blog post: https://skalatan.de/en/blog/kamailio-sbc-teams ? There is a specific section that talks about how to tell Kamailio to send the OPTIONS like MS Teams wants

Re: [SR-Users] Kamilio+asterisk = deregister after 2-3 minute

2020-12-11 Thread Joel Serrano
You can also set 404 as a valid response to the OPTIONS in Kam. On Fri, Dec 11, 2020 at 05:36 Barry Flanagan wrote: > On 11/12/2020 13:23, Mihai Cezar wrote: > > Hello, You right, i've found something, seems that the kamailio-probe it > puts the destination down. Any ideas why it's doing this ?

Re: [SR-Users] Issue with ca-list

2020-11-20 Thread Joel Serrano
need if you cannot identify them. > > But can you please share your configuration to make this work? As I was > not able to. > > What’s your kaimailo.cfg/ tls.cfg like? > > Get Outlook for iOS <https://aka.ms/o0ukef> > ------ > *From:* sr-u

Re: [SR-Users] Issue with ca-list

2020-11-20 Thread Joel Serrano
I have that working using the OS provided ssl CA list. That said, Kamailio takes >20s to startup because it has to load the entire list, and I had to increase memory limits. If you manage to narrow the list down please share it. On Fri, Nov 20, 2020 at 07:59 George Goglidze wrote: > To be

Re: [SR-Users] The Algorithm “13” - latency optimized dispatching

2020-11-14 Thread Joel Serrano
. > > Happy Friday the 13th. > > On Fri, Nov 13, 2020, 14:54 Joel Serrano wrote: > >> Thanks Juha!! I have a perfect use case for this algorithm. >> >> Is it tryable ? >> >> Joel. >> >> On Fri, Nov 13, 2020 at 5:57 AM David Villasmil < >

Re: [SR-Users] The Algorithm “13” - latency optimized dispatching

2020-11-13 Thread Joel Serrano
Thanks Juha!! I have a perfect use case for this algorithm. Is it tryable ? Joel. On Fri, Nov 13, 2020 at 5:57 AM David Villasmil < david.villasmil.w...@gmail.com> wrote: > Nice! > > On Thu, 12 Nov 2020 at 22:01, Julien Chavanton > wrote: > >> About The Algorithm “13” - latency optimized

Re: [SR-Users] Kamailio behind HAProxy

2020-11-11 Thread Joel Serrano
In one case, it was to take advantage of the SSL offloading from the cloud provided load balancer (among other features, but that was the main one). I never got it fully working though.. See: https://github.com/kamailio/kamailio/issues/2103 and the thread

Re: [SR-Users] Load balance on HA scenario

2020-10-20 Thread Joel Serrano
Yes. I do exactly this but with an extra step: 1. I have the default Kamailio dispatcher pings disabled. 2. I have the Kamailio init route check if we have the floating IP locally, if we do in startup that route will run the rpc cmd to enable pings. 3. On floating IP switchover, keepalived (or

Re: [SR-Users] Libphonenumber - Updating metadata

2020-10-17 Thread Joel Serrano
), unfortunately as I mentioned earlier I never got a reply, that’s why I ended up trying “ugly” solutions. On Sat, Oct 17, 2020 at 20:12 Joel Serrano wrote: > I did. > > You can drop-in replace the current lib with an updated version and the > Kamailio module just works. > >

Re: [SR-Users] Libphonenumber - Updating metadata

2020-10-17 Thread Joel Serrano
I did. You can drop-in replace the current lib with an updated version and the Kamailio module just works. I asked somewhere (not Kam, I don’t remember exactly where) for an updated version too but I never got a reply. So my advice would be: 1- get an updated version of the lib, overwrite the

Re: [SR-Users] dialog_active_dialogs erroneous value

2020-10-16 Thread Joel Serrano
Hey Sergiu, I think I've been through a similar case... have a look at: https://github.com/kamailio/kamailio/issues/1591 in case you find it helpful. You might have to rely on the different metric that Daniel added. Joel. On Fri, Oct 16, 2020 at 3:35 AM Sergiu Pojoga wrote: > Hi Daniel, >

Re: [SR-Users] Logging problem

2020-10-03 Thread Joel Serrano
Make sure it’s not systemd who is logging there and not kamailio... On Sat, Oct 3, 2020 at 10:19 Henning Westerholt wrote: > Hello, > > > > Strange problem. If you tried the obvious stuff already (like rebooting > etc..) I would try with "logger" to reproduce the problem, to see if its >

Re: [SR-Users] Kamailio World Updates Online - Celebration Party - Sep 2-3, 2020

2020-08-03 Thread Joel Serrano
$ kamctl rpc kamailio_world_online.signup +Joel On Mon, Aug 3, 2020 at 03:53 Arsen Semenov wrote: > +1 > > Stay safe. > > On Mon, Aug 3, 2020 at 3:17 PM Mark Boyce wrote: > >> Hi >> >> I’ll be there. Bring your own drinks for the Virtual Bar networking >> session after :-? >> >> Cheers >>

Re: [SR-Users] Setting up MSFT Teams SBC <> SIP trunk but forwarding ACK and CANCEL messages

2020-08-02 Thread Joel Serrano
On latest versions I’m trying the sipdump module, the one benefit I’m liking over its alternatives is that you can enable/disable dumping to file via RPC.. So in normal operation you are not dumping all tls traffic, and then you can enable it only when you need to troubleshoot something.. Just

Re: [SR-Users] failed to lock the memory pages (disable swap) WARNING

2020-07-24 Thread Joel Serrano
This limit is not enforced if the process is privileged (*CAP_IPC_LOCK*). > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > > > *From:* sr-users *On Behal

[SR-Users] failed to lock the memory pages (disable swap) WARNING

2020-07-07 Thread Joel Serrano
Hi all, Can anyone give me some info on what this warning means: Jul 7 17:02:29 csbc02 csbc[16006]: WARNING: [core/daemonize.c:596]: mem_lock_pages(): failed to lock the memory pages (disable swap): Cannot allocate memory [12] Yes, if I set mlock_pages=no I don't see the warning, but I'm

Re: [SR-Users] RTP voice failover

2020-06-27 Thread Joel Serrano
Not sure about RPM, but for sure you can find DEB packages in the SIPwise APT repo.. On Sat, Jun 27, 2020 at 5:25 AM Evgeniy wrote: > Thanks a lot ! > I will try to implement it with Cloud Load Balance (Azure, AWS) and > rtpproxy + Redis cache. > BTW - can i install rtpengine with RPM or DEB

Re: [SR-Users] Reconnect call

2020-06-22 Thread Joel Serrano
Actually, this is handled on client side, you would need the client to “detect” a network change (example: a switch from wifi to cellular) and that would need to trigger a reINVITE. Then, if your timers haven’t expired and you have your Kam to allow reinvites, the session can be updated to reflect

Re: [SR-Users] Received ipv6 problem

2020-06-02 Thread Joel Serrano
Not exactly an answer to your specific question, but it might help solve your problem in a different way... If you using the registrar module with save()... you might be able to take advantage in some way of the flags 0x04:

Re: [SR-Users] sip forward with manipulations

2020-05-23 Thread Joel Serrano
Hi, Probably need more details to give a correct answer, but I would try to keep it simple, using a combination of dispatcher module + updating $ru before relaying I believe would be a way to do this. Cheers, Joel. On Sat, May 23, 2020 at 14:35 christian (cx labs) wrote: > Hi, > > I'm trying

Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-26 Thread Joel Serrano
And those, I AFAIR you can set dynamically with record_route_preset() / record_route_advertised_address() https://kamailio.org/docs/modules/5.3.x/modules/rr.html On Sun, Apr 26, 2020 at 06:47 Ovidiu Sas wrote: > There’s no need for FQDNs in Via headers for MS. IPs work just fine! > You need

Re: [SR-Users] out of shm without any visible reason

2020-03-01 Thread Joel Serrano
Maybe not the nicest solution, but you can use (from inside the routing script) the jsonrpc_exec() to get stats and grab the shmem usage, and build your logic there... if this do that... On Sun, Mar 1, 2020 at 12:54 Juha Heinanen wrote: > John Petrini writes: > > > The times we've seen this

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-25 Thread Joel Serrano
UG: dmq_usrloc [usrloc_sync.c:85]: > add_contact(): Release record > Feb 24 17:42:29 csbc02 csbc[17784]: DEBUG: dmq_usrloc [usrloc_sync.c:87]: > add_contact(): Unlock udomain > > Having set modparam("usrloc", "server_id_filter", 1), shouldn't the node > receiving lo

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-24 Thread Joel Serrano
ode receiving locations records via DMQ *not* update the database (as the server_id param won't match with the one in the DMQ request)? Thanks again! Joel. H On Mon, Feb 24, 2020 at 12:43 PM Joel Serrano wrote: > Absolutely, I'll report back shortly! > > On Mon, Feb 24, 2020 at 12:19 PM D

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-24 Thread Joel Serrano
usually created: > src/modules/dmq/dmq.c > > 283:newpid = fork_process(PROC_NOCHLDINIT, "DMQ WORKER", 0); > > Can you try with PROC_RPC instead of PROC_NOCHLDINIT and see if works ok? > > Cheers, > Daniel > On 24.02.20 21:04, Joel Serrano wrote: > >

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-24 Thread Joel Serrano
o the pid in the output of: > > kamctl ps > > Cheers, > Daniel > On 24.02.20 20:42, Joel Serrano wrote: > > Ok so my findings so far: > > 1- db_mode=2 --> No errors. > 2- db_mode=1 --> The reported error. > 3- modparam("usrloc", "server_id_filter&qu

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-24 Thread Joel Serrano
next step was to enable mysql logs or capture traffic and see what exactly is Kam sending... Let me know your thoughts. Thanks, Joel. On Mon, Feb 24, 2020 at 11:26 AM Joel Serrano wrote: > Hi Henning, > > Every time I register, NodeA says OK, sends location by DMQ to NodeB, >

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-24 Thread Joel Serrano
ng Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > *From:* sr-users *On Behalf Of *Joel > Serrano > *Sent:* Monday, February 24, 2020 8:10 PM > *To:* Daniel-Constantin Mierla > *Cc:* Kamailio (SER) - Users Mailing List > *Subje

Re: [SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-24 Thread Joel Serrano
3843ae18599bfc1806ccb62df44bbc8ad41d60dd > > Cheers, > Daniel > On 21.02.20 22:40, Joel Serrano wrote: > > Hello, > > I have a setup with 2 kamailio in active/idle, locations are shared via > dmq_usrloc, but database is also used as a cache where other systems can >

[SR-Users] Database errors with usrloc db_mode=1 and dmq_usrloc

2020-02-21 Thread Joel Serrano
Hello, I have a setup with 2 kamailio in active/idle, locations are shared via dmq_usrloc, but database is also used as a cache where other systems can access and query "real-time" data. The config we have is: # - usrloc params - modparam("usrloc", "db_url", DBURL) modparam("usrloc",

Re: [SR-Users] Understanding some usrloc modparams

2020-02-20 Thread Joel Serrano
Thanks Alex, Daniel and Henning! Joel. On Thu, Feb 20, 2020 at 7:38 AM Alex Balashov wrote: > On Thu, Feb 20, 2020 at 04:21:21PM +0100, Daniel-Constantin Mierla wrote: > > > If timer_procs>1, then the workload is split among those processes, > > each process gets assigned a list of slots from

[SR-Users] Understanding some usrloc modparams

2020-02-19 Thread Joel Serrano
Hello, I have an installation using usrloc + db_mode=1. If I want on db_mode=1 or db_mode=2 the expired contacts to be cleaned up I have to enable the modparam db_timer_clean: https://www.kamailio.org/docs/modules/devel/modules/usrloc.html#usrloc.p.db_timer_clean The docs say: "*Enable (1) or

Re: [SR-Users] Kamailio OPTIONS Round-Trip

2020-02-19 Thread Joel Serrano
Just for future reference: https://github.com/kamailio/kamailio/issues/2223 On Tue, Apr 30, 2019 at 3:27 AM Rhys Hanrahan wrote: > Hi Everyone, > > > > I would just like to add that I’m also very interested in several of the > things Daniel mentioned in this thread. Particularly the

Re: [SR-Users] xlog() format change from 5.3 to 5.4-nightly

2020-02-18 Thread Joel Serrano
t; > Cheers, > Daniel > On 14.02.20 21:26, Joel Serrano wrote: > > Hello, > > I've noticed that the output format of xlog() changes from 5.3 to > 5.4-nightly. > > v5.3 xlog(): > > Feb 13 11:56:35 csbc01 csbc[27333]: NOTICE: {1 24727 REGISTER > b1d374f6-9b8c53ff@A.B.C.D}

[SR-Users] xlog() format change from 5.3 to 5.4-nightly

2020-02-14 Thread Joel Serrano
Hello, I've noticed that the output format of xlog() changes from 5.3 to 5.4-nightly. v5.3 xlog(): Feb 13 11:56:35 csbc01 csbc[27333]: NOTICE: {1 24727 REGISTER b1d374f6-9b8c53ff@A.B.C.D}

Re: [SR-Users] uac_replace_from and uac_auth fails to authenticate.

2020-01-19 Thread Joel Serrano
Have you tried setting $fU/$fd directly in failure_route before uac_auth()? On Sun, Jan 19, 2020 at 14:35 Kjeld Flarup wrote: > Thanks for confirming. > > As there seems to be no way to correct the From header in > failure_dialog, then the From header has to be modified before I receive > the

Re: [SR-Users] Get destination IP from forwarded invite

2020-01-16 Thread Joel Serrano
Hello, If I understand correctly your email, you want the IP/Host of the destination of the outgoing INVITE that is leaving a Kamailio box? First of all, how are you forwarding the request? Are you using dispatcher module? Here are a couple of options: 1-

Re: [SR-Users] OPTION pings with dispatcher to asterisk box

2019-12-13 Thread Joel Serrano
Hey Karsten, I'm using that same modparam and it's working as expected. My example: modparam("dispatcher", "ds_ping_reply_codes", "class=2;code=403;code=488;code=405;class=3") I believe the problem is that you are using a comma "," as separator, and the correct separator is a semi-colon ";"???

Re: [SR-Users] app-ads.txt monetization proposal

2019-12-03 Thread Joel Serrano
Sorry to everyone, I just noticed I added (by mistake) the Kamailio list. Please ignore this thread, it was not intentional and it has nothing to do with Kamailio. My bad. Joel. > > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] Fwd: app-ads.txt monetization proposal

2019-12-03 Thread Joel Serrano
Not sure if this is BS or worth exploring, it's not my expertise area so I'm forwarding to you all just in case -- Forwarded message - From: Lorenzo from Instal Date: Tue, Dec 3, 2019 at 8:56 AM Subject: app-ads.txt monetization proposal To: app-ads.txt monetization proposal

Re: [SR-Users] tcp limit, too many open files

2019-11-29 Thread Joel Serrano
Try without the two [Service] sections... not sure if that can be the problem. Move the LimitNOFILE=65536 to the existing section where the test of params are. Then daemon-reload and retry... Maybe it works. On Fri, Nov 29, 2019 at 04:48 David Villasmil < david.villasmil.w...@gmail.com> wrote:

Re: [SR-Users] Avoid full table scan for dispatcher table on db_redis using ds_reload() from config script

2019-11-25 Thread Joel Serrano
Done! https://github.com/kamailio/kamailio/issues/2149 Cheers, Joel. On Mon, Nov 25, 2019 at 10:58 AM Henning Westerholt wrote: > Yes, makes sense. > > > > Cheers, > > > > Henning > > > > *From:* Joel Serrano > *Sent:* Monday, November 25, 2019

Re: [SR-Users] Avoid full table scan for dispatcher table on db_redis using ds_reload() from config script

2019-11-25 Thread Joel Serrano
> -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > Kamailio Merchandising – https://skalatan.de/merchandising > > > > *From:* Joel Serrano > *Sent:* Monday, November 25, 2019 7:19 PM > *To:* Hennin

Re: [SR-Users] Avoid full table scan for dispatcher table on db_redis using ds_reload() from config script

2019-11-25 Thread Joel Serrano
-load, the warning is indeed > harmless, the number of records in the table does not matter here. > > > > Haven’t tried it myself right now, but what about simply: > > > > modparam("db_redis", "keys", "version=entry:table_name;dispatcher=entry:i

Re: [SR-Users] Avoid full table scan for dispatcher table on db_redis using ds_reload() from config script

2019-11-24 Thread Joel Serrano
lawa.com > > Kamailio Merchandising – https://skalatan.de/merchandising > > > > *From:* sr-users *On Behalf Of *Joel > Serrano > *Sent:* Saturday, November 23, 2019 1:18 AM > *To:* Kamailio (SER) - Users Mailing List > *Subject:* Re: [SR-Users] Avoid full table scan fo

Re: [SR-Users] Avoid full table scan for dispatcher table on db_redis using ds_reload() from config script

2019-11-22 Thread Joel Serrano
://X.X.X.X:6379/2") Thanks! Joel. On Fri, Nov 22, 2019 at 1:48 PM Joel Serrano wrote: > Hello, > > I'm trying out redis as db backend, and right now I only have dispatcher > records there... Every so often, I do a ds_reload() from within Kam config > script, and I see

[SR-Users] Avoid full table scan for dispatcher table on db_redis using ds_reload() from config script

2019-11-22 Thread Joel Serrano
Hello, I'm trying out redis as db backend, and right now I only have dispatcher records there... Every so often, I do a ds_reload() from within Kam config script, and I see in logs: Nov 22 20:36:35 test COPS[25531]: WARNING: db_redis [redis_dbase.c:1098]: db_redis_perform_query(): performing

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-22 Thread Joel Serrano
Hi Daniel, I have advertise as: listen=tcp:10.116.15.237:443 advertise sbc01.stg.gii.me:443 (normally it would be tls, I switched to tcp so I could get unencrypted traffic in tcpdump for you) Record-route is done as: # Dispatch requests if (is_method("INVITE")) {

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-21 Thread Joel Serrano
tcp_keepintvl=30 tcp_connection_lifetime=3610 tcp_accept_no_cl=yes tcp_accept_haproxy=yes tcp_no_connect=yes Thanks, Joel. On Thu, Nov 21, 2019 at 7:50 AM Joel Serrano wrote: > I don’t, but I’ll repeat the test with tcpdump active! I’ll report back > shortly > > On Thu, Nov 21, 2019 at

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-21 Thread Joel Serrano
I don’t, but I’ll repeat the test with tcpdump active! I’ll report back shortly On Thu, Nov 21, 2019 at 03:50 Daniel-Constantin Mierla wrote: > Hello, > > do you have the pcap with the sip traffic for this case? > > Cheers, > Daniel > On 20.11.19 19:45, Joel Serrano wr

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-20 Thread Joel Serrano
BUG: {1 12583750 BYE RVXZVMHKop} tm [t_funcs.c:354]: t_relay_to(): -477 error reply generation delayed "} Although, netstats says the connection is active: root@sbc-gslb-test-1:~# netstat -putan | grep 56470 tcp0 0 10.116.15.237:443 35.191.9.20:56470 ESTABLISHED 3920/ka

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-20 Thread Joel Serrano
_main.c:2060]: tcp_send(): no open tcp connection found, opening new one"} "message":" DEBUG: {1 12543376 BYE QQy-qagkcB} [core\/ip_addr.c:229]: print_ip(): tcpconn_new: new tcp connection: 35.191.9.21"} "message":" DEBUG: {1 12543376 BYE QQy-qagkcB} [co

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-17 Thread Joel Serrano
Yes sir! Works perfectly! To give you a quick example: 1) Add in the appropriate place for the REGISTER request: t_on_reply("MANAGE_REG_REPLY"); 2) Create a new onreply route: # Manage registration incoming replies onreply_route[MANAGE_REG_REPLY] { if(status=~"2[0-9][0-9]") { if

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-15 Thread Joel Serrano
Hello Tomasz, In the past when I had to implement something similar, I found these to guides very helpful: https://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/ I believe your scenario is very similar as

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Joel Serrano
I’m working on something similar, what cloud are you using? In my case, using GCP, I have a script that queries the metadata API and uses information from there, but for the setup I’m trying out, I use the LB public IP not the VM one. I’m curious as to how you plan to get it to work, why would

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-01 Thread Joel Serrano
nough as this param will be triggered by function > force_tcp_alias() you need to use in the route for request ( for example > record_route or subroutes) > It will add param paramname= (I Don't remember specific name) > to Via header that will be used for all dialog requests belongs one

Re: [SR-Users] Routing Blocks - Missing in latest core wiki

2019-10-31 Thread Joel Serrano
n.de/blog/ > > Kamailio services - https://skalatan.de/services > > > > *From:* Henning Westerholt > *Sent:* Wednesday, October 30, 2019 9:43 PM > *To:* Joel Serrano > *Cc:* mico...@gmail.com; Kamailio (SER) - Users Mailing List < > sr-users@lists.kamailio.org>; Ka

Re: [SR-Users] Routing Blocks - Missing in latest core wiki

2019-10-30 Thread Joel Serrano
From:* sr-users *On Behalf Of > *Daniel-Constantin > Mierla > *Sent:* Wednesday, October 30, 2019 9:56 AM > *To:* Joel Serrano > *Cc:* Kamailio (SER) - Users Mailing List > *Subject:* Re: [SR-Users] Routing Blocks - Missing in latest core wiki > > > > Hello, >

Re: [SR-Users] Routing Blocks - Missing in latest core wiki

2019-10-29 Thread Joel Serrano
//www.kamailio.org/wiki/cookbooks/devel/core?do=diff%5B0%5D=1566304365%5B1%5D=1570711960=sidebyside > > If you want, you can go ahead and add it yourself, copying from the > previous edition, otherwise I will do it tomorrow. > > Cheers, > Daniel > On 29.10.19 21:03, J

[SR-Users] Routing Blocks - Missing in latest core wiki

2019-10-29 Thread Joel Serrano
Hi, I was looking at the documentation and noticed that "Routing Blocks" section is missing in latest releases... http://www.kamailio.org/wiki/cookbooks/5.2.x/core#routing_blocks is OK But: http://www.kamailio.org/wiki/cookbooks/5.3.x/core#routing_blocks

Re: [SR-Users] Get value from header and check value type

2019-10-18 Thread Joel Serrano
Hey Karsten, I had a similar doubt and following Daniel's recommendation I went with the same route you did (using {s.int} to convert to integer). Quote from another thread: *"you can also convert the header value to integer using the transformation {s.int }, that's safer if you

Re: [SR-Users] Kamailio v5.2.5 Released

2019-10-10 Thread Joel Serrano
Hey Andy, I think you probably checked before the CI pipeline finished preparing the packages haha... Right now v5.2.5 is available in the repo: http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/ Cheers, Joel. On Thu, Oct 10, 2019 at 7:17 AM Andrew Chen wrote: > Hi Daniel, > > Can

  1   2   3   >