[SR-Users] Re: Sudden TCP errors and shared memory spikes

2024-04-29 Thread David Cunningham via sr-users
Hi Henning,

Thank you for that. I was not sure what direction to take traces in, so
possible network issues with clients using TCP is a good indicator. We'll
look into that.


On Mon, 29 Apr 2024 at 22:20, Henning Westerholt  wrote:

> Hello,
>
>
>
> if Kamailio can’t send out messages due to network issues I would expect
> some spikes in private and/or shared memory usage.
>
>
>
> Have you investigated e.g., with some traces to get more information about
> the possible causes of this issues?
>
>
>
> Besides that, with the given information I can only recommend the usual
> update to the latest stable version (e.g. 5.8.1) as the 5.2.x release
> series is long end of life.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* David Cunningham via sr-users 
> *Sent:* Freitag, 26. April 2024 02:27
> *To:* Kamailio (SER) - Users Mailing List 
> *Cc:* David Cunningham 
> *Subject:* [SR-Users] Sudden TCP errors and shared memory spikes
>
>
>
> Hello,
>
>
>
> We have a production Kamailio 5.2.7 server which has suddenly started
> reporting spikes in the shared memory use. When looking into this, we
> noticed that at the same time as the memory spikes Kamailio also logs a
> huge amount of errors like the following.
>
>
>
> Can anyone help with an explanation for what's going on? The xx.xx.52.202
> address is the Kamailio server itself. We record historical numbers of
> network connections for the server overall, and that doesn't show any
> increase in the number of TCP connections, either at the time of the spikes
> or as a general trend.
>
>
>
> Thanks in advance!
>
>
>
> Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: ERROR: 
> [core/tcp_main.c:2703]: tcpconn_1st_send(): connect xx.xx.52.202:42726
> failed (RST) Connection refused
> Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: ERROR: 
> [core/tcp_main.c:2711]: tcpconn_1st_send(): xx.xx.52.202:42726: connect &
> send  for 0x14bbf44c9f40 failed: Connection refused (111)
> Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: ERROR: tm
> [../../core/forward.h:293]: msg_send_buffer(): tcp_send failed
> Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: WARNING: 
> [core/tcp_main.c:1149]: tcp_do_connect(): xx.xx.52.202:42726: could not
> find corresponding listening socket for xx.xx.52.202, using default...
>
>
>
> --
>
> David Cunningham, Voisonics Limited
> http://voisonics.com/
> USA: +1 213 221 1092
> New Zealand: +64 (0)28 2558 3782
>


-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: tls_threads_mode and app_python3 module

2024-04-29 Thread Ihor Olkhovskyi via sr-users

Just a mention,

Fixed in https://github.com/kamailio/kamailio/issues/3832

All kudos to https://github.com/space88man

Le 26/04/2024 à 14:58, Ihor Olkhovskyi a écrit :

Hello,

Just to confirm, as I quickly checked into a code of 5.8.x branch, 
there were no modification on app_python3 module to comply with 
tls_threads_mode mechanism?


Asking this beforehand posting a bug, that if using a quite simple 
script into module, with tls_threads_mode = 2 Kamailio just hangs at 
the start and become unresponsive.


And by simple I mean something like this

class PyKamailio:
    def __init__(self):
        self.test = 1
    def child_init(self, rank):
        """Executed by app_python module when a new worker process 
(child) is initialized by Kamailio."""

        return 1

def mod_init():
    """ Executed by app_python module when it is initialized by 
Kamailio."""

    return PyKamailio()

with tls_threads_mode = 1 and 3 it loads, but if add some HTTPS calls 
inside the script (even not the calls, but importing the methods, that 
are making calls with import), it just start failing on TLS load, 
despite that on packets processed (OPTIONS) no python_exec() is 
called, just from the fact of having HTTPS calls into Python script.


--
Best regards,
Ihor (Igor)__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] RTP Engine with Kamailio hold issue

2024-04-29 Thread Vishal Pai via sr-users
Hello Everyone


I am using kamailio with RTP engine for wss to udp to connect my asterisk
server. It all works well like wss to UDP registration via kamailio to
asterisk. Here I am facing an issue with call hold i.e if I hold the call
from B leg it gets disconnected.

Any advice why it get failed and hangups

Thanks
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Error by installing new Rel. 5.8

2024-04-29 Thread Henning Westerholt via sr-users
Hello,

check where your modules were actually installed and adapt your cfg module path 
if necessary. It can not find the modules as indicated from the error messages.

Cheers,

Henning


> -Original Message-
> From: lm.eng--- via sr-users 
> Sent: Donnerstag, 25. April 2024 10:59
> To: sr-users@lists.kamailio.org
> Cc: lm@live.com
> Subject: [SR-Users] Error by installing new Rel. 5.8
> 
> Hello,,
> 
> I am using this docker file for installaing kamailio. I wana use it with 
> open5gs
> for trynig VoNR , I used before it for VoLTE it works but right now I have 
> this
> error in installation process.
> 
> 
> icscf  |  0(34) ERROR:  [core/sr_module.c:527]: ksr_locate_module():
> could not find module  in  lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/mo
> dules/:/usr/lib/x86_64-linux-
> gnu/kamailio/modules/:/usr/local/lib64/kamailio/  
>   modules>
> icscf  |  0(34) CRITICAL:  [core/cfg.y:4008]: yyerror_at(): parse 
> error in
> config file /etc/kamailio_icscf/kamailio_icscf.cfg, line 94, colu
> mn 12-19: failed to load module
> scscf  |  0(38) ERROR:  [core/sr_module.c:527]: ksr_locate_module():
> could not find module  in  lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/mo
> dules/:/usr/lib/x86_64-linux-
> gnu/kamailio/modules/:/usr/local/lib64/kamailio/
> 
> 
> 
> 
> and there is docker file that Im using:
> 
> FROM ubuntu:focal
> 
> ENV DEBIAN_FRONTEND=noninteractive
> 
> # Install updates and dependencies
> RUN apt-get update && \
> apt-get -y install mysql-server tcpdump screen tmux ntp ntpdate 
> git-core
> dkms \
> gcc flex bison libmysqlclient-dev 
> make libssl-dev libcurl4-
> openssl-dev \
> libxml2-dev libpcre2-dev 
> bash-completion g++ autoconf
> libmnl-dev \
> libsctp-dev libradcli-dev libradcli4 
> libjson-c-dev pkg-config
> iproute2 net-tools \
> iputils-ping
> 
> # Fetch Kamailio code (branch 5.3)
> RUN mkdir -p /usr/local/src/ && cd /usr/local/src/ && \
> git clone https://github.com/kamailio/kamailio && \
> cd kamailio && git checkout 5.8
> 
> # Build and Install Kamailio
> RUN cd /usr/local/src/kamailio && make cfg COPY modules.lst
> /usr/local/src/kamailio/src RUN cd /usr/local/src/kamailio && \
> make -j`nproc` Q=0 all | tee make_all.txt && \
> make install | tee make_install.txt && \
> ldconfig
> 
> 
> 
> 
> COPY kamailio_init.sh /
> CMD /kamailio_init.sh
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Kamailio works but voice is not present during the calls!

