[SR-Users] Re: SDP getting modified.

2024-04-28 Thread Ovidiu Sas via sr-users
Search the Internet for sip alg and see how can you disable it on your router. -ovidiu On Sun, Apr 28, 2024 at 09:34 Pavan Kumar via sr-users < sr-users@lists.kamailio.org> wrote: > Hi everyone, > > Here is my setup > > SIP Client (MacBook) <=> Kamailio (AWS) <=> Freeswitch (AWS) > > When I

[SR-Users] Re: Issue with MS Teams OPTIONS ping - no response

2024-04-15 Thread Ovidiu Sas via sr-users
Domain of URI works ok with sip.pstnhub.microsoft.com. Domain of From works ok with localhost. Domain of To works ok with sip.pstnhub.microsoft.com. Those are not important. It is important that you have the right Contact: Contact: If your Contact is right, then something is misconfigured on MS

[SR-Users] Re: About the operating environment of Kamailio

2024-04-15 Thread Ovidiu Sas via sr-users
-gnu --target=aarch64-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.2.0 (Debian 12.2.0-14) Regards, Ovidiu Sas On Mon, Apr 15, 2024 at 1:22 AM 山本 哲也 via sr-users wrote: > > Thanks for the reply > > The OS is Linux > > We are still

[SR-Users] Re: RFC: uptime metric for xhttp_prom module

2024-04-05 Thread Ovidiu Sas via sr-users
For now, I pushed the new uptime statistic to follow the naming convention that was in place: https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_prom.p.xhttp_prom_uptime_stat We could implement the following naming convention: # This is the modparam for

[SR-Users] Re: RFC: uptime metric for xhttp_prom module

2024-04-04 Thread Ovidiu Sas via sr-users
the same way to be consistent. The current implementation is described here: https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html SUMMARY: We are dealing with two issues here: 1. Refactoring the modparam names 2. Implementing support for a given set of statistics provided by the 's

[SR-Users] Re: RFC: uptime metric for xhttp_prom module

2024-04-04 Thread Ovidiu Sas via sr-users
t; > Cheers, > > Henning > > > -Original Message- > > From: Ovidiu Sas via sr-users > > Sent: Donnerstag, 4. April 2024 18:54 > > To: Kamailio (SER) - Users Mailing List > > Cc: Ovidiu Sas > > Subject: [SR-Users] RFC: uptime metric

[SR-Users] RFC: uptime metric for xhttp_prom module

2024-04-04 Thread Ovidiu Sas via sr-users
Hello all, The xhttp_module can export all stats under "stats.get_statistics" RPC command. I was thinking of adding an optional "uptime" stat that will return the kamailio server uptime (like the "core.uptime" RPC command). This will make it easier to add an uptime panel in grafana. The new stat

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
It all depends on the hardware, but I noticed that after you pass 3-4k cps you run into this kind of issues. - ovidiu On Sat, Mar 23, 2024 at 22:11 Alex Balashov via sr-users < sr-users@lists.kamailio.org> wrote: > > > On Mar 23, 2024, at 9:30 PM, Ovidiu Sas wrote: > > >

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
On Mar 23, 2024, at 7:29 PM, Ovidiu Sas via sr-users < > sr-users@lists.kamailio.org> wrote: > > > > Because you have dropped packets. > > The queue it’s empty most of the time and if is full for a few > milliseconds and that’s the moment when you experience dropped packet

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
; sr-users@lists.kamailio.org> wrote: > >> >> > On Mar 23, 2024, at 6:05 PM, Ovidiu Sas wrote: >> > >> > if most of the time the udp queue is empty and dropped packets are >> observed, then the size of the udp queue is too small. >> >> But would that happen w

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
< sr-users@lists.kamailio.org> wrote: > > > On Mar 23, 2024, at 6:05 PM, Ovidiu Sas wrote: > > > > if most of the time the udp queue is empty and dropped packets are > observed, then the size of the udp queue is too small. > > But would that happen with

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
small. Any other scenario must be handled differently. -ovidiu On Sat, Mar 23, 2024 at 17:49 Alex Balashov via sr-users < sr-users@lists.kamailio.org> wrote: > > > On Mar 23, 2024, at 5:19 PM, Ovidiu Sas wrote: > > > > But the CPU is not the limiting factor. > &g

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
that > queue while still having a good amount of CPU/processor available. > >>> > >>> -- Fred Posner > >>> Sent from mobile > >>> Phone: +1 (352) 664-3733 > >>> qxork.com > >>> > >>> > >>> >

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
.com > > > > > > > >> On Mar 23, 2024, at 11:47 AM, Alex Balashov via sr-users < > sr-users@lists.kamailio.org> wrote: > >> > >>  > >>> On Mar 22, 2024, at 10:21 PM, Ovidiu Sas > wrote: > >>> > >>> The defau

[SR-Users] Re: low performance with no apparent reason

