This is the backtrace of 2 core-dumps i got just recently (both with the same timestamp).
Nothing obvious that hits my eyes (at least no NULL pointer). Maybe you can see more in it.
Backtrace #1:
===========
[New LWP 99122]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /etc/kamailio/kamailio.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fca0d45e996 in t_should_relay_response (Trans=0x7fca067b2a60, new_code=401, branch=0, should_store=0x7ffff47edd44, should_relay=0x7ffff47edd40, cancel_data=0x7ffff47edf30, reply=0x7fca0d8fd020) at t_reply.c:1282
1282 t_reply.c: No such file or directory.
(gdb) bt
#0 0x00007fca0d45e996 in t_should_relay_response (Trans=0x7fca067b2a60, new_code=401, branch=0, should_store=0x7ffff47edd44, should_relay=0x7ffff47edd40, cancel_data=0x7ffff47edf30, reply=0x7fca0d8fd020) at t_reply.c:1282
#1 0x00007fca0d46317f in relay_reply (t=0x7fca067b2a60, p_msg=0x7fca0d8fd020, branch=0, msg_status=401, cancel_data=0x7ffff47edf30, do_put_on_wait=1) at t_reply.c:1786
#2 0x00007fca0d469154 in reply_received (p_msg=0x7fca0d8fd020) at t_reply.c:2537
#3 0x000055e77686fbe3 in do_forward_reply (msg=0x7fca0d8fd020, mode=0) at core/forward.c:747
#4 0x000055e776871a00 in forward_reply (msg=0x7fca0d8fd020) at core/forward.c:852
#5 0x000055e7768bd4e7 in receive_msg (
buf=0x55e776da0520 <buf> "SIP/2.0 401 Unauthorized\r\nVia: SIP/2.0/UDP 172.17.217.10;rport=5060;received=172.17.217.10;branch=z9hG4bKe4bf.c46a843afa3ff97f5b20df53926515a2.0;i=62\r\nVia: SIP/2.0/TCP 195.225.36.194:1797;rport=40047;"..., len=736,
rcv_info=0x7ffff47ee4e0) at core/receive.c:364
#6 0x000055e7767ce4fe in udp_rcv_loop () at core/udp_server.c:554
#7 0x000055e77673a15d in main_loop () at main.c:1619
#8 0x000055e7767421fe in main (argc=13, argv=0x7ffff47eeb98) at main.c:2638
Backtrace #2:
===========
[New LWP 99120]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /etc/kamailio/kamailio.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fca0d45e996 in t_should_relay_response (Trans=0x7fca067da3c0, new_code=200, branch=0, should_store=0x7ffff47edd44, should_relay=0x7ffff47edd40, cancel_data=0x7ffff47edf30, reply=0x7fca0d8fd020) at t_reply.c:1282
1282 t_reply.c: No such file or directory.
(gdb) bt
#0 0x00007fca0d45e996 in t_should_relay_response (Trans=0x7fca067da3c0, new_code=200, branch=0, should_store=0x7ffff47edd44, should_relay=0x7ffff47edd40, cancel_data=0x7ffff47edf30, reply=0x7fca0d8fd020) at t_reply.c:1282
#1 0x00007fca0d46317f in relay_reply (t=0x7fca067da3c0, p_msg=0x7fca0d8fd020, branch=0, msg_status=200, cancel_data=0x7ffff47edf30, do_put_on_wait=1) at t_reply.c:1786
#2 0x00007fca0d469154 in reply_received (p_msg=0x7fca0d8fd020) at t_reply.c:2537
#3 0x000055e77686fbe3 in do_forward_reply (msg=0x7fca0d8fd020, mode=0) at core/forward.c:747
#4 0x000055e776871a00 in forward_reply (msg=0x7fca0d8fd020) at core/forward.c:852
#5 0x000055e7768bd4e7 in receive_msg (
buf=0x55e776da0520 <buf> "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 172.17.217.10;rport=5060;received=172.17.217.10;branch=z9hG4bK3494.0e37cca5019fe3c95285a3464d0eaa5e.0;i=b3\r\nVia: SIP/2.0/TCP 192.168.0.102:53360;rport=53360;received=9"..., len=638,
rcv_info=0x7ffff47ee4e0) at core/receive.c:364
#6 0x000055e7767ce4fe in udp_rcv_loop () at core/udp_server.c:554
#7 0x000055e77673a15d in main_loop () at main.c:1619
#8 0x000055e7767421fe in main (argc=13, argv=0x7ffff47eeb98) at main.c:2638
Hey it's me again.
So I'm following the instructions in the Kamailio 5.1.x wiki module page
for websocket configuration and it specifically mention to set this block:
onreply_route[WS_REPLY] {
xlog("L_INFO", "[CSeq $cs] Is in WS_REPLY.");
xlog("L_INFO", "[CSeq $cs] Sending $rs $rr to $sel(via[2].host) via
$sel(via[2].transport) len: $ml");
xlog("L_INFO", "[CSeq $cs] \n$mb \n");
if(nat_uac_test("64")) {
# Do NAT traversal stuff for replies to a WebSocket
connection
# - even if it is not behind a NAT!
# This won't be needed in the future if Kamailio and the
# WebSocket client support Outbound and Path.
add_contact_alias();
}
}
When I did this and started up Kamailio, it gave me an error:
Jan 3 22:19:43 sjomainkama55 kamailio: ERROR: <core> [core/cfg.y:3309]:
yyparse(): cfg. parser: failed to find command nat_uac_test (params 1)
I moved that if statement to a route block and I was able to start it up.
The wiki page for nathelper module specify this function can be run in
onreply_route as well:
5.5. nat_uac_test(flags)
Tries to guess if client's request originated behind a nat. The parameter
determines what heuristics is used.
Meaning of the flags is as follows:
-
*1* - The “Contact” header field is searched for occurrence of RFC1918
or RFC6598 addresses.
-
*2* - the "received" test is used: address in the “Via” header is
compared against source IP address of signaling
-
*4* - The Top Most “Via” is searched for occurrence of RFC1918 or
RFC6598 addresses
-
*8* - The SDP is searched for occurrence of RFC1918 or RFC6598 addresses
-
*16* - Test if the source port is different from the port in the “Via”
header
-
*32* - Test if the source IP address of signaling is a RFC1918 or
RFC6598 address
-
*64* - Test if the source connection of signaling is a WebSocket
-
*128* - Test if the “Contact” header URI port differs from the source
port of the request (Warning: this is might be legal or even intended
combination in non NATted scenarios)
All flags can be bitwise combined, the test returns true if any of the
tests identified a NAT.
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE.
is this some known bug in 5.1.x?
Thanks
--
Andy Chen
achen@ <achen(a)thinkingphones.com>fuze.com
--
*Confidentiality Notice: The information contained in this e-mail and any
attachments may be confidential. If you are not an intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
e-mail is strictly prohibited. If you have received this e-mail in error,
please notify the sender and permanently delete the e-mail and any
attachments immediately. You should not retain, copy or use this e-mail or
any attachment for any purpose, nor disclose all or any part of the
contents to any other person. Thank you.*
Hey.
I have another question regarding the Dispatcher Probing.
In my SBC, a Gateway is defined by it's IP, Port and SAP (Kamailio's IP
used for signaling). Those 3 parameters are defined in the Gateway table.
In this case ( using Options for probing), i only have access to the
destination IP ($dd) and Port ($dp). I need to
know the SAP associated to the gateway that is currently being probed, in
order to force the correct socket in the OPTIONS request. Is there any way
to get more info about the db line that is being read by dispatcher for the
probing?
If that's not possible i was thinking about querying my db for the Ip:Port
pair and if i got more than one result, do forking using the the SAPs in
the results, sending multiple OPTIONS through the multiple sockets. In this
case, if only one of the OPTIONS is answered, will the gateway still appear
as "Active" ?
Best Regards,
Duarte Rocha
Yet again, fighting against strange fax behavior on Kamailio. When call is routed from device behind Kami and uplink is plain old Mediant2000 gateway to E1, T.38 always correctly established via reinvite and fax works perfectly.
When call is routed to anything else including local Asterisk or Freeswitch, seems called don't hear fax noises and quickly throw BYE to me. Asterisk just don't see anything about UDPTL. Even more confusing, "near" device drops a call when detects fax tones from Asterisk or Yate.
What can it be? SDP seem to be all transformed as they should be, I cant see anything wrong or different on SIP dumps.
Rtpproxy is on bridge mode. Local device is Audiocodes MP118 and on private addressing, another end of Kami is on static IP. Voice calls work perfectly on this configuration.
I can provide anything configs dumps etc, if it will help to solve this issue.
Anyone using rtpproxy bridge and working T.38? Help me please.
--
sent from myMail for Android
Greetings,
Regarding the module sipt and $sipt(redirection_number). Does this PV can
show non digits correctly?
I have a redirection number that has one char in the middle, like this
"12C34567899". However, when i print the PV, i get "12<34567899". How can i
fix this?
Thanks,
Best Regards,
Duarte Rocha
Greetings,
As far as i can tell, i have 3 ways to permanently change the memory
settings in Kamailio :
/etc/init.d/kamailio , /etc/default/kamailio and src/core/config.h.
What's the priority between them? If i have different values in all 3 of
them, which one will be used? Which is one is the best to use reliably?
I recently upgraded my Kamailio from 5.0 to 5.2 and i need 12Mb of PKG.
Before starting the new version for the first time i changed the values in
/etc/default and the memory error didn't go away. It only worked after i
changed it in core/config.h and recompilled. After that, i started Kamailio
and i could do the changes in /etc/default without any problem. Does this
happen for a reason?
Best Regards,
Duarte Rocha
Hey all,
Any way to log destination IP and proto of SIP responses? I'd tried to use
majority of the pseudovars, but they all just return <null>.
Thanks.
--
Andy Chen
achen@ <achen(a)thinkingphones.com>fuze.com
--
*Confidentiality Notice: The information contained in this e-mail and any
attachments may be confidential. If you are not an intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
e-mail is strictly prohibited. If you have received this e-mail in error,
please notify the sender and permanently delete the e-mail and any
attachments immediately. You should not retain, copy or use this e-mail or
any attachment for any purpose, nor disclose all or any part of the
contents to any other person. Thank you.*
Hi!
Happy new year to all!!!
Look like I am first in this year wit hthe questions in this list :-).
I'm using stateless kamailio and RTPengnine to build some kind of the
stateless cluster
I found that kamailio keeps some data in the SHMEM in case of using
RTPengine module even if it is not a rtpengine_manage function but
offer/answer/delete
In this case if INVITE (offer) handled by 1-st kamailio in my cluster, and
BYE/CANCEL handled by second kamailio in the cluster - 1-st kamailio (which
has been used for offer) will hase kinda internal "memory leak" (in SHMEM
it never decrased)
At the rtpengine module source I found some transation dependencies for the
rtpengine_manage function but did not find for the offer/answer/delete
I supposed these 3 functions just sending requests to the rtpnegine with
keys and not storing anything
So my question - is it possible to use RTPengine module in stateless way to
avoid internal "memory leak" because in my scenario I have big chance never
receive BYE/CANCEL on the machine that started handle particular call
estoy haciendo un trabajo con websockts y kamailio. Me gustaría saber como
puedo vincular mi sevidor Kamailio instalado en una maquina virtual en el
sistema operativo Ubuntu, como podria vincularlo con los websockets creados
, me gustaria saber como es ese proceso. no tengo mucho conocimiento de
ello.. espero su respuesta gracias
El lun., 31 de dic. de 2018 a la(s) 06:00, <
sr-users-request(a)lists.kamailio.org> escribió:
> Send sr-users mailing list submissions to
> sr-users(a)lists.kamailio.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> or, via email, send a message with subject or body 'help' to
> sr-users-request(a)lists.kamailio.org
>
> You can reach the person managing the list at
> sr-users-owner(a)lists.kamailio.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sr-users digest..."
>
>
> Today's Topics:
>
> 1. Phonenum Module (Soltanici Ilie)
> 2. Re: Phonenum Module (Joel Serrano)
> 3. Re: Phonenum Module (Joel Serrano)
> 4. Re: Phonenum Module (Soltanici Ilie)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 30 Dec 2018 21:21:36 +0300
> From: Soltanici Ilie <iliesh(a)mail.ru>
> To: sr-users <sr-users(a)lists.kamailio.org>
> Subject: [SR-Users] Phonenum Module
> Message-ID: <1546194096.91991005(a)f406.i.mail.ru>
> Content-Type: text/plain; charset="utf-8"
>
> Hi All,
>
> How can i get Local Number by using phonenum module?
> What is the variable for that?
>
> Thank You
>