Im' testinf Kamailio HA with Keepalived.
I have a problem with acc_cdrs table in this situation:
A call B and when the two users are in the call I switch off the active
Kamailio. Keepalived pass the Virtual IP to the secondary Kamailio and
audio still work because I'm using a remote RTPENGINE server for both
Kamailio.
The problem is when the call end. On the acc table i can see INVITE and
BYE entries but on the acc_cdrs table nothing. Second problem the dialog
still present on the table dialog in a Primary/Primary replication.
Is there a way to solve it?
Thank you
Regards
--
---
I'm SoCIaL, MayBe
Dear Kamailio users,
I am trying to use a python script using the module app_python3 to do some
billing calculations.
The only argument i want to pass to the python script is duration which i
calculate in
event_route[dialog:start] {
$dlg_var('call_start') = $TS;
event_route[dialog:end] {
$var('v_duration') = $TS - $dlg_var('call_start');
So my $var('v_duration') has the duration of the call in seconds.
Then i execute from my kamailio.cfg:
python_exec("calculateCost","$var('v_duration')");
The script works randomly - sometimes all is good and sometimes it throw
error :
app_python3 [python_support.c:156]: python_handle_exception(): apy_exec:
calculateCost(4): Unhandled exception in the Python code:
TypeError: an integer is
required (got type NoneType)
The above exception was
the direct cause of the following exception:
Traceback (most recent
call last):
File
"/etc/kamailio/kamailio-python.py", line 282, in calculateCost
duration =
int(duration)
It looks like the kamailio log show calculateCost(4) so argument 4 is
passed to python function but once it executes it appear like there is no
string/integer but NoneType argument.
I cannot figure this out why this randomly happens - maybe it's an
app_python3 module issue?
Looking to hear back from you!
BR,
Tom
Dear,
I am trying to make a test to see how can webrtc work in kamailio and tls.
I was try some link :
1 <https://github.com/havfo/WEBRTC-to-SIP>. https://github.com/havfo/WEBRTC-to-SIP <https://github.com/havfo/WEBRTC-to-SIP>
2. https://telecom.altanai.com/2018/09/04/kamailio-webrtc-sip-server/ <https://telecom.altanai.com/2018/09/04/kamailio-webrtc-sip-server/>
And Generate CA from the link:
https://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates <https://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates>
Then, I tried to login with simpl5 and i got the message back
Disconnected: Failed to connet to the server
I do not know how can i fix that issue, look like TLS configure has issue with that. the log is showing something like
Jul 14 17:56:16 ip-172-31-44-170 sbin/kamailio[13813]: ERROR: tls [tls_server.c:1283]: tls_h_read_f(): protocol level error
Jul 14 17:56:16 ip-172-31-44-170 sbin/kamailio[13813]: ERROR: tls [tls_util.h:42]: tls_err_ret(): TLS accept:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown
Jul 14 17:56:16 ip-172-31-44-170 sbin/kamailio[13813]: ERROR: tls [tls_server.c:1287]: tls_h_read_f(): source IP: 27.65.214.194
Jul 14 17:56:16 ip-172-31-44-170 sbin/kamailio[13813]: ERROR: tls [tls_server.c:1290]: tls_h_read_f(): destination IP: 172.31.44.170
Jul 14 17:56:16 ip-172-31-44-170 sbin/kamailio[13813]: ERROR: <core> [core/tcp_read.c:1493]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7f4233c60fc0 r: 0x7f4233c610e8 (-1)
My tls.cfg is :
[server:default]
method = SSLv23
verify_certificate = yes
require_certificate = yes
private_key = /etc/certs/my.domain/key.pem
certificate = /etc/certs/my.domain/cert.pem
ca_list = /etc/certs/demoCA/cert.pem
[client:default]
verify_certificate = yes
require_certificate = yes
Please help me to register sipml5 or how can i create CA for TLS in kamailio to use with webrtc.
Thank all.
Hello,
Does anybody know how i could change white filter in siprelpy in sems?
In Kamailio, I got "200 OK" from UE, then add a new header (SBC: mt-reply)
and send it to sems server. The sems server remove it:
[#7f410fbfb700/4560] [inplaceHeaderFilter, HeaderFilter.cpp:226] DEBUG:
erasing header 'sbc' by whitelist
I really don't want to remove it.
Actually if I knew how i active profile for sip replying in sems, I would
be able to solve this.
Thanks with regards.
--
--Mojtaba Esfandiari.S
Hello guys,
do you know if it’s possible for a kemi script to know if a name is defined (with #!define) in kamailio.cfg? It would be useful to modify kemi script logic depending on feature/module presence.
Thanks in advance for your help.
Regards,
Riccardo
--
--
NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named. Any use, copying,
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.
Greetings.
I'm trying to set up annoncement playback for both parts of the call. I
have to play the file after the connection is established. Stop_media (all)
must be executed before playing
It turns out the construction:
....
block_media ("all");
play_media ("all file = / etc / kamailio / sounds / mg1.wav");
Can't find a way to do
unblock_media ("all");
after the file has finished playing.
There are no sip messages in this process. The call has already been
established.
Hello,
I have a kamailio cluster with two nodes
kamailio-1.local: 10.101.2.119
kamailio-2.local: 10.101.2.247
with dmq configs:
kamailio-1:
modparam("dmq", "server_address", "sip:MY_IP4_ADDR:5060")
modparam("dmq", "notification_address", "kamailio-2.local:5060")
kamailio-2:
modparam("dmq", "server_address", "sip:MY_IP4_ADDR:5060")
modparam("dmq", "notification_address", "kamailio-1.local:5060")
All works fine, but kamcmd dmq.list_nodes on kamailio-1.local show me:
{
host: 10.101.2.247
port: 5060
resolved_ip: 10.101.2.247
status: active
last_notification: 0
local: 0
}
{
host: kamailio-1.local
port: 5060
resolved_ip: 10.101.2.119
status: active
last_notification: 0
local: 0
}
{
host: kamailio-2.local
port: 5060
resolved_ip: 10.101.2.247
status: active
last_notification: 0
local: 0
}
{
host: 10.101.2.119
port: 5060
resolved_ip: 10.101.2.119
status: active
last_notification: 0
local: 1
}
and kamailio-2.local show me:
{
host: kamailio-2.local
port: 5060
resolved_ip: 10.101.2.247
status: active
last_notification: 0
local: 0
}
{
host: 10.101.2.119
port: 5060
resolved_ip: 10.101.2.119
status: active
last_notification: 0
local: 0
}
{
host: kamailio-1.local
port: 5060
resolved_ip: 10.101.2.119
status: active
last_notification: 0
local: 0
}
{
host: 10.101.2.247
port: 5060
resolved_ip: 10.101.2.247
status: active
last_notification: 0
local: 1
}
So there are only two hosts in the cluster, but there are 4 records in
dmq.list_nodes. Also in sip trace I can see that kamailio send DMQ messages
to itself too (because it ip marked as local: 0 I think).
Is it ok? Is it normal behavior? What should I do to fix it? Should
multi_notify and DNS name with 2 A records fix it (and why?)?
--
Aydar A. Kamalov
Hi Alex,
By subscriber management I mean, auth_db module which actually works on subscriber table to add or alter sip account for authentications.
Auth_db Module (kamailio.org)<https://kamailio.org/docs/modules/4.4.x/modules/auth_db.html#auth_db.f.auth…>
So, similar like usrloc module which you mentioned having JSONRPC commands to alter Location table.
I am looking for JSONRPC Command for subscriber module as well.
As far as my understanding, currently there is no JSONRPC command available for subscriber table.
So, if this is currently a known not offered feature / limitation shall we raise it as feature request if others also agree to its usefulness.
What I'm seeking is more of an acknowledgment that this feature doesn't exist & have it's benefit. As I can see other community members either ends up directly interacting with DB for subscriber table provisioning. Maybe I can contribute on this too.
Surabhi Garg
Mobile - 91 783 888 7523 | Skype - surabhi.garg9
________________________________
From: sr-users <sr-users-bounces(a)lists.kamailio.org> on behalf of Alex Balashov <abalashov(a)evaristesys.com>
Sent: 09 July 2021 01:27
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: Re: [SR-Users] Subscriber Management using JSONRPC over HTTP
I am not 100% sure what you mean by subscriber management, but if you mean what I think you mean, these might be the droids you’re looking for:
https://kamailio.org/docs/modules/5.5.x/modules/usrloc.html#idm771
—
Sent from mobile, with due apologies for brevity and errors.
On Jul 8, 2021, at 3:55 PM, Surabhi Garg <surabhi.garg(a)outlook.com> wrote:
Hi Team,
Greetings!
I was trying to use HTTP to do the subscriber management (CRUD operations) & for that I am using JSONRPC-S module (JSONRPC over HTTP). But like other modules e.g. dispatcher, location I am unable to find any RPC commands for doing subscriber management (checked in auth_db) module. So is there a way to achieve subscriber management using JSONRPC over HTTP.
Few HTTP examples which I am using for dispatcher module are given below. Similar commands I am looking for subscriber management as well.
curl http://localhost:8081/RPC -H "Content-Type: application/json" -d " {\"jsonrpc\":\"2.0\",\"method\":\"dispatcher.add\", \"params\":[2, \"sip:127.0.0.1:5061\"], \"id\": \"1\"}"
curl http://localhost:8081/RPC -H "Content-Type: application/json" -d " {\"jsonrpc\":\"2.0\",\"method\":\"dispatcher.remove\”, \"params\":[2, \"sip:127.0.0.1:5061\"], \"id\": \"1\"}"
Surabhi Garg
Mobile - 91 783 888 7523
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users(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:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
I'm testing DMQ_USRLOC modulo between two Kamailio servers (A) and (B)
The two servers share the same domain and using Amazon Route53 to
distributes 50% requests each Server.
The problem is when I try to make a call from user A (registered on
kamailio A) and the user B (registered on Kamailio B).
The call follow this flow:
User A --> KamailioA --> UserB
go directly to userB because KamailioA know, via DMQ_USRLOC IP and port
of UserB. With some Softphone the call work with audio without problem;
with other Softphone USERB never answer the INVITE sends from Kamailio.
Is it possible use this flow?
USER A --> KamailioA --> KamailioB --> User B
to resolve this kind of problem or is there other available option?
Thank you
--
---
I'm SoCIaL, MayBe
Hi to all,
In a scenario, we need to change the destination of users' registration requests when they send the first 'Register' to Kamailio-A and it replies 401 to the user, next time the user sends 'Register' to Kamailio-B.
User------Register-------> Kamailio-A
User<-----401--------------Kamailio-A
User-------Register--------> Kamailio-B
RFC says we can't use the Record-Route for register because it doesn't create a dialog.Is there any option, header that Kamailio-A puts in the 401, and after that users send register to the Kamailio-B?
Thank you.BR,Hossein