2024-03-22 Thread Ovidiu Sas via sr-users
s another layer of > queueing. > > Squeeze the balloon in one place, it inflates in another. > > -- Alex > > > On Mar 22, 2024, at 1:05 PM, Ovidiu Sas via sr-users < > sr-users@lists.kamailio.org> wrote: > > > > I assume that you are using udp. > > Ple

[SR-Users] Re: low performance with no apparent reason

2024-03-22 Thread Ovidiu Sas via sr-users
I assume that you are using udp. Please increase the length of the udp queue: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360 Regards. Ovidiu Sas On Fri, Mar 22, 2024 at 12:56 Sergio Charrua via sr-users < sr-users@lists.kamailio.org> wrote:

[SR-Users] Re: best approach to setup SIP Session sharing between servers

2024-02-27 Thread Ovidiu Sas via sr-users
That’s a huge marginal gain! Most of the time is 0.01% or less. :-) High availability is for hardware failures, not for software failures. If there’s an issue in one node in the cluster and that node goes down, the next node in the cluster will have the same issue and it will go down the same

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

2024-02-01 Thread Ovidiu Sas via sr-users
Hello Calvin, Thank you for sharing this! This would make for a great tutorial on https://www.kamailio.org/w/documentation/ under the TLS Tutorials section or maybe a new tutorial section for Monitoring. Many would appreciate having this documented there. -ovidiu On Mon, Jan 29, 2024 at 8:50 PM

[SR-Users] Re: Modifying SDP as drop-in replacement for overloaded Asterisk box - looking for help/paid consulting fast

2023-09-21 Thread Ovidiu Sas
Probably you need to modify only the RURI. If you looking for a paid consultant you should post to the business mailing list. Also, you can take a look here: https://www.kamailio.org/w/business/ -ovidiu On Thu, Sep 21, 2023 at 21:29 Markus wrote: > Hi list, > > I'm trying to use Kamailio 4.4.4

[SR-Users] Re: Saving credentials in yaml/txt format

2023-07-30 Thread Ovidiu Sas
Take a look at db_text module. On Sun, Jul 30, 2023 at 03:31 wrote: > Hello all, I want to save some credentials for different users I have that > are being used in a digest authorization (INVITE), > with different realms (I don't want the credentials to be hardcoded). > I tried to look at how

[SR-Users] Re: Kamailio 5.6.4 and htable dbmode=1

2023-07-18 Thread Ovidiu Sas
Try to change the ownership of the SQLite file and match it to the user running kamailio. On Tue, Jul 18, 2023 at 14:45 Bernd Krüger Knauber wrote: > Hi, > > it is not a problem of the sqlite file: > > sqlite> .schema userpush > CREATE TABLE userpush ( > key_name TEXT, > "key_type"

[SR-Users] Re: Handling stateless replies with kemi

2023-03-30 Thread Ovidiu Sas
ksr_route_natmanage(); > } > return; > } > > And then register this with the tm module function, as indicated in the docs? > https://www.kamailio.org/docs/modules/devel/modules/tm.html#tm.p.on_sl_reply > > Cheers, > > Henning > > -Origina

[SR-Users] Re: KEMI: app_jsdt_run_ex(): js loading state not initialized (call: ksr_htable_event)

2023-03-27 Thread Ovidiu Sas
which was done to avoid sharing the interpreter state before forking the > child processes. > > Cheers, > Daniel > > On 25.03.23 23:15, Ovidiu Sas wrote: > > Hello all, > > > > While using KEMI with app_jsdt I noticed the following possible > > regression betwee

[SR-Users] Handling stateless replies with kemi

2023-03-27 Thread Ovidiu Sas
Hello all, How can we handle stateless replies with kemi? tm has the following param: modparam("tm", "on_sl_reply", "stateless_replies") What's the proper way to map the "stateless_reply" onreply_route to a kemi function. I'm playing with the app_jsdt module. Thanks, Ovidiu

[SR-Users] KEMI: app_jsdt_run_ex(): js loading state not initialized (call: ksr_htable_event)

2023-03-25 Thread Ovidiu Sas
Hello all, While using KEMI with app_jsdt I noticed the following possible regression between 5.5 and 5.6. The following config is working ok on 5.5 but throws an error on 5.6: ERROR: app_jsdt [app_jsdt_api.c:555]: app_jsdt_run_ex(): js loading state not initialized (call: ksr_htable_event)

[SR-Users] Re: Issues matching regex

2023-02-11 Thread Ovidiu Sas
This will do it: if ($rU=~"^(\+?1)?(8(00|44|55|66|77|88))[2-9][0-9][0-9][0-9][0-9][0-9][0-9]$") { xlog("L_INFO", "Tollfree call: $rU"); } -ovidiu On Sat, Feb 11, 2023 at 12:37 PM Nathan Stratton wrote: > > I am having an issue matching toll-free. I tested my regex on regex101.com, >

[SR-Users] no autocomplete for kamcmd for latest debian packages

