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

2024-04-22 Thread Sergio Charrua via sr-users
Christian,

instead of sharing screenshots, please share the SIP PCAP (use
tshark/wireshark or sngrep) file with SIP signaling, it will ease the
analysis and get you better help.
I can't understand why messages are repeated exactly 3 times.
Retransmissions?!

*Sérgio Charrua*



On Mon, Apr 22, 2024 at 7:11 PM christian.marinelli--- via sr-users <
sr-users@lists.kamailio.org> wrote:

> Hi, thank you...
> This is a tcpdump made during a call without voice (the problem):
>
>
> https://docs.google.com/document/d/1xrxcJhTpw62z7TBymXOMecSauKqT3ZCJIc7gBldVZB0/edit?usp=sharing
>
> And this is a packets sniff on the net:
>
>
> https://drive.google.com/file/d/1emKfQmnvrpAjH-Z3KCHZl7fpipEw4Bzm/view?usp=sharing
>
> I had to upload them on Drive because there aren't a code function on this
> forum and the possibility to upload an image.
> 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: Missing newline in dbtext tables causes crash and core dump

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

it should indeed not crash. If you can reproduce it, it would be great if you 
can create an issue on our tracker about it. Ideally also append a small cfg 
and a small example dbtext file that shows the crash.

Thanks,

Henning

From: Marrold via sr-users 
Sent: Montag, 22. April 2024 19:11
To: Kamailio (SER) - Users Mailing List 
Cc: Marrold 
Subject: [SR-Users] Missing newline in dbtext tables causes crash and core dump

Hi all,

I am using Kamailio 5.7.4 on a Debian 12 machine. I used ansible to template 
some files, and a newline was omitted at the end of the uacreg table due to a 
templating issue.

This caused kamailio to crash on start up, with the error:
20(27) CRITICAL:  [core/pass_fd.c:281]: receive_fd(): EOF on 24

Even with debug enabled it still wasn't clear the issue was caused by the uac 
module. I had to do a gdb backtrace to figure it out.

Whilst the mistake was on my part, I wondered if this should be handled more 
cleanly?

Cheers
Matthew
__
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] Missing newline in dbtext tables causes crash and core dump

2024-04-22 Thread Marrold via sr-users
Hi all,

I am using Kamailio 5.7.4 on a Debian 12 machine. I used ansible to
template some files, and a newline was omitted at the end of the uacreg
table due to a templating issue.

This caused kamailio to crash on start up, with the error:

20(27) CRITICAL:  [core/pass_fd.c:281]: receive_fd(): EOF on 24

Even with debug enabled it still wasn't clear the issue was caused by the
uac module. I had to do a gdb backtrace to figure it out.

Whilst the mistake was on my part, I wondered if this should be handled
more cleanly?

Cheers
Matthew
__
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-22 Thread christian.marinelli--- via sr-users
Hi, thank you...
This is a tcpdump made during a call without voice (the problem):

https://docs.google.com/document/d/1xrxcJhTpw62z7TBymXOMecSauKqT3ZCJIc7gBldVZB0/edit?usp=sharing

And this is a packets sniff on the net:

https://drive.google.com/file/d/1emKfQmnvrpAjH-Z3KCHZl7fpipEw4Bzm/view?usp=sharing

I had to upload them on Drive because there aren't a code function on this 
forum and the possibility to upload an image.
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: Incoming IPv6 is send to IPv4 of the PBX instead of IPv6

2024-04-22 Thread Bernd Krueger-Knauber via sr-users

But ...

now I have the opposite.

I always use IPv6 for outgoing.

I would like to use the same address family for outgoing as it is 
incoming. (if possible)



Bernd


__
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: Incoming IPv6 is send to IPv4 of the PBX instead of IPv6

2024-04-22 Thread Bernd Krueger-Knauber via sr-users

Hi Sergey,

you nailed it!

Thank you for your fast response.
If you know where to look it appears simple.
But if you have no idea from where the problem comes from ...

Best regards,

Bernd

__
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-22 Thread davy van de moere via sr-users
checkout the tool sngrep, and try to export us some call traces, they will
tell us a lot

Op ma 22 apr 2024 om 16:47 schreef christian.marinelli--- via sr-users <
sr-users@lists.kamailio.org>:

> Hi, thank you...
> Did you refer to the Kamailio log file? Am i right?
> 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: Kamailio works but voice is not present during the calls!

2024-04-22 Thread Benoit Panizzon via sr-users
Ciao Christian

> I set up a Kamailio SIP server in a virtual machine on a private network and 
> i connect to this with a WireGuard VPN.

Maybe, provide more insight

Your Kamailio-Server also acts as the WireGuard Server?
All your SIP clients connect using WireGuard?

Can you ping from one WireGuard client to another?

An usual WireGuard Set-Up would look like:

WG-Server: 192.168.10.1/24

Client 1: 192.168.10.2/24 allowed IP: 0.0.0.0/0 (if you route all
trafic through the tunnel or 192.168.10.0/24 if you only want to route
that network)

Client 2: 192.168.10.3/24 and same allowed IP.

If you by mistake configured a client with a /32 netmask, it will not
be able to communicate with the other client, will not be able to
exchange direct RTP data.

Also make sure, Kamailio indeed listens to 192.168.10.1 and not to a
different IP.

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-22 Thread Benoit Panizzon via sr-users
Ciao Christian

Unless you use rtpengine or similar, Kamailio won't do anything with
RTP.

So I fear, you have to sniff the INVITE + DSP and 200 OK + SDP of one
of those calls without audio. (tcpdump -nvs0 port 5060 on the kamailio
host for example)

Look at the

c=IN and m=audio lines in the SDP

The c=IN contains the IP address, the m=audio the port

Can the IP in the INVITE directly communicate wit the IP in the 200 OK
Reply and vice versa, or is one of them a 'private' IP behind NAT?

Can you ping from one ip to the other? What does traceroute from one ip
to the other say?

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-22 Thread christian.marinelli--- via sr-users
Hi,
thank you for your answer.
I don't use FIREWALL or/and NAT on my net, so i think there aren't problems 
with this component
I can help you with some configurations files or logs?
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-22 Thread christian.marinelli--- via sr-users
Hi, thank you...
Did you refer to the Kamailio log file? Am i right?
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: Incoming IPv6 is send to IPv4 of the PBX instead of IPv6

2024-04-22 Thread Sergey Safarov via sr-users
dns_cache_flags = 4

https://www.kamailio.org/wikidocs/cookbooks/5.6.x/core/#dns_cache_flags

On Mon, Apr 22, 2024 at 3:18 PM Bernd Krueger-Knauber via sr-users <
sr-users@lists.kamailio.org> wrote:

> Hi,
>
> I set up a transparent kamailo proxy for IPv4 and IPv6.
>
> The PBX which should be reached can handle both.
> Now I have the case that the phone comes in on IPv6, but kamailio sends
> it out via IPv4.
> If I ping the PBX on the kamailio server (debian) I get the IPv6
> address, since it is preferred.
>
> Why does kamailio send to the IPv4 address of the PBX?
> And how can I change this?
>
> There are only A and  records in the DNS
>
> dns_try_ipv6=yes
>
> is set.
>
> Debian 12.5
> Kamailio 5.6.5
>
> Any hint is welcome.
>
> Best regards
>
> Bernd
>
>
> __
> 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: Problems building with stirshaken

2024-04-22 Thread Mikko Lehto via sr-users
Hi Martin.

In general I think you should try to increase verbosity in order to
debug possible issues in build enviroment.

I do not have first hand experience with this exact problem you are having,
but below is general example with flag Q=0 on system where libstirshaken
is totally missing.

$ gmake -C src/modules/stirshaken/
gmake: Entering directory
'/home/mslehto/kamailio/kamailio/src/modules/stirshaken'
CC (clang) [M stirshaken.so]stirshaken_mod.o
stirshaken_mod.c:28:10: fatal error: 'stir_shaken.h' file not found
#include 
 ^~~
 1 error generated.
 gmake: *** [../../Makefile.rules:100: stirshaken_mod.o] Error 1
 gmake: Leaving directory
 '/home/mslehto/kamailio/kamailio/src/modules/stirshaken'

$ gmake -C src/modules/stirshaken/ Q=0
gmake: Entering directory
'/home/mslehto/kamailio/kamailio/src/modules/stirshaken'
config.mak included
clang -fPIC -DPIC -g -m64 -pthread -DKSR_PTHREAD_MUTEX_SHARED
-Wunused-variable -Wuninitialized-DNAME='"kamailio"'
-DVERSION='"5.9.0-dev1"' -DARCH='"x86_64"' -DOS='freebsd_'
-DOS_QUOTED='"freebsd"' -DCOMPILER='"clang FreeBSD clang
version 16.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-16.0.6-0-g7cbf1a259152)"' -D__CPU_x86_64 -D__OS_freebsd
-DVERSIONVAL=5009000
-DCFG_DIR='"/home/mslehto/local/install/kamailio/etc/kamailio/"'
-DSHARE_DIR='"/home/mslehto/local/install/kamailio/share/kamailio/"'
-DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP
-DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
-DUSE_DST_BLOCKLIST -DUSE_NAPTR -DMEM_JOIN_FREE -DF_MALLOC
-DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_CORE_STATS
-DSTATISTICS -DMALLOC_STATS -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM
-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM
-DHAVE_NETINET_IN_SYSTM -DHAVE_IP_MREQN -DUSE_RAW_SOCKS
-DHAVE_KQUEUE -DHAVE_SELECT  -I. -DMOD_NAME='"stirshaken"'
-DMOD_NAMEID='stirshaken' -c stirshaken_mod.c -o
stirshaken_mod.o
stirshaken_mod.c:28:10: fatal error: 'stir_shaken.h' file not found
#include 
 ^~~
  1 error generated.
  gmake: *** [../../Makefile.rules:100:
  stirshaken_mod.o] Error 1
  gmake: Leaving directory
  '/home/mslehto/kamailio/kamailio/src/modules/stirshaken'


Hope this helps, good luck.


mvh, Mikko


2024-04-19 (Fri) 16:37 UTC +  Martin Nyström via sr-users 
:

> I am trying to build Kamailio with repo tags/5.6.4 to get my hands on the 
> stirshaken module that was not part of apt repositories, however it results 
> in a build error:
> 
> root@ip-fobby:/usr/src/kamailio# make modules modules=modules/stirshaken
> make -C src/ modules
> make[1]: Entering directory '/usr/src/kamailio/src'
> CC (gcc) [M stirshaken.so] stirshaken_mod.o
> stirshaken_mod.c:28:10: fatal error: stir_shaken.h: No such file or directory
>28 | #include 
>   |  ^~~
> compilation terminated.
> make[2]: *** [../../Makefile.rules:100: stirshaken_mod.o] Error 1
> make[1]: *** [Makefile:511: modules] Error 1
> make[1]: Leaving directory '/usr/src/kamailio/src'
> make: *** [Makefile:34: modules] Error 2
> 
> Obviously there’s no stir_shaken.h file withib the directory 
> src/modules/stirshaken, but I cannot see why, or how I proceed? Is this a 
> likely symptom of faulty libstirshaken installation?
> 
> 
> /M

-- 
Mikko Lehto
__
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] Incoming IPv6 is send to IPv4 of the PBX instead of IPv6

2024-04-22 Thread Bernd Krueger-Knauber via sr-users

Hi,

I set up a transparent kamailo proxy for IPv4 and IPv6.

The PBX which should be reached can handle both.
Now I have the case that the phone comes in on IPv6, but kamailio sends 
it out via IPv4.
If I ping the PBX on the kamailio server (debian) I get the IPv6 
address, since it is preferred.


Why does kamailio send to the IPv4 address of the PBX?
And how can I change this?

There are only A and  records in the DNS

dns_try_ipv6=yes

is set.

Debian 12.5
Kamailio 5.6.5

Any hint is welcome.

Best regards

Bernd


__
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: lcr module, avp_subst to $avp(i:709)

2024-04-22 Thread Ricardo Castillo via sr-users
Hi Henning thanks for your response, solved!

For my case exposed:
1|sip:|0|||2416027840||5061||;transport=udp|11|1

Filter
$avp(port_lcr_gw) = $(avp(i:709){s.select,7,|});

verbose:
NOTICE: