Thanks for the quick reply, i'll have a look at that! I am also keen to log
SIP invite errors etc, is this normally shown in the CDR table?
Cheers
Keith
Hi guys,
Does anyone have any advice to good Kamailio logging and debugging? When
you switch on debugging the file grows quickly and with information that
isn't really required. My initial idea is to run through the code and make
lots of comments but just wanted other peoples ideas/views.
Thanks, as always.
Keith
Hello,
I have few issues on my list to fix for 4.1 before the full release, but
I consider one week being enough time. Therefore I plan to release 4.1.0
next Wednesday, Dec 4, 2014.
If anyone would prefer a different plan, expose it on the mailing list
for further discussions.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hello all,
The subject says most of it, I think.
We set up our Kamailio and RTPProxy according to
http://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6
with the addition of an alias (siplab.ch), and the DNS to go with it, as
well as TLS and SRTP.
However, we only get working calls IPv4-IPv4 and IPv6-IPv6! IPv4-IPv6 we
get a proper connection,
secured with SRTP, but no audio. Looking at the network, RTP packets go
from the caller to the server,
but nothing leaves the server and no RTP packets go from callee to server.
Do you have any idea how to fix this?
Cheers,
Mark
Hello Guys,
I am using Kamailio 4.1.0. I am trying to get Kamailio to rotate the cdr
log through command kamcmd flatstore.rotate but it keeps sending log to
the renamed files,
I use the following parameter
#!define WITH_ACCFILE
# ----- acc params -----
/* what special events should be accounted ? */
modparam("acc", "early_media", 1)
modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
/* by default ww do not adjust the direct of the sequential requests.
if you enable this parameter, be sure the enable "append_fromtag"
in "rr" module */
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "log_flag", FLT_ACC)
modparam("acc", "log_missed_flag", FLT_ACCMISSED)
modparam("acc", "log_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)
/* enhanced DB accounting */
modparam("acc", "db_flag", FLT_ACC)
modparam("acc", "db_missed_flag", FLT_ACCMISSED)
#!ifdef WITH_ACCFILE
modparam("acc", "db_url", "flatstore:/var/log/kamailio")
modparam("db_flatstore", "flush", 1)
modparam("acc", "cdr_enable", 1)
#modparam("acc", "cdr_flag", 3)
modparam("acc", "db_extra","ds=$DLG_lifetime")
modparam("acc", "log_extra",
"src_user=$fU;src_domain=$fd;src_ip=$si;"
"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;"
"duration=$DLG_lifetime")
modparam("acc", "db_extra",
"src_user=$fU;src_domain=$fd;src_ip=$si;"
"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;"
"duration=$avp(i:256)")
#!endif
Hi,
I want to build in a Class of Restriction in Kamailio so I can allow/deny
calls to numbers (countries) based on the caller CLI. Ideally I want to do
this in the db but not sure the best way or if there is something to do
this already?
Cheers.
Keith
Hi,
I have a Kamailio 3.3.3 server that currently reports the following
errors upon execution of t_relay() for certain initial INVITEs.
daemon.err /usr/sbin/kamailio[26916]: ERROR: <core>
[sip_msg_clone.c:505]: ERROR: sip_msg_cloner: cannot allocate memory
daemon.err /usr/sbin/kamailio[26916]: ERROR: tm [t_lookup.c:1338]:
ERROR: new_t: out of mem:
daemon.err /usr/sbin/kamailio[26917]: ERROR: tm [t_lookup.c:1478]:
ERROR: t_newtran: new_t failed
I understand this error to be related to shared memory, based on [1].
However, sercmd reports normal shared memory utilization:
# sercmd core.shmmem
{
total: 67108864
free: 43189728
used: 20505784
real_used: 23919136
max_used: 65948568
fragments: 36887
}
These figures are quite similar to another server with the same
configuration and Kamailio version, which is not reporting out-of-memory
errors.
# sercmd core.shmmem
{
total: 67108864
free: 40219536
used: 23241952
real_used: 26889328
max_used: 66306288
fragments: 37832
}
I recently saw similar symptoms on a Kamailio 4.0.4 server, but
Kamailio unfortunately crashed before I could get further details. In
this case, I can consistently duplicate the problem with certain
INVITEs. It seems that the failure is somehow related to the size of the
SIP headers. For example, I have an INVITE from a Polycom phone which
t_relay() routes successfully with 741 bytes of headers (total SIP
length 1039 bytes). However, it seems that if I add one character to any
of its SIP headers (742 bytes of headers; total SIP length 1039 bytes)
the t_relay() will consistently fail.
This binary doesn't have DBG_QM_MALLOC configured (I am working on
getting it re-compiled). However, since I don't know what caused the
problem, I would still like to get as much information as I can out of
the running system. I have attached the output of mi_statistics, as well
as mem_dump_pkg for the external UDP receivers and the ctl handler. Are
there any other diagnostics that could be useful?
-Andrew
[1]
http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:faq#qwhat_does_er…
I just did a fresh from git install of kamailio and a fresh install of
Siremis.
Everything seemed to go fine until Siremis gets to the initial login.
When I try to login I get a popup window labeled Debug Window with the
following contents:
System Internal Error
The detailed error message are below:
[2013-12-01 00:14:08 (GMT)] An exception occurred while executing this script:
Error message: #256, Cannot find the class with name as service.
Script name and line number of error:
/var/www/admin/siremis-4.0.0/openbiz/bin/ObjectFactory.php:157
function: errorHandler ( 256, "Cannot find the class with name as
service.",
"/var/www/admin/siremis-4.0.0/openbiz/bin/ObjectFactory.php", 157,
Array(12) ) @ /var/www/admin/siremis-4.0.0/openbiz/bin/sysheader.inc 117
function: userErrorHandler ( 256, "Cannot find the class with name as
service.",
"/var/www/admin/siremis-4.0.0/openbiz/bin/ObjectFactory.php", 157,
Array(12) ) @
function: trigger_error ( "Cannot find the class with name as
service.", 256 ) @
/var/www/admin/siremis-4.0.0/openbiz/bin/ObjectFactory.php 157
function: constructObject ( "service.securityService" ) @
/var/www/admin/siremis-4.0.0/openbiz/bin/ObjectFactory.php 56
function: getObject ( "service.securityService", 0 ) @
/var/www/admin/siremis-4.0.0/openbiz/bin/BizSystem.php 252
function: getObject ( "service.securityService", 0 ) @
/var/www/admin/siremis-4.0.0/openbiz/bin/BizSystem.php 241
function: getService ( "service.securityService" ) @
/var/www/admin/siremis-4.0.0/openbiz/bin/BizController.php 57
function: processSecurityFilters ( ) @
/var/www/admin/siremis-4.0.0/openbiz/bin/BizController.php 31
function: include_once (
"/var/www/admin/siremis-4.0.0/openbiz/bin/BizController.php" ) @
/var/www/admin/siremis-4.0.0/siremis/bin/controller.php 6
Please ask system administrator for help...
Report to admin Show Error
Please wait a while ...
-----------------
Any suggestions on what might be causing this?
I'm not sure where to start looking.
Thanks.
Mark II
--
Mark D. Montgomery II
http://www.techiem2.net