2024-04-29 Thread christian.marinelli--- via sr-users
Henning Westerholt wrote:
> Hello,
> 
> I think you just don't need to install the rtpengine kernel modules package, 
> then it
> should not be done.
> 
> Cheers,
> 
> Henning
> 
> >   -Original Message-
> >  From: christian.marinelli--- via sr-users 
> > sr-users(a)lists.kamailio.org
> >  Sent: Montag, 29. April 2024 14:28
> >  To: sr-users(a)lists.kamailio.org
> >  Cc: christian.marinelli(a)hotmail.it
> >  Subject: [SR-Users] Re: Kamailio works but voice is not present during the
> >  calls!
> >  
> >  Henning Westerholt wrote:
> >   Hello,
> > 
> >  regarding the package compilation phase at installing rtpengine, this
> >  is required if you want to use the kernel module for better performance.
> >  If you don't install the kernel module, there should be no compilation
> >  and no compiler etc.. installed. Just try if this fits more to your 
> > requirements.
> > 
> >  Cheers,
> > 
> >  Henning  
> >  Hi @Henning Westerholt,
> >  this is interesting but when i install the package all start automatically.
> >  How can i disable this function (compilation for kernel module)?
> >  Maybe i need to install a different packege?
> >  Thank you in advance
> >  Christian
> >  __
> >  Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> >  send an email to sr-users-leave(a)lists.kamailio.org
> >  Important: keep the mailing list in the recipients, do not reply only to 
> > the
> >  sender!
> >  Edit mailing list options or unsubscribe:

Hi @Henning Westerholt,
i made some test on a testing environment and i saw there are these packages:

rtpengine - NGCP RTP/media proxy - metapackage
rtpengine-daemon - proxy for RTP and media streams used in NGCP, userspace part
rtpengine-iptables - IPtables extension module for the kernel-space NGCP media 
proxy
rtpengine-kernel-dkms - IPtables kernel module for the NGCP media proxy - DKMS
rtpengine-perftest - helper tool to test rtpengine transcoding performance
rtpengine-perftest-data - helper tool to test rtpengine transcoding performance 
- data files
rtpengine-recording-daemon - recording daemon for RTP and media streams
rtpengine-utils - scripts and Perl modules for NGCP rtpengine

I used to install the rtpengine package (the first one) that is in real a 
metapackage that install all the other ones.
I tried to install only the rtpengine-daemon and indeed it seems there will be 
downloaded 150MB of dependencies for a total of 400MB on the disk.
Maybe you refered to this?
In this way there isn't any compilationand i hope there will be all we need 
for the rtpengine configuration :)
Christian
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Kamailio works but voice is not present during the calls!

2024-04-29 Thread Henning Westerholt via sr-users
Hello,

I think you just don't need to install the rtpengine kernel modules package, 
then it should not be done.

Cheers,

Henning

> -Original Message-
> From: christian.marinelli--- via sr-users 
> Sent: Montag, 29. April 2024 14:28
> To: sr-users@lists.kamailio.org
> Cc: christian.marine...@hotmail.it
> Subject: [SR-Users] Re: Kamailio works but voice is not present during the
> calls!
> 
> Henning Westerholt wrote:
> > Hello,
> >
> > regarding the package compilation phase at installing rtpengine, this
> > is required if you want to use the kernel module for better performance.
> > If you don't install the kernel module, there should be no compilation
> > and no compiler etc.. installed. Just try if this fits more to your 
> > requirements.
> >
> > Cheers,
> >
> > Henning
> 
> Hi @Henning Westerholt,
> this is interesting but when i install the package all start automatically.
> How can i disable this function (compilation for kernel module)?
> Maybe i need to install a different packege?
> Thank you in advance
> Christian
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Understanding NAT Flags

2024-04-29 Thread Henning Westerholt via sr-users
Hello,

FLT_NATS - NAT source (source behind NAT)
FLB_NATB - NAT branch (usrloc destination behind NAT)

As Alex mentioned, there are different ways to do NAT handling. Some people 
prefer the manual approach as done in the kamailio default configuration, some 
(more) people nowadays just to it in all cases and not differentiate that much 
anymore.

Cheers,

Henning 

-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

> -Original Message-
> From: Benoit Panizzon via sr-users 
> Sent: Montag, 29. April 2024 12:13
> To: sr-users@lists.kamailio.org
> Cc: Benoit Panizzon 
> Subject: [SR-Users] Understanding NAT Flags
> 
> Hi Gang
> 
> Somehow I don't get my head around NAT Flags and the nathelper module
> https://www.kamailio.org/docs/modules/5.7.x/modules/nathelper.html
> 
> In the examples I found, there is: FLT_NATS and FLB_NATB
> 
> If I got it right, FLB_NATB is a branch flag, which shall indicate that the 
> device is
> 'B'ehind NAT, right?
> 
> It is being set, when FLT_NATS is set:
> 
> if(isflagset(FLT_NATS)) {
> setbflag(FLB_NATB);
> }
> 
> But when should FLT_NATS be set and what is it's meaning? The examples I
> found don't tell me this.
> 
> Mit freundlichen Grüssen
> 
> -Benoît Panizzon-
> --
> I m p r o W a r e   A G-Leiter Commerce Kunden
> __
> 
> Zurlindenstrasse 29 Tel  +41 61 826 93 00
> CH-4133 PrattelnFax  +41 61 826 93 01
> Schweiz Web  http://www.imp.ch
> __
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Understanding NAT Flags

2024-04-29 Thread Benoit Panizzon via sr-users
Hi Alex

> I wouldn't worry too much about these. They're kind of an anachronism.

I just stumbled over your article:
https://www.cnblogs.com/shunzh/p/14360712.html

This helps a bit. After looking again at the issue I observe, I think I
have narrowed it down on the alias not being set on the replies.

So a 200 OK from a CPE behind nat, has a contact pointing to the IP
behind nat. Thus an ACK to that 200 OK is being routed to the IP behind
NAT.

I will keep digging into this and probably just have to get rid of
trying to understand how the NAT flags are being used in those examples
I found earlier.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G-Leiter Commerce Kunden
__

Zurlindenstrasse 29 Tel  +41 61 826 93 00
CH-4133 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Understanding NAT Flags

2024-04-29 Thread Alex Balashov via sr-users
I had no idea the Chinese syndicated my article:

https://www.cnblogs.com/shunzh/p/14360712.html

Ah well.

Yeah, just use set_contact_alias() / handle_ruri_alias(). These flags are 
unnecessary and a source of much confusion.

> On Apr 29, 2024, at 9:17 AM, Benoit Panizzon  wrote:
> 
> Hi Alex
> 
>> I wouldn't worry too much about these. They're kind of an anachronism.
> 
> I just stumbled over your article:
> https://www.cnblogs.com/shunzh/p/14360712.html
> 
> This helps a bit. After looking again at the issue I observe, I think I
> have narrowed it down on the alias not being set on the replies.
> 
> So a 200 OK from a CPE behind nat, has a contact pointing to the IP
> behind nat. Thus an ACK to that 200 OK is being routed to the IP behind
> NAT.
> 
> I will keep digging into this and probably just have to get rid of
> trying to understand how the NAT flags are being used in those examples
> I found earlier.
> 
> Mit freundlichen Grüssen
> 
> -Benoît Panizzon-
> -- 
> I m p r o W a r e   A G-Leiter Commerce Kunden
> __
> 
> Zurlindenstrasse 29 Tel  +41 61 826 93 00
> CH-4133 PrattelnFax  +41 61 826 93 01
> Schweiz Web  http://www.imp.ch
> __

-- 
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Understanding NAT Flags

2024-04-29 Thread Alex Balashov via sr-users
I wouldn't worry too much about these. They're kind of an anachronism.

> On Apr 29, 2024, at 6:13 AM, Benoit Panizzon via sr-users 
>  wrote:
> 
> Hi Gang
> 
> Somehow I don't get my head around NAT Flags and the nathelper module
> https://www.kamailio.org/docs/modules/5.7.x/modules/nathelper.html
> 
> In the examples I found, there is: FLT_NATS and FLB_NATB
> 
> If I got it right, FLB_NATB is a branch flag, which shall indicate that
> the device is 'B'ehind NAT, right?
> 
> It is being set, when FLT_NATS is set:
> 
>if(isflagset(FLT_NATS)) {
>setbflag(FLB_NATB);
>}
> 
> But when should FLT_NATS be set and what is it's meaning? The examples I
> found don't tell me this.
> 
> Mit freundlichen Grüssen
> 
> -Benoît Panizzon-
> -- 
> I m p r o W a r e   A G-Leiter Commerce Kunden
> __
> 
> Zurlindenstrasse 29 Tel  +41 61 826 93 00
> CH-4133 PrattelnFax  +41 61 826 93 01
> Schweiz Web  http://www.imp.ch
> __
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

-- 
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Kamailio works but voice is not present during the calls!

2024-04-29 Thread christian.marinelli--- via sr-users
Henning Westerholt wrote:
> Hello,
> 
> regarding the package compilation phase at installing rtpengine, this is 
> required if you
> want to use the kernel module for better performance.
> If you don't install the kernel module, there should be no compilation and no 
> compiler
> etc.. installed. Just try if this fits more to your requirements.
> 
> Cheers,
> 
> Henning

Hi @Henning Westerholt,
this is interesting but when i install the package all start automatically.
How can i disable this function (compilation for kernel module)?
Maybe i need to install a different packege?
Thank you in advance
Christian
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Sudden TCP errors and shared memory spikes

2024-04-29 Thread Henning Westerholt via sr-users
Hello,

if Kamailio can’t send out messages due to network issues I would expect some 
spikes in private and/or shared memory usage.

Have you investigated e.g., with some traces to get more information about the 
possible causes of this issues?

Besides that, with the given information I can only recommend the usual update 
to the latest stable version (e.g. 5.8.1) as the 5.2.x release series is long 
end of life.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: David Cunningham via sr-users 
Sent: Freitag, 26. April 2024 02:27
To: Kamailio (SER) - Users Mailing List 
Cc: David Cunningham 
Subject: [SR-Users] Sudden TCP errors and shared memory spikes

Hello,

We have a production Kamailio 5.2.7 server which has suddenly started reporting 
spikes in the shared memory use. When looking into this, we noticed that at the 
same time as the memory spikes Kamailio also logs a huge amount of errors like 
the following.

Can anyone help with an explanation for what's going on? The xx.xx.52.202 
address is the Kamailio server itself. We record historical numbers of network 
connections for the server overall, and that doesn't show any increase in the 
number of TCP connections, either at the time of the spikes or as a general 
trend.

Thanks in advance!

Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: ERROR:  
[core/tcp_main.c:2703]: tcpconn_1st_send(): connect xx.xx.52.202:42726 failed 
(RST) Connection refused
Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: ERROR:  
[core/tcp_main.c:2711]: tcpconn_1st_send(): xx.xx.52.202:42726: connect & send  
for 0x14bbf44c9f40 failed: Connection refused (111)
Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: ERROR: tm 
[../../core/forward.h:293]: msg_send_buffer(): tcp_send failed
Apr 26 09:23:16 vpbx11 /sbin/kamailio[44272]: WARNING:  
[core/tcp_main.c:1149]: tcp_do_connect(): xx.xx.52.202:42726: could not find 
corresponding listening socket for xx.xx.52.202, using default...

--
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Understanding NAT Flags

2024-04-29 Thread Benoit Panizzon via sr-users
Hi Gang

Somehow I don't get my head around NAT Flags and the nathelper module
https://www.kamailio.org/docs/modules/5.7.x/modules/nathelper.html

In the examples I found, there is: FLT_NATS and FLB_NATB

If I got it right, FLB_NATB is a branch flag, which shall indicate that
the device is 'B'ehind NAT, right?

It is being set, when FLT_NATS is set:

if(isflagset(FLT_NATS)) {
setbflag(FLB_NATB);
}

But when should FLT_NATS be set and what is it's meaning? The examples I
found don't tell me this.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G-Leiter Commerce Kunden
__

Zurlindenstrasse 29 Tel  +41 61 826 93 00
CH-4133 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Kamailio works but voice is not present during the calls!

2024-04-29 Thread Henning Westerholt via sr-users
Hello,