2023-02-03 Thread Ovidiu Sas
Hello, The latest debian packages are built without autocomplete for kamcmd. Do we have the libreadline-dev package installed on the build machine? I know that we have kamctl rpc and kamcli, but if we are still shipping kamcmd, it should have the autocomplete feature enabled. Regards, Ovidiu

[SR-Users] Re: rtpengine - SRTP <> RTP

2023-01-26 Thread Ovidiu Sas
Here's a quick guide on how to capture and decrypt encrypted traffic: https://voipembedded.wordpress.com/2021/03/22/troubleshooting-kamailio-encrypted-sip-traffic/ -ovidiu On Thu, Jan 26, 2023 at 9:46 AM Krzysztof Drewicz wrote: > > śr., 25 sty 2023 o 19:22 Karsten Horsmann napisał(a): > > > >

[SR-Users] Re: How to make a branch trigger persistent (still being active after failure route is triggered)?

2022-12-16 Thread Ovidiu Sas
a fresh start). Regards, Ovidiu Sas On Fri, Dec 16, 2022 at 4:11 PM Benoît Panizzon wrote: > > Hi List > > Some time ago, during my learning curve with kamailio, I learned that a > branch route is where you make modifications to callerId's. > > So I extensively re-engineer

Re: [SR-Users] Logs suddenly inundated with qm_malloc errors

2022-12-13 Thread Ovidiu Sas
Maybe there is a memory leak or maybe the system is not provisioned with enough memory to cope with the traffic. Increase the amount of allocated memory and monitor it, see how it evolves over time. Regards, Ovidiu Sas On Tue, Dec 13, 2022 at 6:14 AM George Diamantopoulos wrote: > > Hel

Re: [SR-Users] Log levels severely impacts performance

2022-09-15 Thread Ovidiu Sas
Then rework the logs. Do you have more than one log per registration? If yes, use only one. If you already have a single log per registration, then try reducing the size. Experiment to see where the system breaks. Try new hardware. Decrease the number of workers to see if it has an impact.

Re: [SR-Users] Limit cps per destination gw

2022-07-28 Thread Ovidiu Sas
I had a similar setup, with an empty dbtext table. Works like a charm! -ovidiu On Thu, Jul 28, 2022 at 21:20 Jon Bonilla (Manwe) wrote: > El Thu, 28 Jul 2022 18:08:33 + > Henning Westerholt escribió: > > > Hi, > > > > pipelimit allows dynamic queues from a DB. But if you want to limit > >

Re: [SR-Users] SNMP, export concurrent calls count

2022-05-30 Thread Ovidiu Sas
Take a look at the xhttp_prom module. You will need to upgrade. -ovidiu On Mon, May 30, 2022 at 13:37 ZZ Wave wrote: > Hello. > > Debian 10, Kamailio 5.2.1 > > I want to monitor concurrent calls in/out per every trunk connected to > this proxy (it's done with dialog profiles), and export this

Re: [SR-Users] Using DNS log in

2022-03-25 Thread Ovidiu Sas
Hello Steve, Take a look at the alias keyword: https://www.kamailio.org/wiki/cookbooks/devel/core#alias Set your domain as an alias and it should work. -ovidiu On Fri, Mar 25, 2022 at 18:21 Steve wrote: > Hello, > > I have a very basic Kamailio 5.4 configuration on Debian 11 with > RTPProxy

Re: [SR-Users] $ru vs. $fu as r/w pseudo variables

2022-03-22 Thread Ovidiu Sas
Thank you! -ovidiu On Tue, Mar 22, 2022 at 12:22 PM Juha Heinanen wrote: > > Juha Heinanen writes: > > > I looked at pv_core.c, and based on that these are header R/W variables: > > > > $tu, $tU, $td, $tn, $fu, $fU, $fd, $fn > > I updated the Wiki page accordingly. > > -- Juha > >

Re: [SR-Users] $ru vs. $fu as r/w pseudo variables

2022-03-22 Thread Ovidiu Sas
Should be the same for To header. On Tue, Mar 22, 2022 at 10:02 Juha Heinanen wrote: > Perhaps it would best to explicitly tell on Pseudo-Variables Wiki page, > which R/W pseudo "variables" are not really variables in the sense that > setting of the value does not change its value. > > Are

Re: [SR-Users] $ru vs. $fu as r/w pseudo variables

2022-03-22 Thread Ovidiu Sas
Hello Juha, The first line of a SIP request is parsed and kept separately from the rest of the SIP message. Because of this, it is easy to apply instant changes to it. This is what I remember checking the code long time ago, it might not be 100% accurate. Hope this helps, -ovidiu On Mon, Mar

Re: [SR-Users] typo in documentation

2022-03-15 Thread Ovidiu Sas
Hello David, Example config updated! Thank you for reporting it. -ovidiu On Tue, Mar 15, 2022 at 8:59 AM David Villasmil wrote: > > Hello all, > > I was trying to implement db_text and the documentation states it should be > something like > > modparam("usrloc|auth_db", "db_url",

Re: [SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-05 Thread Ovidiu Sas
As long as traffic to IPv4_public : 5060 lands on IPv4_private: 5060, yes, you can use this double NAT setup. -ovidiu On Sat, Mar 5, 2022 at 08:35 Youssef Boujraf wrote: > Question : > > If kamailio is behind a double NAT setup > > Internet - (Model-router : NAT 1) - (router - NAT2) - kamailio

Re: [SR-Users] rtpengine - SRTP <> RTP missing a=crypto

2022-03-03 Thread Ovidiu Sas
Are you sure that you have multiple branches? You mentioned that you have kamailio in between asterisk and MS. In this case, usually this is a simple call with one branch. You have multiple branches if you fork the call (parallel forking: sending to multiple destinations when the initial invite is

Re: [SR-Users] Fwd: CDR preserve original call direction

2022-02-10 Thread Ovidiu Sas
Check the documentation and adjust your config accordingly: http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#acc.p.detect_direction modparam("acc", "detect_direction", 1) In your config is set to 0. Regards, Ovidiu Sas On Wed, Feb 9, 2022 at 08:01 Ahmed F

Re: [SR-Users] kamailio log dialog correlation

2022-01-24 Thread Ovidiu Sas
Hello Chad, See inline. On Mon, Jan 24, 2022 at 12:18 PM Chad wrote: > > Are you running 5.5? Yes. > Do you have log_prefix_mode=1 > If set to 1, then the log prefix is evaluated before/after each config action > (needs to be set when the log_prefix has > variables that are different based on

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Ovidiu Sas
IP and sends the response to my > 209.x external IP. > > > -- > ^C > > > On 1/16/22 1:38 PM, Ovidiu Sas wrote: > > Have you tried using the mask_ip param: > > > https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip > > < >

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Ovidiu Sas
ell enough to fight back. So why not build a solution for everyone > out there that has to deal with a bad actor? > > -- > ^C > > > On 1/15/22 11:40 AM, Ovidiu Sas wrote: > > As expected, your carrier is bogus and "thinks" it knows better. > > Your carr

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
o.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode Regards, Ovidiu Sas On Sat, Jan 15, 2022 at 1:28 PM Chad wrote: > > I changed the listen per your advice and here is the 200 and ACK. > I get no audio and the the call disconnects and I see this is the Asterisk

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
t wants to be > contacted for subsequent requests. That means that > the host part of the URI must be globally reachable by anyone. > If your contact contains a private IP (behind a NAT?) then it is wrong, > because other peers cannot reach you with that." > > > -- > ^C &

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
Oops ... copy/paste mistake: You need to replace: listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060 with listen=LISTEN_UDP_PRIVATE -ovidiu On Sat, Jan 15, 2022 at 1:07 PM Ovidiu Sas wrote: > > It doesn't look good because you have the public IP twice in the > Record-Route header. &

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
> a=rtpmap:101 telephone-event/8000 > a=fmtp:101 0-16 > a=ptime:20 > a=maxptime:150 > a=sendrecv > a=nortpproxy:yes > > > -- > ^C > > > On 1/15/22 9:05 AM, Ovidiu Sas wrote: > > You have a different problem then. > > Having private IPs in

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
It has something to do with the > routing table and how mhomed detects networks. > > -- > ^C > > > On 1/15/22 8:36 AM, Ovidiu Sas wrote: > > Hello Chad, > > > > The floating IPs that you have, are they both private IPs or one > > private IP and the other o

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
IC > > mhomed=1 > ip_free_bind=1 > > > In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have > been using it for a long time and have > rebooted as well): > net.ipv4.ip_nonlocal_bind=1 > -- > ^C > > > On 1/15/22 4:55 AM, Ovidiu Sas wrot

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
: echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind To make the change permanent, edit your sysctl.conf file and enable it there: net/ipv4/ip_nonlocal_bind = 1 Regards Ovidiu Sas On Sat, Jan 15, 2022 at 4:16 AM Chad wrote: > > We are looking for some help (possibly a paid consultant) t

Re: [SR-Users] Mid-dialog failover without virtual IP

2022-01-14 Thread Ovidiu Sas
Maybe we should deprecate and remove the advertise_address. -ovidiu On Fri, Jan 14, 2022 at 10:34 Daniel-Constantin Mierla wrote: > Hello, > > advertise_address is an old global parameter that is only for Via. Try to > use the advertise attribute for listen parameter -- see core cookbook for >

Re: [SR-Users] Kamailio Stop processing SIP traffic

2021-12-22 Thread Ovidiu Sas
Check with htop if you don't have any kamailio procs at 100% CPU (due to a deadlock). Do you see any errors in the logs? -ovidiu On Wed, Dec 22, 2021 at 11:44 AM pwerspire wrote: > > The CPU is around 30% during the test, is always really stable and memory > doesn't increase much. > > I'm

Re: [SR-Users] JSON Error

2021-11-25 Thread Ovidiu Sas
ess there was an alternate option. > > -dan > > -- > *From:* sr-users on behalf of > Ovidiu Sas > *Sent:* Wednesday, November 24, 2021 10:51:33 PM > *To:* Kamailio (SER) - Users Mailing List > > *Subject:* Re: [SR-Users] JSON Error > > A

Re: [SR-Users] JSON Error

2021-11-24 Thread Ovidiu Sas
Add a log in the config on each location and correlate with the error log. -ovidiu On Wed, Nov 24, 2021 at 22:37 Daniel W. Graham wrote: > That’s what I’m looking to do, but there are lots of locations in the > config file json is used and the error doesn’t give any indication what > call to

Re: [SR-Users] LCR Module not loading all rules from DB

2021-11-21 Thread Ovidiu Sas
Did you also check the kamailio logs (not the console)? Regards, Ovidiu Sas On Sun, Nov 21, 2021 at 03:36 M Arqum CH wrote: > No didn't get any error message in console. > > > On Fri, Nov 19, 2021, 10:39 PM Juha Heinanen wrote: > >> Do you get any error messages wh

Re: [SR-Users] upgrade kamailio 4.4.x-to-5.0.0 - PostgreSQL migrations

2021-10-01 Thread Ovidiu Sas
Hello Giovanni, You can check the postgres db scripts for each kamailio version under utils/kamctl/postgres. There you have the scripts for creating the postgress db tables. You can see the exact differences between versions by comparing the relevant files. This is how I double check the db

Re: [SR-Users] [VoLTE] 401 unauthorized error

2021-08-24 Thread Ovidiu Sas
Probably the 401 didn’t make it to the client and what you are seeing are retransmission. -ovidiu On Tue, Aug 24, 2021 at 11:54 오택경 wrote: > I tried to use all of the algorithms which fhoss can support, but they did > not work. > > Fortunately, I found that my UE did not send the digest

Re: [SR-Users] Password for pi_framework.xml - Xhttp_pi module

2021-07-27 Thread Ovidiu Sas
Hello Abdirahman, There’s no support for “defines” for the xhttp_pi file. Regards, Ovidiu Sas On Tue, Jul 27, 2021 at 11:34 Abdirahman Osman wrote: > Hello everyone, > > In the xhttp_pi file of pi_framework.xml,is there a way I can pass the > password to the xhttp_pi mod

Re: [SR-Users] Unable to establish TCP connection with Kamailio

2021-06-17 Thread Ovidiu Sas
this to happen? > > > > Thank you! > > > > Regards, > > > > Peter Manley > > > > > > Ovidiu Sas osas at voipembedded.com > Thu Jun 17 23:05:14 CEST 2021 > > Previous message (by thread): [SR-Users] Unable to establish T

Re: [SR-Users] handle_ruri_alias() and multiple aliases

2021-05-31 Thread Ovidiu Sas
is that all external connections are processed > as for NAT by default in my script. > > Is there any reason for improving the *handle_ruri_alias ()* function so > that we can specify the ordinal number of the alias parameter? > > > пн, 31 мая 2021 г. в 21:10, Ovidiu Sa

Re: [SR-Users] handle_ruri_alias() and multiple aliases

2021-05-31 Thread Ovidiu Sas
requests, it is ok to have a private IP in RURI and proper Route headers, The next SIP hop (the other proxy) will take care of properly routing the request. Regards, Ovidiu Sas On Mon, May 31, 2021 at 1:53 PM Denys Pozniak wrote: > > Hello! > > I need help understanding how the handl

Re: [SR-Users] Collecting stats from Kamailio.cfg using Kamailio_exporter Prometheus

2021-05-26 Thread Ovidiu Sas
scrape the metrics and use grafana to plot them. Enjoy! https://kamailio.org/docs/modules/devel/modules/jsonrpcs.html https://kamailio.org/docs/modules/devel/modules/jansson.html Regards, Ovidiu Sas On Wed, May 26, 2021 at 9:00 AM Hisham Ahmad Jan wrote: > > Hi Arsen, > Thank you for

Re: [SR-Users] Can't make tcp_conid_alive work with $var

2021-05-03 Thread Ovidiu Sas
Try to convert to int using the {s.int} transformation. Regards, Ovidiu Sas On Mon, May 3, 2021 at 5:41 PM David Villasmil wrote: > > Hello guys, > > I'm trying to do the following: > > On INVITE, i add a param to RR "wsconnid" which is the connection id of the >

Re: [SR-Users] possible bug on {param.value,name}

2021-05-03 Thread Ovidiu Sas
You should try something like this: $var(wsconnid) = $(hdr(Route){nameaddr.uri}{uri.param,wsconnid}) First you need to extract the URI, and then the URI parameter. The param.value transformation is expecting a true param list, not uri or nameaddress. Regards, Ovidiu Sas On Mon, May 3, 2021 at 3

Re: [SR-Users] Using sngrep for visualising encrypted SIP traffic

2021-03-24 Thread Ovidiu Sas
hanks for sharing, > Daniel > > On 24.03.21 13:39, Ovidiu Sas wrote: > > Hello Sergey, > > > > Glad that you find it interesting! > > > > -ovidiu > > > > On Wed, Mar 24, 2021 at 4:42 AM Sergey Safarov wrote: > >> Thanks, Ovidiu for link &g

Re: [SR-Users] Using sngrep for visualising encrypted SIP traffic

2021-03-24 Thread Ovidiu Sas
Hello Sergey, Glad that you find it interesting! -ovidiu On Wed, Mar 24, 2021 at 4:42 AM Sergey Safarov wrote: > > Thanks, Ovidiu for link > very interesting for me. > > On Wed, Mar 24, 2021 at 4:40 AM Ovidiu Sas wrote: >> >> Hello all, >> >> Here's a q

[SR-Users] Using sngrep for visualising encrypted SIP traffic

2021-03-23 Thread Ovidiu Sas
Hello all, Here's a quick recipe to ease the troubleshooting of encrypted SIP traffic: https://voipembedded.wordpress.com/2021/03/22/troubleshooting-kamailio-encrypted-sip-traffic/ Regards, Ovidiu Sas -- VoIP Embedded, Inc. http://www.voipembedded.com

Re: [SR-Users] Segmentation fault on debian 10

2021-03-03 Thread Ovidiu Sas
Follow the tutorial: https://kamailio.org/wiki/tutorials/troubleshooting/coredumpfile Regards, Ovidiu Sas On Wed, Mar 3, 2021 at 11:47 AM Bugaian A. Vitalie wrote: > > Hello, > > fresh install on debian 10: > > Mar 3 11:42:16 teams01 kernel: [ 5771.292626] kamailio[1518]: s

Re: [SR-Users] Profile name as variable in set_dlg_profile

2021-01-11 Thread Ovidiu Sas
03 PM Alex Balashov wrote: > > Ovidiu, > > See my previously expressed concern about data structures underneath. > > — > Sent from my iPad > > > On Jan 11, 2021, at 1:57 PM, Ovidiu Sas wrote: > > > > Having support for variables for "profiles_no_

Re: [SR-Users] Profile name as variable in set_dlg_profile

2021-01-11 Thread Ovidiu Sas
Having support for variables for "profiles_no_value" would be more or less the same thing as having a "profiles_with_value" with a key "general" or "default". The gain for adding this functionality would be minimal. Regards, Ovidiu Sas On Mon, Jan 11

Re: [SR-Users] loose_route() - Local Proxy

2021-01-07 Thread Ovidiu Sas
That parameter shouldn't really exist. It should be enabled by default in the code. This issue came a few times on the mailing list. Regards, Ovidiu On Thu, Jan 7, 2021 at 11:15 AM Duarte Rocha wrote: > > Hi, > > Thank you for your answers. > > The domain parameter "register_myself" solved this

Re: [SR-Users] Problems establishing SIP signaling between MsTeams and Kamailio

2021-01-07 Thread Ovidiu Sas
of certificates. Multiple certificates can be concatenated into one single file as stated in the documentation: https://kamailio.org/docs/modules/devel/modules/tls.html#tls.p.ca_list Hope this helps a little bit in understanding of the ca_list param. Regards, Ovidiu Sas On Thu, Jan 7, 2021 at 8:10 AM wrote

Re: [SR-Users] NAT problem with recvonly calls

2020-12-09 Thread Ovidiu Sas
The doorbell is the caller. ICE support would be required on the callee side (between NATed callee and asterisk). There's no need for ICE support on the doorbell/caller side. -ovidiu On Wed, Dec 9, 2020 at 2:42 AM Alex Balashov wrote: > > ICE support just doesn't seem to me to be something a

Re: [SR-Users] NAT problem with recvonly calls

2020-12-08 Thread Ovidiu Sas
Hello David, If the receiving NATed device has support for ICE, you can enable ICE support on the asterisk server and then the media should flow through (NAT pinholes are opened during ICE candidates negotiation). Regards, Ovidiu Sas On Mon, Dec 7, 2020 at 11:02 PM David Cunningham wrote

Re: [SR-Users] ERROR: [core/socket_info.c:2225]: parse_protohostport():

2020-10-20 Thread Ovidiu Sas
> > On Tuesday, October 20, 2020, Ovidiu Sas wrote: >> >> You should use yourproto:yourip:yourport >> yourproto could be udp|tcp|tls >> >> -ovidiu >> >> On Tue, Oct 20, 2020 at 12:07 PM Andy Kama wrote: >> > >> > I am seeing this error in

Re: [SR-Users] ERROR: [core/socket_info.c:2225]: parse_protohostport():

2020-10-20 Thread Ovidiu Sas
You should use yourproto:yourip:yourport yourproto could be udp|tcp|tls -ovidiu On Tue, Oct 20, 2020 at 12:07 PM Andy Kama wrote: > > I am seeing this error in the logs > > i am using kamailio 5.4.1 > any idea what the cause is? > > > ERROR: [core/socket_info.c:2225]: parse_protohostport():

Re: [SR-Users] usrloc_dmq - Suddenly stopped usrloc replication

2020-10-16 Thread Ovidiu Sas
oc.c:77]: mod_init(): dmq usrloc replication mode = > 1 > > > But I still have doubts why it happened, do you guys know any possible > reason that could make this happening? > > Thank you > > Best regards > José > > Ovidiu Sas escreveu no dia quinta, 15/10/2020 >

Re: [SR-Users] usrloc_dmq - Suddenly stopped usrloc replication

2020-10-15 Thread Ovidiu Sas
Compare the logs for the two cases. Also, check if there are any error logs for the case with missing processes. Regards, Ovidiu Sas On Thu, Oct 15, 2020 at 5:51 PM José Seabra wrote: > > Hi there, > so, I guess that I found the reason why it's not working, I noticed that it > sto

Re: [SR-Users] Setting up Kamailio IMS

2020-09-27 Thread Ovidiu Sas
Hello Luke, A simple web search on "kamailio ms teams" will lead you to this link: https://www.kamailio.org/w/2019/10/using-kamailio-as-sbc-for-microsoft-teams/ >From which you can navigate to this link: https://skalatan.de/en/blog/kamailio-sbc-teams Regards, Ovidiu Sas On Sun,

Re: [SR-Users] Kamailio Buildroot

2020-06-24 Thread Ovidiu Sas
proper compile and link flags while other modules require manual tinkering with the Makefile. It's good to enable the noisy build (Q=0) and check that proper include files and libs are used (from the staging directory and not from the build machine). Regards, Ovidiu Sas On Wed, Jun 24, 2020 at 4:52

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

2020-04-26 Thread Ovidiu Sas
There’s no need for FQDNs in Via headers for MS. IPs work just fine! You need FQDNs only in Route/Record-Route headers. Regards, Ovidiu Sas On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida wrote: > Comrade :) > > Thanks for the advices! I will try them. > > And yes, that is for inbo

Re: [SR-Users] Kamailio like SBC with Teams

2020-04-16 Thread Ovidiu Sas
header facing the carrier or use the FQDN for both Record-Route headers (just like in the tutorialexample). Alternatively, one can try to advertise the FQDN in the listen directive in the config and then the Record-Route headers should be populated automatically. Regards, Ovidiu Sas On Thu, Apr 16

Re: [SR-Users] Kamailio propagates 180 and 200 OK OUT OF ORDER

2020-04-14 Thread Ovidiu Sas
Nice hack! :) -ovidiu On Tue, Apr 14, 2020 at 5:27 PM Alex Balashov wrote: > > Hi Luis, > > Rather confusingly, there is an 'async_workers' parameter in the core as > well, which needs to be set: > > https://www.kamailio.org/wiki/cookbooks/5.3.x/core#async_workers > > There is some relationship

Re: [SR-Users] kamailio integration with MS teams.

2020-04-14 Thread Ovidiu Sas
The instructions are pretty clear in the sense that you need to fix the Record-Route header. You don't need to touch the Contact header for in-dialog requests/replies. Regards, Ovidiu Sas On Tue, Apr 14, 2020 at 12:19 PM Nasida Yuriy wrote: > > Hi guys, > > > Do you have

Re: [SR-Users] kamailio as SBC for Teams

2020-04-10 Thread Ovidiu Sas
The FQDN must be in the Contact of the OPTIONS request that is used for the trunk keep alive. No need to mess up with the Contact header for in dialog requests/replies. However, the FQDN must be in the Record-Route header facing MS for in dialog requests/replies. Regards, Ovidiu Sas On Fri, Apr

Re: [SR-Users] Printing xavp

2020-01-21 Thread Ovidiu Sas
Here's something that works: $xavp(x=>a) = "1"; $xavp(x[0]=>b) = "2"; $xavp(x=>a) = "10"; $xavp(x[0]=>b) = "20"; $xavp(x=>a) = "100"; $xavp(x[0]=>b) = "200"; $var(i) = 0; while (pv_isset("$xavp(x[$var(i)])")) { xlog("L_INFO", "[$mi] xavp_copy $var(i)\n");

Re: [SR-Users] Printing xavp

2020-01-21 Thread Ovidiu Sas
s pv_xapv_print(). > > Cheers, > Daniel > > On 20.01.20 23:07, Ovidiu Sas wrote: > > What's the best way to print the entire content of an xavp? > > The xavp_params_implode() doesn't print the entire stack of an xavp, > > only the top layer: > > > > The

Re: [SR-Users] Printing xavp

2020-01-20 Thread Ovidiu Sas
ode($xavp(route_set[$var(i)])) > $var(i) = $var(i) + 1; > } > > Quick answer ... > > > On Mon, Jan 20, 2020 at 2:08 PM Ovidiu Sas wrote: >> >> What's the best way to print the entire content of an xavp? >> The xavp_params_implode() doesn't print the entir

