Dear All,
I was wondering if someone could give me a pointer on handling diameter
"EVENT REQUEST" (416)
I am a complete newb to the diameter, and have used a RESTCOMM SMS-C to
generate charging requests.
1. I have got the CDP and other modules going and it connects with
application (Diameter Credit Control Application (4)
2. I tried to use a simple ims_ocs module, but get a "getMethod()"
error. Looking at the code, there are only three supported, START,
INTERIM, & STOP.
3. I have …
[View More]captured the message in pcap - and all looks OK.
4. To examine the whole message I tried using the ims_diameter_server
module to produce a JSON of all the values sent in the $diameter_request
within the event_route, HOWEVER once the request arrives I get an error:
ERROR: cdp [diameter_avp.c:645]: AAAUngroupAVPS(): hss3g_ungroup_avps:
source buffer to short!! Cannot read the whole AVP header!
I assume that the cdp function AAAUngroupAVPS() cannot sort the data
into JSON due to a buffer issue. Any pointers?
Steve
[View Less]
Boa Noite.
Instalei o kamailio mas não consigo usar
Segue a configuração.
baixei e adicionei chave GPG à sua lista de chaves apt
wget -O- http://deb.kamailio.org/kamailiodebkey.gpg | sudo apt-key a
Em seguida, adicionei as linhas do repositório ao seu arquivo
/etc/apt/sources.list , Adicionei um repositório para a versão mais
recente.
sudo nano /etc/apt/source.list.d/kamailio.list
versão ubuntu 16.04
deb http://deb.kamailio.org/kamailio53 xenial main
deb-src http://deb.kamailio.org/…
[View More]kamailio53 xenial main
Atualização do sistema e instalação do Kamailio
sudo apt update
sudo apt install kamailio kamailio-mysql-modules
Editei o arquivo /etc/kamailio/kamctlrc e verifiquei se a DBENGINE variável
está definida como MySQL. Removi o #símbolo para descomentá-lo.
$ sudo nano / etc / kamailio / kamctlrc
DBENGINE = MYSQL
DBHOST = host local
Instalei banco de dados
apt install mysql-server
modulos também
apt -y install kamailio kamailio-mysql-modules kamailio-utils-modules
rtpproxy
Em seguida criei banco de dados para Mysql.
sudo kamdbctl create
logo após foi inserida a senha
(xxxx)
editei o arquivo /etc/kamailio/kamailio.cfg
#! define WITH_MYSQL
#! define WITH_AUTH
*#! define WITH_USRLOCDB -> ao adicionar este iten o kamailio
reiinicializa com erro (segue anexo arquivo jpeg)*
#! define WITH_ACCDB
Editei a linha da variável RUN_KAMAILIO no arquivo /etc/default/kamailio
para que o kamailio possa rodar.
RUN_KAMAILIO=yes
configuração do rtpproxy no arquivo /ec/default/rtpproxy
retirada do #simbolo
control_sock=udp:localhost:7722
EXTRA_OPTS=" -l < IP local >"
reinicio RTPproxy
Obs: O sistema tambem não existe o arquivo /var/log/kamailio.log
[View Less]
We are receiving traffic with a tech prefix. We want to be able to use a #
(hash tag) for the separator for the tech prefix and the remote user
($rU). I was using the s.select transformation before when using * for
separator, but I get an error because it appears that it being interpreted
as a comment. Any suggestions?
Example:
## How I was doing it with the *
$avp(techprefix) = $(rU{s.select,0,*});
## How I tried and got an error for the hash tag
$avp(techprefix) = $(rU{s.select,0,#});
-- …
[View More]
Sam D Ware
[View Less]
I am attempting to create my own docker image on Centos 7. During the
build, I get the following error message during the "make all" phase.
----------------------------------------------------------------------
CC (gcc) [kamailio] core/cfg.tab.o
LD (gcc) [kamailio] kamailio
make[1]: which: Command not found
make[1]: which: Command not found
make[1]: which: Command not found
make[1]: which: Command not found
make[1]: which: Command not found
make[1]: which: Command not …
[View More]found
CC (gcc) [M db_mysql.so] km_dbase.o
km_dbase.c:36:19: fatal error: mysql.h: No such file or directory
#include <mysql.h>
^
compilation terminated.
make[1]: *** [km_dbase.o] Error 1
make: *** [modules] Error 1
------------------------------------------------------------------------
I checked and the mysql.h exists in the /usr/include/mysql directory.
Any thoughts?
FYI, here is my Dockerfile
FROM centos:7
MAINTAINER “Sam D Ware” sware(a)o1.com
ENV container docker
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i ==
systemd-tmpfiles-setup.service ] || rm -f $i; done);
RUN rm -rf /lib/systemd/system/multi-user.target.wants/ \
&& rm -rf /etc/systemd/system/.wants/ \
&& rm -rf /lib/systemd/system/local-fs.target.wants/ \
&& rm -f /lib/systemd/system/sockets.target.wants/udev \
&& rm -f /lib/systemd/system/sockets.target.wants/initctl \
&& rm -rf /lib/systemd/system/basic.target.wants/ \
&& rm -f /lib/systemd/system/anaconda.target.wants/*
VOLUME [ “/sys/fs/cgroup”]
RUN yum -y install epel-release
RUN yum -y update
RUN yum -y install git-core gcc gcc-c++ flex bison mysql-devel
RUN yum -y install mariadb-devel hiredis hiredis-devel curl nss make
WORKDIR /usr/local/src/
RUN git clone --depth 1 --no-single-branch
https://github.com/kamailio/kamailio kamailio
WORKDIR /usr/local/src/kamailio/
RUN git checkout -b 5.3 origin/5.3
RUN make cfg
COPY modules.lst /usr/local/src/kamailio/src/
RUN make all
RUN make install
RUN groupadd kamailio
RUN adduser --system -g kamailio --shell /bin/false -c "Kamailio" --home
/var/run/kamailio kamailio
RUN cp /usr/local/src/kamailio/pkg/kamailio/obs/kamailio.sysconfig
/etc/sysconfig/kamailio
COPY kamailio.service /etc/systemd/system/kamailio.service
RUN yum clean all; systemctl enable kamailio
CMD ["/usr/sbin/init"]
--
Sam D Ware
[View Less]
Hello
would like to see if I'm not reinventing the wheel:
scenario: some old powerdialler/predictive calls kamailio as call
dispatcher, kamailio then dials carrier.
But this dialler does many calls to the same B number with 404 response
(from carrier) in short (retry is < 600s) time, so no need to bother
PSTN/carrier with retry.
Should I simply use htable, cache 404 hit, use some reasonable value
modparam("htable", "db_expires", 1)
put there like 600 s TTL
or something like that?
Any …
[View More]hints/thoughts? Maybe this scenario is common and being used with
success somewhere (and yes, this powerdialer is not very clever, and I
do know it should not be needed for this)
Thanks,
--
*Krzysztof Drewicz*
Senior Infrastructure Administrator
CLUDO | ul. Grochowska 306/308, 03-840 Warszawa
t+48221223977
kdrewicz(a)cludo.pl | www.cludo.pl <http://www.cludo.pl/>
[View Less]
Hi,
I wanted to get clarity on a rather basic question:
When using Kamailio with TCP, is it possible to end up with fragments of
multiple SIP messages in a single "on-the-wire" packet?
>From what I understand, the purpose of Kamailio's setting TCP_NODELAY is
to prevent such bundling--as much as it is possible to control the
fragmentation/packetisation behaviour of the transport protocol from a
user-space application.
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-…
[View More]706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
[View Less]
Dear Community,
I am facing an issue with using the usrloc and registrar module to save
registration informations in database.
It works for me but when tested yesterday with around 1500-1600 users i got
a lot of queries on database mostly SELECT. I figured out that
changing db_mode to 0 resolves the issue because it works totally in memory
(almost no select query on DB).
So i think its location module.
I tried db_mode=3 and db_mode=2 but both create a lot of load on database.
The only …
[View More]function i need is to store some information of REGISTER in DB to
know the count of registered users and the source IP / user-agent /
username data.
It needs to be saved in table on successfull REGISTRATION and removed when
registration is expired or somebody UN-REGISTER.
When used location module for that there was lots of queries like this
(20000-50000 per second):
select
`contact`,`expires`,`q`,`callid`,`cseq`,`flags`,`cflags`,`user_agent`,`received`,`path`,`socket`,`methods`,`last_modified`,`ruid`,`instance`,`reg_id`,`server_id`,`connection_id`,`keepalive`
from `location` where `username`='xxxx' order by q
update `location` set `expires`='2020-01-08 18:51:39',`q`=-1.000000
,`cseq`=2042,`flags`=0,`cflags`=64,`user_agent`='n/a',`received`='sip:xxxx:5060',`path`=NULL,`socket`='udp:xxxx:20051',`methods`=NULL,`last_modified`='2020-01-08
18:50:39',`callid`='1205705227@xxxx
',`instance`=NULL,`reg_id`=0,`server_id`=0,`connection_id`=-1,`keepalive`=1,`contact`='sip:1019@xxx:5060'
where `ruid`='uloc-5e1642a3-2b90-0161'
Looking up for ideas how to resolve this issue.
I was thinking of implementing INSERT UPDATE and DELETE based on SQLops.
But how to recognize that REGISTER was expiered?
I would like location module to work mostly like in-memory.
For each new registration INSERT entry to DB, each REGISTER re-new an
UPDATE or DELETE should be triggered.
So i would expect for 1000 users around 2000 operations per minute.
Best regards,
Tom
[View Less]
Hello,
Kamailio SIP Server v5.3.2 stable release is out.
This is a maintenance release of the latest stable branch, 5.3, that
includes fixes since the release of v5.3.1. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.3.x. Deployments running previous v5.3.x
versions are strongly recommended to be upgraded to v5.3.2.
For more details about version 5.3.2 (including links and guidelines to
download the tarball or …
[View More]from GIT repository), visit:
* https://www.kamailio.org/w/2020/01/kamailio-v5-3-2-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com
[View Less]
Hello,
not so many fixes since the release of 5.3.1, but it looks enough to
release a new minor version from branch 5.3. I am planning to do in on
Thursday, Jan 9, 2020, if there are no new reports of relevant issues
that make us to reconsider and postpone.
Soon after we should probably do a release from branch 5.2 as well as
the last one from branch 5.1.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World …
[View More]Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com
[View Less]