Hello everyone,
Updated to 5.0.4 from repo, up-to-date debian 8, http_client.so is certainly loaded. When I try to change http_query to http_client_query it fails to load with error "failed to find command http_client_query". Any ideas? It is same on all my test servers.
________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493
Hi,
I've a scenario where multiple mediaservers will be registered to Kamailio
and for any incoming call from Upstream provider I've to perform
load-balancing to the actively registered media-servers.
dispatcher module does load-balancing for IP endpoints, is there any other
module where I can perform load-balancing on registered
clients(media-servers)?
Thanks,
Sammy
The way I understand it, rtpproxy is needed to pass video/audio through Kamailio to Asterisk. However, even without rtpproxy running, I get video through to Asterisk via Kamailio, and the video plays with no issues on a sip device (e.g. MicroSIP). I am confused what I need rtpproxy for.
Thank you
Hello,
it was discussed during the last irc devel meeting and everyone there
agreed to use clang-format to format the source code:
- https://clang.llvm.org/docs/ClangFormat.html
Is any developer (maybe not present during the irc devel meeting)
opposing this?
It is not going to be all at once, because some of the structures and
initialization of them may be preferred to be kept with a custom format
for being easier to read -- to have a section in the file not formatted,
it has to be enclosed in between comments:
/* clang-format off */
...
/* clang-format o. */
But for the rest of the code (i.e., functions) I think it will be better
to agree on a format and try to use it. The clang-formatting should be
done when one needs to update code in some files.
Over the years, developers come and go, having each one with a custom
formatting style is hard to maintain properly in long term. There are
modules that do not indent coherently code inside blocks, using a
mixture, more or less no style. This makes it hard for other developers
to review in case of reported issues, but also for new comers to get
familiar with the code.
In the source tree there is already a .clang-format file which defines
the options for formatting.
It was used by me and other developers already -- I did it mainly in my
modules or those components that do not have an active maintainer. But I
plan to do it also on the components that have currently a maintainer at
the moment I need to work on that code (e.g., fix some issue or export
functions to kemi framework).
My process of clang-formatting a module is like:
- edit the files to add clang-format off/on comments around the parts
I want to preserve as they are (typically mod exports -- params,
functions, kemi -- and intialization of structures that are aligned to a
specific indentation that makes it easier to read).
- run: clang-format -i src/modules/modname/*.{c,h}
- commit with these changes, no new feature or bug fix must be done in
the same commit (can be combined with removing the history comments)
If one wants different options inside .clang-format, please propose and
let's discuss which one is preferred by the majority of the current
developers.
If no one shows anything against in a matter of few days, it will be
considered accepted (after all, one can re-indent on own style if the
rule is not accepted or overturned).
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
Hello,
I entered this question before but did not include the tcpdump file. I am re-posting just in case this message was over looked for lack of information.
I am using Kamailio version 5.0.3 (x86_64/linux), and it is installed and working on a Centos 7 Sever. I use Kamailio as a SIP Proxy Server for Asterisk and things seem to work fine, however, I do have an issue and a question for which I am trying to understand and am hoping someone can help me with.
My server name is vadev2 (Kamailio run on this server), and it's IP Address and port are 172.21.1.108:5060; Asterisk servers are (172.21.1.97:5060, and 172.21.1.124:5060). The rtpproxy is 172.21.1.108:17722
Issue: Every 10 seconds I get an Error message in the Kamailio log which says =>
Nov 13 18:10:55 vadev2/usr/local/sbin/kamailio[29188]: ERROR: <core> [core/tcp_main.c:2660]: tcpconn_1st_send(): connect 172.21.1.108:59794<http://172.1.1.13:59794> failed (RST) Connection refused.
I do not know what triggers this error, and as mentioned, things do seem to work, other than I do not believe anything is going through rtpproxy; I can make calls and use sip tools which pass requests through Kamailio to Asterisk. Does anyone know what could be causing this Error? I do not understand what is trying to connect to what and why.
Should I be using rtpengine instead of rtpproxy? I did attempt rtpengine but it would not compile due to missing json.h files.
Thank you for any help
-Steve
Hi,
I have an IMS core deployed using kamailio 5.0.2. Calls from clients are reaching the core pcscf from a freeswitch (with address A.A.A.A) + a kamailio acting as proxy (with address B.B.B.B), so the INVITE request looks like this:
INVITE sip:1111111111@mnc001.mcc001.3gppnetwork.org SIP/2.0
Record-Route: <sip:A.A.A.A;lr>
Via: SIP/2.0/UDP A.A.A.A;branch=z9hG4bK8735.ef7a61e110f335b2e92a8c1d430de585.0
Via: SIP/2.0/UDP B.B.B.B:5080;received=B.B.B.B;rport=5080;branch=z9hG4bKHpB704ZaXSKtm
Max-Forwards: 65
From: "222222222" <sip:222222222@B.B.B.B>;tag=eytD49ymQr71S
To: <sip:1111111111@mnc001.mcc001.3gppnetwork.org>
Call-ID: 77d249c0-487c-1236-1997-00163edbaa97
CSeq: 115249948 INVITE
Contact: <sip:mod_sofia@B.B.B.B:5080>
User-Agent: FreeSWITCH-mod_sofia/1.6.19+git~20170927T175834Z~38f568d343~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Charge-Info: <sip:222222222@mobile.tuenti.int>;npi=ISDN;noa=4
X-FS-Support: update_display,send_info
Remote-Party-ID: "222222222" <sip:222222222@B.B.B.B>;party=calling;screen=yes;privacy=off
If the client cancels the request, the CANCEL request that gets to the core pcscf looks like this:
CANCEL sip:1111111111@mnc001.mcc001.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP A.A.A.A;branch=z9hG4bK8735.ef7a61e110f335b2e92a8c1d430de585.0
Max-Forwards: 65
From: "222222222" <sip:222222222@B.B.B.B>;tag=eytD49ymQr71S
To: <sip:1111111111@mnc001.mcc001.3gppnetwork.org>
Call-ID: 77d249c0-487c-1236-1997-00163edbaa97
CSeq: 115249948 CANCEL
Content-Length: 0
Reason: Q.850;cause=16;text="Normal Call Clearing"
The processing of the CANCEL at the pcscf is eventually reaching the t_check_trans() function, but the logs return “no CANCEL matching found!” and thus the processing ends. I have followed the code up to the via_matching function in the t_lookup.c file of the tm module source and added some logs. The via matching is failing at the port comparison (the port stored for the INVITE is “5060”, the port stored for the CANCEL is “0”.
The flow works ok with a different client (connected directly to the core) which includes the port in the Via headers.
¿Can this be a bug in kamailio or am I doing something wrong?. AFAIK The RFC 3261 does not mandate to include the ports in the sent-by element of the Via header
Thanks!
Carlos
________________________________
Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.
The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.
Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
Hi. New to the area and trying to find my way around with kamailio.
In one of my debian servers i need to have kamailio with a gui to start
playing around with it.
i am following the
http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour to
install kamailio.
When running kamdbctl create it asks what format coding that i must have to
configure the DB. i simply add latin1 and it goes on.
then when i issue kamctl add daniel 1234qwet it comes with the following
error:
root@debian:~# kamctl add daniel 1234qwet
MySQL password for user 'kamailio@localhost':
ERROR 1045 (28000): Access denied for user 'kamailio'@'localhost' (using
password: YES)
ERROR: introducing the new user 'daniel' to the database failed
root@debian:~#
Any ideas on how to proceed with the following error please?
Hello Daniel,
hello List,
after reading the fresh released kemi documentation (Thanks for that!) on
github i start to configure an kemi lua configuration. It seems to be that
there is not an dispatcher export to kemi in my installation. Or i
missconfigured something? How to use dispatcher with kemi?
1.) First try to solve this - use param "register" "modulename" to app_lua
- doesnt work
2.) grep around in the auto kemi in/export messages in debug startup -
nothing to see.
3.) grep around in the kamcmd api.list command for lua - no dispatcher
here the intressting parts of the configs and lua-script:
kamailio.cfg
...
loadmodule "dispatcher.so"
loadmodule "permissions.so"
loadmodule "avpops.so"
#!ifdef WITH_CFGLUA
loadmodule "app_lua.so"
modparam("app_lua", "reload", 1)
modparam("app_lua", "register", "dispatcher")
#!endif
#!ifdef WITH_CFGLUA
modparam("app_lua", "load", "/etc/kamailio/lua/kamailio-kemi-lua.lua")
cfgengine "lua"
#!else
import_file "request-route.cfg"
#!endif
...
kamailio-kemi-lua.lua
function ksr_request_route()
...
-- dispatch destinations
if KSR.permissions.allow_source_address(FLT_EDGE) then
KSR.info("new $fU -> $rU in permissions");
direction = "inbound";
routing_target = FLT_FSNODE;
ksr_route_dispatch(direction, routing_target);
KSR.x.exit();
end
KSR.info("NOT-OKAY - $rU dropped");
-- End of Route()
KSR.sl.sl_send_reply(407, "Proxy Authentication Required. See IP GUI");
return 1;
...
end
--- dispatcher route
function ksr_route_dispatch(direction, routing_target)
KSR.xlog.xinfo("new $fU -> $rU in routing_target ksr_route_dispatch");
KSR.info(routing_target);
if (routing_target == nil) then
KSR.xlog.xinfo("routing_target nil");
KSR.sl.sl_send_reply(604, "Does Not Exist Anywhere");
KSR.x.exit();
end
if KSR.dispatcher.ds_select_dst(routing_target, 4) then
send_reply(404, "No destination");
KSR.x.exit();
end
ksr_route_myheader();
ksr_route_relay();
KSR.x.exit();
end
/usr/sbin/kamailio[26763]: ERROR: app_lua [app_lua_api.c:713]:
app_lua_run_ex(): error from Lua:
/etc/kamailio/lua/kamailio-kemi-lua.lua:131: attempt to index field
'dispatcher' (a nil value)
kamailio -v
version: kamailio 5.0.4 (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 on 20:20:24 Nov 16 2017 with gcc 4.8.5
rpm -aq | grep kam
kamailio-mysql-5.0.4-26.el7.centos.x86_64
kamailio-5.0.4-26.el7.centos.x86_64
kamailio-lua-5.0.4-26.el7.centos.x86_64
kamailio-ims-5.0.4-26.el7.centos.x86_64
rpm -ql kamailio-5.0.4 | grep disp
/usr/lib64/kamailio/modules/dispatcher.so
/usr/share/doc/kamailio/modules/README.dispatcher
/usr/share/kamailio/dbtext/kamailio/dispatcher
--
Kind Regards
*Karsten Horsmann*