Hi,
We are using kamailio 4.4.2 version source code.
For building SCSCF we are using example configuration files
provided in the source code.
While running SCSCF; we are facing following error.
ERROR: ims_dialog [ims_dialog.c:378]: mod_init(): no dlg flag
set!!
q
Regards,
Suresh
The information contained in this electronic message (email) and any attachments to this email are intended for the exclusive use of the addressee(s) and access to this email by any one else is unauthorised. The email may contain proprietary, confidential or privileged information or information relating to Reliance Group. If you are not the intended recipient, please notify the sender by telephone, fax, or return email and delete this communication and any attachments thereto, immediately from your computer. Any dissemination, distribution, or copying of this communication and the attachments thereto (in whole or part), in any manner, is strictly prohibited and actionable at law. The recipient acknowledges that emails are susceptible to alteration and their integrity can not be guaranteed and that Company does not guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.
Hi guys, sorry for the newbie question, I searched for it and couldn't find any reference, is there a way to change the debug level of a kamailio server on the fly? If I need to add an additional module it's not a problem. I'm using version 4.4.2 on Debian Jessie.
Thanks!
Federico
hel
>From time to time (it does not depend upon traffic) we see in logs:
ERROR: <core> [tcp_read.c:274]: tcp_read_data(): error reading: Bad file descriptor (9) ([ip_address]:49832 -> [ip_address]5060) ERROR: <core> [tcp_read.c:1303]: tcp_read_req(): ERROR: tcp_read_req: error readingERROR: <core> [io_wait.h:608]: io_watch_del(): trying to delete already erased entry 3031 in the hash(0, 0, (nil)) flags 10)CRITICAL: <core> [tcp_read.c:1654]: handle_io(): io_watch_del failed for 0x7f8471c51820 id 867 fd 3031, state 0, flags 4018, main fd 179, refcnt 2 ([ip_address]:49832 -> [ip_address]:5060)
there are a lot of such TCP CRITICAL errors and the kamailio crushes
kamailio -vversion: kamailio 4.3.5 (x86_64/linux)flags: STATS: Off, USE_TCP, USE_TLS, 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_RESADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MBpoll method support: poll, epoll_lt, epoll_et, sigio_rt, select.id: unknowncompiled on 17:51:55 Mar 8 2016 with gcc 4.4.7
It is still not clear - what exactly causes such behaviour.
I want to recriate it in the lab - so what can cause it.?
May be a process erases the file descriptors of TCP connections?
Any help is appreciated.
We need to check if a 1XX reply is part of an INVITE transaction that was forked to 2 or more phones. We figure that we can do a location lookup, based on the to header of the 1XX... but is there a better way?
Phil
Hello,
Once set up and running the Kamailio environment would like to install SNMP and
incorporate the functionality to collect the statistics of IMS entities.
It's possible?
When I call the module "snmpstats" I am informed that the module is not
present. How can I solve?
Another issue, which modules are monitorable via SNMP, P-CSCF, I-CSCF, S-
CSCF? All?
Regards.
--
Rodrigo M.
(37) 9132-4539
(34) 9889-3069
rodrigo.moreira2007
Hi,
We would like to know if there is some way to check the state of a diameter
connection (to see is it's in state 6: connected), inside the kamailio
configuration script.
Also we would like to know if there is a way to see the number of current
calls in a kamailio through kamcmd, kamctl or something like that.
We have searched for a solution but we don't find anything.
Many thanks.
Hi Guys,
I need to send a JSON document over HTTP to a server, and then process the response, both in the kamailio configuration file.
I assume I need to use Jansson module to extract contents of response?
What is the best method for generating the initial request containing JSON ?
Many thanks
Jon
If an enduser INVITEted over TCP t_set_fr(t) with t < 30s have no
effect, the INVITE will always timeout after 30s. What is controlling
this 30s? The only default at 30s is the fr_timer, which should have no
part in the timeout between an 1xx and a final answer for an INVITE.
Hi folks,
I came into a problem with evapi module, while I was trying to make the
CGRateS tutorial work. It does not send any messages at all.
Taken steps:
I start kamailio with debug=3.
I start:
CGRates (on the kamailio machine)
telnet 192.168.30.29 8448 (from my PC)
tcpdump port 8448 -A -s0 -i any (on the kamailio machine)
Telnet command successfully connects to kamailio. Kamailio yells:
root@cgrates:/opt/kamailio/src/kamailio-4.4/kamailio# 11(12205) DEBUG:
evapi [evapi_dispatch.c:453]: evapi_accept_client(): new connection -
pos[1] from: [192.168.30.1:40312]
11(12205) INFO: <script>: Starting Evapi connector srcaddr 192.168.30.1
srcport 40312 condix 1
11(12205) DEBUG: htable [ht_var.c:90]: pv_set_ht_cell(): set value for
$sht(cgrconn=>cgr)
A similar message is printed when CGRateS connects in.
Afterwards I make a call to Kamailio. INVITE is routed to a following
command:
evapi_async_relay("{\"event\":\"CGR_AUTH_REQUEST\",
\"tr_index\":\"$T(id_index)\",
\"tr_label\":\"$T(id_label)\",
\"cgr_reqtype\":\"$dlg_var(cgrReqType)\",
\"cgr_tenant\":\"$dlg_var(cgrTenant)\",
\"cgr_account\":\"$dlg_var(cgrAccount)\",
\"cgr_destination\":\"$dlg_var(cgrDestination)\",
\"cgr_setuptime\":\"$TS\",
\"cgr_computelcr\":\"true\"}");
Now the kamailio writes:
.
.
.
2(12196) DEBUG: dialog [dlg_var.c:260]: print_lists(): Dialog var-list
(0x7f196d1c5248):
2(12196) DEBUG: dialog [dlg_var.c:265]: print_lists(): cgrDestination=1002
(flags 1)
2(12196) DEBUG: dialog [dlg_var.c:265]: print_lists(): cgrAccount=1001
(flags 1)
2(12196) DEBUG: dialog [dlg_var.c:265]: print_lists(): cgrTenant=
cgrates.org (flags 1)
2(12196) DEBUG: dialog [dlg_var.c:265]: print_lists(): cgrReqType=*prepaid
(flags 1)
2(12196) DEBUG: dialog [dlg_hash.c:922]: dlg_unref(): unref dlg
0x7f196d1c4c08 with 1 -> 1
2(12196) DEBUG: evapi [evapi_dispatch.c:603]: evapi_relay(): relaying
event data [{"event":"CGR_AUTH_REQUEST",
"tr_index":"59559",
"tr_label":"1886589610",
"cgr_reqtype":"*prepaid",
"cgr_tenant":"cgrates.org",
"cgr_account":"1001",
"cgr_destination":"1002",
"cgr_setuptime":"1471623526",
"cgr_computelcr":"true"}] (246)
2(12196) DEBUG: evapi [evapi_dispatch.c:628]: evapi_relay(): sending
[0x7f196d1c88b8] [246:{"event":"CGR_AUTH_REQUEST",
"tr_index":"59559",
"tr_label":"1886589610",
"cgr_reqtype":"*prepaid",
"cgr_tenant":"cgrates.org",
"cgr_account":"1001",
"cgr_destination":"1002",
"cgr_setuptime":"1471623526",
"cgr_computelcr":"true"},] (251)
2(12196) DEBUG: evapi [evapi_dispatch.c:630]: evapi_relay(): Len of write
is 8
2(12196) INFO: <script>: suspended transaction: 59559 / 1886589610
.
.
.
However no reply from CGRateS comes, tcpdump is quiet (no message was sent
or received), as well as my testing telnet session (nothing is received).
The network doesn't seems to be the issue, as when I write "6:Efelin," to
the telnet session, kamailio executes the route
event_route[evapi:message-received]
Versions:
# dpkg -l | grep libev-dev
ii libev-dev 1:4.15-3 amd64
# uname -a
Linux cgrates 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3
(2016-07-02) x86_64 GNU/Linux
# kamailio -V
version: kamailio 4.4.2 (x86_64/linux) 384e90
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,
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: 384e90
compiled on 12:04:04 Aug 19 2016 with gcc 4.9.2
I wasn't able to find anything that might block the connection. Can anyone
point me to, how to debug this issue further?
Thanks for any advice.
Kind regards
Jan Muranyi
Hi all
I do have a problem with getting a propper interconnection to our new carrier..
Situation as following
User --> Class5 switch --> Kamailio --> carrier
I always get the ip of the class5 switch in the contact.
But my carrier needs the kamailios contact ip - because of the ack handling.
I replaced in the pstn routing parte the contact by
remove_hf("Contact");
append_hf("Contact: <sip:xyz@a.b.c.d>\r\n");
This worked - but the bye did not work any more.
Please help me on that topic ... I am searching for a solution for more than 8 weeks now ...
KR,
Oli