Hi all.
Have a problem with radius authorization.
I'm using auth_radius.so
modparams, only path to client file:
modparam("auth_radius", "radius_config",
"/etc/radiusclient/radiusclient.conf")
Freeradius installed and is working properly, radtest authentication from
kamailio host succeed .
How authorization block looks like:
if (!is_present_hf("Authorization")) {
xlog("L_NOTICE", "----- Athorization HF is not found - passing the
challenge -----\n");
if (nat_uac_test("2")) {
force_rport();
}
www_challenge("$fd", "1");
exit;
if (!radius_www_authorize("$fd","$fU")) {
if (nat_uac_test("2")) {
force_rport();
}
xlog("L_NOTICE", "----- Registeration $au@$ar ($fU) from $si:$sp Rejected.
Code: $rc -----\n");
sl_send_reply("401","Unauthorized");
exit;
Radius log is filled by rows like:
Auth: [digest] Cleartext-Password or Digest-HA1 is required for
authentication.
Tried to use radius_www_authorize without $fU - didn't change anything.
Tried to use www_challenge without qop - didn't change anything.
So, this solution is quite simple, but I have a fail while digest
authentication.
Any ideas?
--
--
BR, Donat Zenichev
Wnet VoIP team
Tel: +380(44) 5-900-808
http://wnet.ua
Hello,
Over the past few months, I've seen a smattering of kamailio crashes on
various systems with identical backtraces: SIGSEGV in tcp_read_headers(),
at tcp_read.c line 628. Example here:
https://pastebin.com/qJ3ypnVz
Note that in frame 0, print *c shows that req->parsed is pointing to an
address exactly 8GB lower than req->buf. That req->parsed is pointing to
an invalid memory location, crashing kamailio when the location is
dereferenced. In other coredumps, I see that req->parsed is pointing to an
address exactly 4GB lower than req->buf.
Other info: This is Kamailio 4.4.4 on x86_64. I've not had success trying
to reproduce this yet. Also worth noting that the crashes seem to be
consistently associated with processing traffic from a UA connected over
SIP/TCP; I've seen no other transport associated with this crash.
Thoughts are welcome. Thanks!
Armen
I install rtpproxy and config as follow, but it didn't work, is my config OK ?
errorlog:
Jun 3 15:00:56 iZ2ze3uk97m2bfv681kyx4Z /usr/local/sbin/kamailio[28971]: ERROR: rtpproxy [rtpproxy.c:2552]: force_rtp_proxy(): incorrect port 0 in reply from rtp proxy
Jun 3 15:00:58 iZ2ze3uk97m2bfv681kyx4Z /usr/local/sbin/kamailio[28971]: ERROR: rtpproxy [rtpproxy.c:2552]: force_rtp_proxy(): incorrect port 0 in reply from rtp proxy
My config:
PUB_IP: public ip of kamailio
PVT_IP: private ip of kamailio
1. start rtpproxy
rtpproxy -l PUB -s udp:localhost:7722 -F
2. kamailio.cfg
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_ALIASDB
#!define WITH_USRLOCDB
#!define WITH_NAT
listen=PVT_IP
modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:7722")
--
Best Regards,
Shengy
I install rtpproxy and config as follow, but it didn't work, is my config OK ?
My config:
PUB_IP: public ip of kamailio
PVT_IP: private ip of kamailio
1. start rtpproxy
rtpproxy -l PUB -s udp:localhost:7722 -F
2. kamailio.cfg
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_ALIASDB
#!define WITH_USRLOCDB
#!define WITH_NAT
listen=PVT_IP
modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:7722")
--
Best Regards,
Shengy
I’m hoping that someone might have some suggestions on how to approach this.
I’ve been working with kamailio as part of kazoo (via RPM install) and have
been attempting to add the debugger module so I can trace things as they
pass through kamailio. However, I need some help in determining the most
effective way of adding this. Has anyone already done this / have any
suggestions?
Thanks,
Joe
Hi
I am using the topos module when bridging 2 networks with Kamailio.
The INVITE/200OK part of the transaction is working fine (i.e. the Contact
on both sides matches correctly the corresponding network).
However when the ACK is sent into Kamailio, instead of realising the next
hop is myself and skipping it, Kamailio is sending the ACK directly to
itself as a packet, causing the call setup to break.
Does anyone have any advice for this situation?
Could someone who knows about systemd tell, what is the relationship
between deb/stretch kamailio.service and kamailio.init files?
kamailio.service contains kamailio binary argument values and command to
start kamailio, but kamailio.init does much more.
Why do both exist?
-- Juha
Hi!
I’m trying to make RTPEngine to work with calls Browser <-> SIP.
Call From SIP to Browser working perfectly, but when calling to SIP from Browser, on 200 OK (sdp) I don’t receive
...
a=rtcp-mux
...
lines, but it was told to RTPEngine on reply_route to add this. And this line is mandatory for me, cause I don’t control JS softphone on other side
Reply route in a case of Browser->SIP call looks like
reply_route[REPLY_R] {
…
rtpengine_answer("internal external UDP/TLS/RTP/SAVPF ICE=force rtcp-mux-offer");
...
}
Also I’ve tried with rtcp-mux-accept but still no luck
Regards, Igor