Hello Kamailions,
Im trying to manipulate the username from the from uri, but not having
any luck, I must be doing something wrong.
I receive a from uri username that is prefixed with 888, now I am trying
to remove the triple 8.
I have configured the following:
line
1090 if($fU=~"^888"){
1091 strip(3);
1092 }
1093 route(GETGROUP);
But I do not get any result, the debug shows the following:
29(9610) exec: *** cfgtrace:request_route=[MOMANX]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=1093 a=16 n=if
29(9610) exec: *** cfgtrace:request_route=[MOMANX]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=1091 a=45 n=strip
29(9610) exec: *** cfgtrace:request_route=[MOMANX]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=1093 a=5 n=route
Does anyone see what I am doing wrong?
Help would be appreciated.
Rgds,
Gertjan Wolzak
Iwant to work with "app_python" module,i set “script_name”,“mode_init_function”, “child_init_function” and “python_exec”in kamailio.cfg ,but I have a problem in “python_exec”section. This section not work in correctly, please guide me.thanks
Hi Guys,
I recently tried to use Debian Stretch in production and it didn't went
well. On load(500k-700k SIP messages per day) I get a problem that at some
point there was a pike of CLOSE_WAIT connections(up to 2k of CLOSE_WAIT
connections) and no new connections was possible, I tried to figure out
where problem is, but I didn't found anything in system or Kamailio logs,
Kamailio just stopped to receive traffic via TCP, but UDP continued to
work. Test environment where was no load I didn't faced such issue.
Just curious is there anybody who are using Debian Stretch in production
without issues?
Jurijs
Hi I added this eventroute for manipulate temprorary entires in my
subscriber table
but it is not called in my cfg.
May be i didn't setted up in scf but didnf found any special params for
this.
I use kamailio 5.0.3
version: kamailio 5.0.3 (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 09:39:55 Sep 8 2017 with gcc 4.9.2
My registrar and usrloc modules setted up as usual
modparam("registrar", "method_filtering", 1)
modparam("registrar", "max_expires", 3600)
modparam("registrar", "gruu_enabled", 0)
modparam("usrloc", "db_url", DBURL)
modparam("usrloc", "db_mode", 3)
modparam("usrloc", "use_domain", MULTIDOMAIN)
thx for advice
Hi,
I need to enable sigcomp with kamailio. Can any one guide me how proceed
with that.
And its ok to integrate any third party tools like libsigcomp for the same.
Regards
Raman
Hello all,
I've been trying to utilise event_route[htable:mod-init] in order to load
information from the database into an htable on startup. However, Kamailio
exits with an error for no obvious (to me) reason. Here's the log output:
DEBUG: htable [htable.c:226]: child_init(): rank is (-127)
DEBUG: htable [htable.c:259]: child_init(): executing
event_route[htable:mod-init] (2)
DEBUG: <core> [core/parser/msg_parser.c:600]: parse_msg(): SIP Request:
DEBUG: <core> [core/parser/msg_parser.c:602]: parse_msg(): method:
<OPTIONS>
DEBUG: <core> [core/parser/msg_parser.c:604]: parse_msg(): uri: <
sip:you@kamailio.org>
DEBUG: <core> [core/parser/msg_parser.c:606]: parse_msg(): version:
<SIP/2.0>
DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header
reached, state=2
DEBUG: <core> [core/parser/msg_parser.c:491]: parse_headers(): Via found,
flags=2
DEBUG: <core> [core/parser/msg_parser.c:493]: parse_headers(): this is the
first via
ERROR: <core> [core/daemonize.c:303]: daemonize(): Main process exited
before writing to pipe
And here's the routing block in kamailio.cfg. What I need to do is get the
username for all non-expired contacts in the "location" table, perform a
query on another database for each one of them and store the result in an
htable:
event_route[htable:mod-init] {
sql_pvquery("ck", "select username from location where now() <=
expires", "$avp(registered_ng)");
$var(i) = 0;
while ( $(avp(registered_ng)[$var(i)]) != $null ) {
sql_pvquery("ca", "select property from tablename where username =
$(avp(registered_ng)[$var(i)])", "$var(ng_property)");
$sht(isnguser=>$var(ng_property)) = 1;
$var(i) = $var(i) + 1;
pv_unset("$var(ng_property)");
}
pv_unset("$var(i)");
}
Any hints as to what I might be doing wrong? Thanks!
Best regards,
George
Hi,
We are checking the kamailio source code for the ASYNC module. The system is working for REQUEST_ROUTE, but not for REPLY_ROUTE.
We added the ANY_ROUTE in the cmd_export_t, but still the async_route is not able to suspend for SIP Reply (For example, 401 - Unauthorized). Can we get some help on how to perform this. Some hints on how to perform would really help our development.
static cmd_export_t cmds[]={
{"async_route", (cmd_function)w_async_route, 2, fixup_async_route,
0, REQUEST_ROUTE|FAILURE_ROUTE|ANY_ROUTE},
{"async_sleep", (cmd_function)w_async_sleep, 1, fixup_async_sleep,
0, REQUEST_ROUTE|FAILURE_ROUTE|ANY_ROUTE},
{"async_task_route", (cmd_function)w_async_task_route, 1, fixup_async_task_route,
0, REQUEST_ROUTE|FAILURE_ROUTE|ANY_ROUTE},
{0, 0, 0, 0, 0, 0}
};
Regards,
RajaGopal Maddi