regarding the package compilation phase at installing rtpengine, this is 
required if you want to use the kernel module for better performance.
If you don't install the kernel module, there should be no compilation and no 
compiler etc.. installed. Just try if this fits more to your requirements.

Cheers,

Henning


-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

> -Original Message-
> From: christian.marinelli--- via sr-users 
> Sent: Freitag, 26. April 2024 18:23
> To: sr-users@lists.kamailio.org
> Cc: christian.marine...@hotmail.it
> Subject: [SR-Users] Re: Kamailio works but voice is not present during the
> calls!
> 
> Sergio Charrua wrote:
> > The best solution is to use RTPEngine. Just don't reinvent the wheel,
> > do as "best practices".
> > Also, setting up and configuring RTPEngine is really easy and you
> > would just need to add a couple of lines of code on the kamailio script.
> > Here are a couple of links to help you on that quest:
> >
> > Configuring RTPEngine in Kamailio: A Quick Guide – Blog for the Tech
> > Community (voipnuggets.com)
> >  > a-quick-guide/>
> >
> > And good old Nick's headbutts with networking Kamailio Bytes – Setting
> > up rtpengine in Kamailio to relay RTP / Media | Nick vs Networking
> >  > tpengine/>
> >
> >
> >
> > *Sérgio Charrua*
> >
> > On Fri, Apr 26, 2024 at 11:48 AM christian.marinelli--- via sr-users <
> > sr-users(a)lists.kamailio.org wrote:
> >
> > >   christian.marinelli@hotmail.it wrote:
> > >   Hi Sergio,
> > >  thank you for you support and thank you about the three
> > > posibilities you  suggest to me!
> > >
> > >  I prefer the second one because the third could create problems
> > > with  other services in the
> > >   VPN and the first one is a little bit difficult for a neophyte
> > > user with  SIP concepts.
> > >   So i prefer the second one!
> > >  Can you suggest me how i can change my Kamailio configuration to do
> > > this behavior?
> > >   Thanks you so much in advance
> > >  Christian
> > >  Hi @sergio charrua,
> > >  the last days i tryed to search and study how to set my Kamailio
> > > server to  modify the SDP content and replace  internal/private IP
> > > addresses with the public addresses, but...without  success! :(  Can
> > > you help me to understand how can i modify the Kamailio
> > > configuration  to do this?
> > >  Thank you in advance
> > >  Christian
> > >  __
> > >  Kamailio - Users Mailing List - Non Commercial Discussions  To
> > > unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
> > >  Important: keep the mailing list in the recipients, do not reply
> > > only to  the sender!
> > >  Edit mailing list options or unsubscribe:
> > >
> 
> Hi @Sergio Charrua,
> i tried this solution in a testing environment and i can confirm you it semmes
> not very difficult, buti have some doubts:
> 
> 1) To install the package on a Ubuntu 22.04 server, i need to set a specific
> repository as you can see in this guide:
> https://dfx.at/rtpengine/
> Moreover, i need to manually install a librery by following this step because 
> it is
> not available in the standard Ubuntu repository:
> https://gist.github.com/joulgs/c8a85bb462f48ffc2044dd878ecaa786
> Is it correct? As i can read, it is the only way to install the package 
> without
> compiling it.
> 
> 2) To install the package, the APT package manager need to download 250MB
> of packages and dependencies to a total of 700MB of space on the disk and at
> the end of the installation it seems to compile something.
> I don't know if this is correct but i think that's a bit umcomfortable 
> (install
> 700MB of packages for a only one need)...
> 
> Are you sure the second solution is not possible?
> In the production environment i think i can't install all these things
> Thank you a lot
> Christian
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe
> send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Outbound Proxy/Forwarder

2024-04-29 Thread Henning Westerholt via sr-users
Hello,

the default cfg is usually not a bad starting point. There are e.g. also parts 
in it for authentication, both for username/password based and also for 
ip-based.
You can actually activate the ip authentication with a define, I think.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: Blake Ivey via sr-users 
Sent: Sonntag, 28. April 2024 23:46
To: sr-users@lists.kamailio.org
Cc: Blake Ivey 
Subject: [SR-Users] Outbound Proxy/Forwarder


Hi everyone,

New user who is trying to make an outbound proxy to route a lot of freepbx 
boxes for outbound calls.

I got this setup and working using dsiprouter. Calls come in from freepbx trunk 
using outbound proxy, authenticated using IP auth, and then gets signed with 
our stirshaken cert, then routes out to our carriers.

Interested in using plain kamailio. Got everything compiled and libstirshaken 
compiled.

Just wanted to see if someone could point me in the right direction for the cfg 
file.

I assume I would match how I have it in dsiprouter. That config has a lot of 
things I'm not using and having a hard time deciphering it.

My thoughts on what I need:

MySQL database. Have a table for ip auth,  a table for voice carriers, and a 
table for 911 carriers.

Invite comes in, it checks ip auth table and responds with 403 if it's not on 
the list. If it is, proceed to stir shaken signing, and then route the call? I 
assume I will need to have some logic to tell voice calls and emergency calls.

I got plain old routing/forwarding working and now want to focus on locking it 
down.

Any thoughts, examples configs, anything would be awesome.

I am hoping to get this working and then having a primary/standby or even load 
balancing them but im in the very early stages of trying to get my head around 
Kamailio.

Thanks for any insights!

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] How to identify the instances of a looping call (including all replies and on all transactions)

2024-04-29 Thread Benoit Panizzon via sr-users
Hi List

I have stumbled over this challenge:

I have a kamailio server without dialog module. Only tmx module, acting
as registrar / rtpengine host.

If the call is routed over that server once, this works fine.

If the call is routed more than once (call from one location to another
on same registrar, call forwarding) then to correctly work, I would need
to engage rtpengine in a way to tell rtpengine to handle both call legs
separately.

By default, rtpengine identifies one call by Call-ID,FromTag,ToTag so
it considers all invocations to target one instance and on the 2nd
invocations it replaces the source rtp ip by it's own ip killing audio.

Using 'loop-protect' to prevent the 2nd invocation 'sort-of' works, but
not cleanly if I use different 'private' ip ranges on my voice core and
IC network to which CPE should not talk.

It is possible to pass a custom Call-ID to rtpengine. So this is how I
am considering finding a solution.

When passing the call-id to rtpengine I could append a leg identifier
to that call-id.

like $avp(rtp-callid) = $ci + $var(leg-id)

How could I reliably generate this leg-id / tell the legs apart?

Consider this situation:

  leg 1  leg 2
CPE-A => Kam-Reg => Routing Core => Kam-Reg => CPE-B

Also I wonder if I can use an AVP at all? From Kamailio's Point of
view, the first invite being routed twice could be the same transaction
with same shared AVP, right?

Is there a way to pass some information via flags appended route-header?
Or maybe use the count of via or route header to tell the legs apart?

Any ideas very appreciated.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G-Leiter Commerce Kunden
__

Zurlindenstrasse 29 Tel  +41 61 826 93 00
CH-4133 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: How to use environment variable

2024-04-29 Thread Olle E. Johansson via sr-users


> On 28 Apr 2024, at 10:57, Pavan Kumar via sr-users 
>  wrote:
> 
> Hi everyone,
> 
> I am trying to assign environment variable as follows
> 
> listen=udp:0.0.0.0:5060  advertise $env(MY_IP):5060
> 
> Looks like using the environment variable as above is an invalid 
> configuration.
> 
> Is there a way to use IP from env var to advertise. Even better, is there a 
> way to use result in a stun query as an advertised address?

The config variables (called pseudo-variables in documentation) can only be 
used in the routing scripts, not in the core parameters section.

There is a way to add defines for substitution on the command line and use them 
though. Check the documentation in the core cookbook on how to use defines and 
the command line help for more information.

/O__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: