Hello!
I am setting this in kamailio.cfg
#!ifdef WITH_ACCDB
modparam("acc", "db_flag", FLT_ACC)
modparam("acc", "db_missed_flag", FLT_ACCMISSED)
modparam("acc", "db_url", DBURL)
modparam("acc", "db_extra",
"src_user=$fU;src_domain=$fd;src_ip=$si;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)
modparam("acc", "cdr_enable", 1)
modparam("acc", "cdr_start_on_confirmed", 1)
modparam("acc", "cdrs_table", "acc_cdrs")
modparam("acc",
"cdr_extra","src_user=$fU;src_domain=$fd;src_ip=$si;dst_user=$rU;dst_ouser=$tU;dst_domain=$rd;sip_code=$rs;sip_reason=$rr;callid=$dlg(callid);dst_ip=$Ri")
modparam("acc", "cdr_start_id", "start_time")
modparam("acc", "cdr_end_id", "end_time")
modparam("acc", "cdr_duration_id", "duration")
#!endif
But in CDRs table ('acc_cdrs') field dst_user=$rU is always empty if call
is not completed with remote side answer.
But in accounting table ('acc') this field isn't empty.
Is this behavior is correct?
I think it is not correct.
Dear all,
I am trying to configure websockets for kamailio IMS. My basic
kamailio(without IMS) setup works properly with websockets and without
websockets. The IMS functionality also works, but only with IMS clients and
now I want to use webrtc clients and make calls. At the moment I am trying
to add the websockets support to the pcscf. I have did some changes to the
pcscf cfg file.
My problem is not really related to the cfg of pcscf as the component is
listening for tcp/tls connections, but I cannot connect through the
assigned ports. The output of the pcscf component and the the wireshark
pcap file for the Websocket are attached. (I basically tried to browse
http://server.ip.address:tcp.port or https://server.ip:tls.port without
using a webrtc client yet).
192.168.0.10 -> host
192.168.0.11 -> virtual machine running kamailio
Thanks in advance,
Serhat
Hello,
Is it possible to live reload the pipelimit module so it gets new values from the DB without a restart of Kamailio?
I couldn't find a command to do this.
Regards,
Grant Bagdasarian
CM
Hi,
I have an issue when I am unable to get prefix_route to work together with db_cluster. If I set the db_url manually it works great, pointing it to a specific database. However we need the redundancy for this module.
Dispatcher uses the same cluster without any issues.
The following are my configuration sets:
# DB CLUSTER (db_cluster.inc)
loadmodule "db_cluster.so"
modparam("db_cluster", "connection", "KAMDB01=>mysql://kamailio:password123@192.168.55.10/kamailio")
modparam("db_cluster", "connection", "KAMDB02=>mysql://kamailio:password123@192.168.55.11/kamailio")
modparam("db_cluster", "cluster", "AccCluster=>KAMDB02=9s9s;KAMDB01=4s4s")
modparam("db_cluster", "cluster", "Settings=>KAMDB02=9s9s;KAMDB01=4s4s")
# KAMAILIO.CFG (kamailio.cfg)
# PREFIX ROUTE MODPARAM
loadmodule "prefix_route.so"
include_file "db_cluster.inc"
modparam("prefix_route", "db_url", "cluster://Settings")
modparam("prefix_route", "db_table", "prefix_route")
modparam("prefix_route", "exit", 1)
Syslog output:
Oct 10 09:53:03 kamailio01 /usr/local/sbin/kamailio[5225]: ERROR: <core> [db_cmd.c:122]: db_cmd(): DB driver cluster does not implement mandatory db_cmd function
Oct 10 09:53:03 kamailio01 /usr/local/sbin/kamailio[5225]: ERROR: <core> [db_cmd.c:168]: db_cmd(): db_cmd: Cannot create db_cmd structure
Oct 10 09:53:03 kamailio01 /usr/local/sbin/kamailio[5225]: ERROR: prefix_route [prefix_route.c:126]: pr_db_load(): prefix_route: db_load(): db_cmd() failed
Oct 10 09:53:03 kamailio01 /usr/local/sbin/kamailio[5225]: : prefix_route [prefix_route.c:214]: mod_init(): prefix_route: db_load() failed
Oct 10 09:53:03 kamailio01 /usr/local/sbin/kamailio[5225]: ERROR: <core> [sr_module.c:974]: init_mod(): Error while initializing module prefix_route (usr/local/lib64/kamailio/modules/prefix_route.so)
Oct 10 09:53:03 kamailio01 /usr/local/sbin/kamailio[5225]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Ubuntu 14.04LTS
version: kamailio 4.3.6 (x86_64/linux) 105a17
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, 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: 105a17
compiled on 10:06:12 Oct 4 2016 with gcc 4.8.4
Thank you.
Hello!
I am new to kamailio and trying to use it vanilla config.
Now main question is how to use ip based auth.
I found recent post of Daniel-Constantin Mierla:
http://lists.sip-router.org/pipermail/sr-users/2011-December/071147.html
Here he recommends to use 'address' table from permissions module,
I try yo use advice and add this lines at config begin:
#!define WITH_MYSQL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!define WITH_AUTH
#!define WITH_IPAUTH
#!define WITH_USRLOCDB
Database is created and kamailio can access it.
I am add user 1000 to kamailio via kamctl and successful register it with
soft-phone.
I create trunk without registration to kamailio on asterisk server. And
trying to call from asterisk to user 1000. Call is successful. I try to
create file /etc/kamailio/permissions.deny with content 'ALL : ALL'. And
retry previous call. It still sucessful. I try to add record with asterisk
address to 'address' table with group 1. And retry previous call. It still
sucessful.
I am confused. I do not now how to disable any address for ip_auth except
if it in the
'address' table. And allow any address with if it request kamailio with
registration.
--
Best Regards,
Ivan Dudko
Hello,
I have a doubt related with DMQ dns behavior, I noticed that when kamailio
starts, it tries to resolve DMQ name configured on parameter
notification_address as the following sequence:
1. SRV
2. A
3. AAAA
Isn't supposed kamailio try first resolve the NAPTR DMQ name, and then
SRV?
I'm asking this because kamailio is trying resolve the SRV record without
any transport protocol specified on query, as my dns server only accepts
queries on the format "_Service._Proto.Name" the SRV will never be resolved.
Thank you.
BR
--
José Seabra
Hello all
i'm having some errors sometimes and i'm not able to know why they
happen
i made a lua configuration script where i create some ESL sockets with
several freeswitches (10) (around 500-600 sockets in total, depending on
the number os children (8) and listen ips we have (5)), and i use the
lua script to send some API to the FSW by a function.
No matter what the FSW replies.
i dont know why, but i think that having that conn:bgapi($command) in
the lua script, makes the issue to happen. theorically, the lua script
waits to receive the response from the fsw through the tcp socket, and
after that the script continues (with an async_sleep command), but after
the API sent, i see (only sometimes, few times) an async_sleep seem to
fail when doing the t_continue with the following error
WARNING: tm [t_suspend.c:186]: t_continue(): transaction is not
suspended [20748:225229907]
could it be posible that having manye ESL sockets opened in the kamailio
server makes this to happen?
how many async workers are needed? i have 8 right now
is there a way where i can know or correlate the log to a $ci or
something known?
best regards
david
Hi All,
Can anyone please provide me the details that how to install kamailio on
Redhat 7.2.
I am following the below url guide for installation of Kamailio.
https://www.kamailio.org/wiki/install/4.4.x/git
when i compile kamailio code I am not able to find certain scripts in
/usr/local/sbin
Can anyone help regarding this ?
Regards,
Atif Ramzan.
I want to be able to return a Busy code foe a user that is talking to
someone else and receives an INVITE for a new call. How can I implement
this in Kamailio?
Regards