[SR-Users] Printing xavp

2020-01-20 Thread Ovidiu Sas
What's the best way to print the entire content of an xavp? The xavp_params_implode() doesn't print the entire stack of an xavp, only the top layer: The following code produces "c=d;e=f;" $xavp(x=>e) = "f"; $xavp(x[0]=>c) = "d"; $xavp(x[1]=>e) = "z"; $xavp(x[1]=>c) = "y";

Re: [SR-Users] Changing name of the 'versions' table

2019-12-31 Thread Ovidiu Sas
Here's the link: https://www.kamailio.org/wiki/cookbooks/devel/core#version_table -ovidiu On Tue, Dec 31, 2019 at 12:58 PM Alex Balashov wrote: > > Yes, there is a core config parameter that does just this and it exists for > the very reasons you mention. Check the core cookbook. > > — > Sent

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

2019-11-17 Thread Ovidiu Sas
Did it work calling save() on the reply route? -ovidiu On Thu, Nov 14, 2019 at 6:20 PM Voip support wrote: > > I am using kamailio 5.3. > > Ovidiu Sas, i will try this tomorrow today is bit late. Maybe it could work. > > David Villasmil , i know i can use SQLOPS but i was

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

2019-11-14 Thread Ovidiu Sas
Try to use save() when you process the 200 ok reply for REGISTER in the reply route. Regards, Ovidiu Sas On Thu, Nov 14, 2019 at 3:40 PM Voip support wrote: > > I setup kamailio to forward REGISTER packets using dispatcher to two servers > main and backup. > > The routing logic

