Hello List,
I thought about some kind of Kamailio stats source (like registered users,
calls active and some other things) to collect them into influx dB and draw
them with grafana.
How do you solved that?
Timer based routes or statsd or whatever?
Kind regards
Karsten Horsmann
FYI,
After some tests found, that function "*is_audio_on_hold()*" (textops)
*supports
only rfc 254*3,
where "hold" is indicated by setting the "c" destination addresses for
the media streams to zero (0.0.0.0).
The newest *rfc3264*, where "hold" is indicated by a=sendonly/inactive, *is
not supported*.
Kamailio version 4.4.6.
Best regards,
Julia
Hello
I am using kamailio 5.0.2, on a debian 9 system.
Everything was running fine, until one of our voip provider changed his
switch. Our kamailio is relaying between several voip providers and several
asterisk (only the signalisation, no rtp).
When we get an invite from this new switch, we select an asterisk and relay
it correctly to this box. However, the OK is relayed back. But when the
voip providers sends an ACK for this OK, the t_relay function does not
return at all, it just dies with no action and no error.
Here is the snippet from route(relay)
xlog("L_INFO","route(relay) @@ $rm - Source: $si:$sp, fu:$fu,
tu:$tu\n" );
$var(restrelay)=t_relay();
xlog("L_INFO","route(relay) @@ $rm - t_relay result:
$var(restrelay)" );
if (!$var(restrelay)) {
When processing the initial invite, I do get both INFO messages. When the
ACK is processed, I only get one INFO message, and no ACK is relayed - so
it seems execution dies in the t_relay
What could be wrong ???
J.
Details of the ACK:
ACK sip:dialednumber@kamailioIP:5060 SIP/2.0
Via: SIP/2.0/UDP VOIPPROVIDERIP:5060;branch=z9hG4bKjq16fi00d85uee181ic0.1
To: <sip:kamailioIP:5060>;tag=as7f10ed48
From: <sip:sourcenumber@orange-multimedia.fr
>;tag=SD8u3ob01-7dd8efde-0002-00d5-0000-0000
Call-ID: SD8u3ob01-688d41f5e2164ceeafe76f40b82b3f97-v300g00030
CSeq: 1 ACK
Max-Forwards: 66
Content-Length: 0
Route:
<sip:kamailioIP;lr=on;ftag=SD8u3ob01-7dd8efde-0002-00d5-0000-0000;did=a0b.49d>
(should you have enough width; the diagram will look ok)
VOIP PROVIDER KAMAILIO
ASTERISK
21:38:54.685149 │ ──────────────────────────> │
│
▒ +0.000451 │ 100 trying -- your call is │
│
▒ 21:38:54.685600 │ <────────────────────────── │
│
▒ +0.000084 │ │ INVITE (SDP)
│
▒ 21:38:54.685684 │ │
──────────────────────────> │
▒ +0.000831 │ │ 100 Trying
│
▒ 21:38:54.686515 │ │
<────────────────────────── │
▒ +0.000471 │ │ 200 OK (SDP)
│
▒ 21:38:54.686986 │ │
<────────────────────────── │
▒ +0.000394 │ 200 OK (SDP) │
│
▒ 21:38:54.687380 │ <────────────────────────── │
│
▒ +0.038694 │ ACK │
│
▒ 21:38:54.726074 │ ──────────────────────────> │
│
▒ +0.060155 │ │ 200 OK (SDP)
│
▒ 21:38:54.786229 │ │
<<<──────────────────────── │
▒ +0.000138 │ 200 OK (SDP) │
│
▒ 21:38:54.786367 │ <<<──────────────────────── │
│
▒ +0.005721 │ ACK │
│
Hi,
I'm looking to use kamailio as a webrtc proxy for legacy sip system that
doesnt have this capability, is there a example or blueprint i can
follow to get started with this? I'm RTFMing the docs but still
need a while to understand kamailio internals :-)
Hello,
I would like to announce that Call for Presentations at Kamailio World
2018 is now open. You can submit your proposal or see more details at:
- https://www.kamailioworld.com/k06/call-for-speakers/
The 6th edition of the event takes place again in Berlin, Germany,
during May 14-16, 2018. Expect over 150 participants, developers and
community members as well as representatives from other popular open
source VoIP projects such as Asterisk or FreeSwitch.
Looking forward to meeting many of you there!
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
Hi community.
Have a problem with cnxcc call monitoring.
__set_max_credit() allocates new call as expected:
"DEBUG: cnxcc [cnxcc_mod.c:444]: __dialog_created_callback(): Flag is not
set for this message. Ignoring
DEBUG: cnxcc [cnxcc_mod.c:1569]: __set_max_credit(): Setting up new call
for client [2], max-credit[0.100000], cost-per-sec[0.010000], initial-pulse
[6], final-pulse [6],
call-id[2f77fd103d0bfa28718d896876b373fe@b2b.user.agent:50600]
DEBUG: cnxcc [cnxcc_mod.c:1470]: set_ctrl_flag(): Flag set!
DEBUG: cnxcc [cnxcc_redis.c:313]: redis_get_int(): Got INT value:
concurrent_calls=0i
DEBUG: cnxcc [cnxcc_redis.c:68]: redis_get_or_create_credit_data():
credit_data with ID=[2] DOES NOT exist in the cluster, creating it...
DEBUG: cnxcc [cnxcc_redis.c:92]: redis_insert_credit_data(): Inserting
credit_data_t using ID [2]
DEBUG: cnxcc [cnxcc_mod.c:1125]: __get_or_create_credit_data_entry():
Credit entry didn't exist. Allocated new entry [0x7f17668f6d70]
DEBUG: cnxcc [cnxcc_mod.c:1255]: __alloc_new_call_by_money(): New call
allocated for client [2]".
So that I can see values inside redis:
redis.callision.info:6389> HGETALL cnxcc:money:2
1) "concurrent_calls"
2) "0"
3) "consumed_amount"
4) "0.000000"
5) "ended_calls_consumed_amount"
6) "0.000000"
7) "max_amount"
8) "0.000000"
9) "number_of_calls"
10) "1"
11) "type"
12) "1"
But cnxcc doesn't update credit amount during the call.
modparam("debugger", "mod_level", "cnxcc=4") but there are no rows in
kamailio log like:
"DEBUG: cnxcc [cnxcc_check.c:94]: check_calls_by_money(): ec=0.000000,
ca=0.600000, ca2=0.600000
DEBUG: cnxcc [cnxcc_check.c:107]: check_calls_by_money(): Client
[some_client] | Ended-Calls-Credit-Spent: 0.000000 TotalCredit/MaxCredit:
0.600000/3.000000".
cnxcc parameters:
modparam("cnxcc", "dlg_flag", FLG_DLG)
modparam("cnxcc", "redis", "addr=redis.youwillnever.find;port=6389;db=0")
modparam("cnxcc", "credit_check_period", 1)
function that performs credit setup:
if
(!cnxcc_set_max_credit("$var(setid)","$var(credit)","$var(cost_per_sec)","$var(i_pulse)","$var(f_pulse)"))
{
xlog("L_WARN", "----- cnxcc: $fU - Error setting up credit
control - R=$ru ID=$ci\n");
sl_send_reply("402", "Payment Required");
}
Why is it so? And as see, all values are set zero. Seems to be problem with
redis inserts.
Any ideas are highly appreciated. Thanks.
--
--
BR, Donat Zenichev
Wnet VoIP team
Tel Ukraine: +380(44) 5-900-800
Tel USA: +164(67) 8-174-17
https://w-net.us/ <http://wnet.ua>
I try to build custom attended transfer logick with kamailio and asterisk.
My backend can do all work (include interconnect between asterisk
servers), so I need to fully handle REFER in kamailio. But I can't
send back NOTIFY message with the result of a transfer.
Is any way to do this logic inside kamailio or I need to write
external SIP service?
My route looks like:
if(!route(FROM_NODE)) {
if(is_method("REFER")) {
xlog("L_NOTICE", "Got REFER in call ci:$ci for
$(hdr(Refer-To){nameaddr.uri})");
sl_send_reply("202", "Accepted [1]");
# HERE I MAKE async request and want to send NOTIFY back
exit;
}
}
--
Skype: konstantin.tumalevich
Hello Dear,
I use Kamailio 5.1.0 on Linux server:
root@sip-africallshop-com:~# kamailio -V
version: kamailio 5.1.0 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 4.9.2
I have sometimes the following logs:
Dec 14 19:22:16 sd-110402 /usr/local/sbin/kamailio[24197]: BUG: tls
[tls_server.c:1229]: tls_read_f(): SSL_ERROR_WANT_READ but data still in
the rbio (0x7ffd354fcd30, 8 bytes at 461)
Dec 20 10:46:32 sd-110402 /usr/local/sbin/kamailio[24197]: BUG: tls
[tls_server.c:1229]: tls_read_f(): SSL_ERROR_WANT_READ but data still in
the rbio (0x7ffd354fcd30, 8 bytes at 8)
Dec 22 11:02:49 sd-110402 /usr/local/sbin/kamailio[24212]: BUG: tls
[tls_server.c:1229]: tls_read_f(): SSL_ERROR_WANT_READ but data still in
the rbio (0x7ffd354fcd30, 8 bytes at 3357)
Does anybody can explain me these logs?
Thanks.
Abdoul OSSENI
First I want to give Denys a huge shout-out for all of the help he has given me. It is wonderful that boards like this exists and people are so willing to help a newbie learn.
I am on what I am hoping is my last major issue with WebRTC<=>WebRTC calls (using tryit-jssip Chrome or Firefox).
I am using Kamailio 5, and Asterisk 15 (pjsip).
I am making calls between two WebRTC clients - Client1, and Client2 (using tryit-jssip)
Problem: If Client1 calls Client2, and Client2 'ANSWERS', I only have audio/video on Client1. Client2 gets no audio/video, but is connected. If I switch things up and call Client1 from Client2, the same thing happens (Client2 has audio/video and Client1 does not); I can only get audio/video on the calling laptop; the called laptop has no audio/video, but is connected. I see no errors in any of the logs.
I am hoping that someone out there has seen this behavior before and has an idea as to the cause and possible solution.
Thank you,
-Steve