Re: [SR-Users] SQlite in memory

2019-02-27 Thread Ovidiu Sas
on very old hardware. There's something else in your config creating issues. Regards, Ovidiu Sas On Wed, Feb 27, 2019 at 1:36 PM Duarte Rocha wrote: > > Ok, i reduced the number of processes and tried a few different values, but > the performance hasn't changed a lot. > >

Re: [SR-Users] Kamailio with oracle database

2019-02-25 Thread Ovidiu Sas
You need to use: sqlquery("connection_name","function Syntax ,"result variable") Please see the example in the docs: http://kamailio.org/docs/modules/5.2.x/modules/sqlops.html#idm1027846556 Regards, Ovidiu Sas On Mon, Feb 25, 2019 at 9:13 AM eyas barhouk wrote: > &g

Re: [SR-Users] Mysql to hastable conversion

2019-02-13 Thread Ovidiu Sas
Hello Duarte, Create a view for each htable that you want to use. Like this you can keep you existing table and config tools. Regards, Ovidiu Sas On Wed, Feb 13, 2019 at 12:14 PM Duarte Rocha wrote: > > Greetings, > > I have Kamailio has an SBC and i'm using a MySQL database

Re: [SR-Users] kamailio with oracle data base

2019-02-13 Thread Ovidiu Sas
12.2.0.1.0. For instaclient 18.3, the path for DEFS and LIBS most likely will need to be updated. Regards, Ovidiu Sas On Wed, Feb 13, 2019 at 5:35 AM eyas barhouk wrote: > > hello dears , > > is there any simple way to compile and add db_oracle module to kamailio 5.1.X > ??? >

Re: [SR-Users] cfg script 101

2018-05-17 Thread Ovidiu Sas
#sselect_index_separator 3. You can browse documentation here: http://www.kamailio.org/wiki/#cookbooks Regards, Ovidiu Sas On Wed, May 16, 2018 at 5:59 PM, KamDev Essa <kamdeve...@yahoo.com> wrote: > I have decided to do Hunting DIY. I needed some help with the cfg script > part and using a

Re: [SR-Users] is_audio_on_hold() doesn't support rfc3264

2018-02-02 Thread Ovidiu Sas
According to the code, both rfc2543 and rfc3264 are handled. Just tested this out with jitsi and it's working fine. Can you provide a sample of your tests? Regards, Ovidiu Sas On Tue, Oct 24, 2017 at 9:52 AM, Julia Boudniatsky <juli...@gmail.com> wrote: > FYI, > > After s

Re: [SR-Users] is_audio_on_hold() doesn't support rfc3264

2017-10-31 Thread Ovidiu Sas
I updated the documentation to reflect this. If you need support for RFC3264, please open a ticket. Regards, Ovidiu Sas On Tue, Oct 24, 2017 at 9:52 AM, Julia Boudniatsky <juli...@gmail.com> wrote: > FYI, > > After some tests found, that function "is_audio_on_hold()"

  1   2   3   >