Good Day All.
I run into following problem:
(It may be helpful for other people how have similar problem)
kamctl add 1000 password
database engine 'PGSQL' loaded
Control engine 'FIFO' loaded
is_user: user counter=0 <--- showing counter=0
check_db_alias: alias counter= <--- showing counter= nothing
INFO: user '1000' already exists as alias
============================================================
how to fix it :
in kamctl locate a function
check_db_alias() {
.....
CNT=`$DBROCMD "$QUERY" | $EGREP -v ERROR | $LAST_LINE`
.....
}
replace with CNT command with following:
check_db_alias() {
.....
CNT=`$DBROCMD "$QUERY" "$DBRAWPARAMS" | $EGREP -v ERROR |
$LAST_LINE`
.....
}
============================================================
after this
kamctl add 1000 password
database engine 'PGSQL' loaded
Control engine 'FIFO' loaded
is_user: user counter=0
check_db_alias: alias counter=0
pgsql_query: /usr/bin/psql -A -q -t -P fieldsep=' ' -h
localhost -U kamailio kamailio -c 'insert into subscriber (username,
domain,ha1,ha1b,password)
values
('1000','127.0.0.1','6fda0594de6ea94b03a12fdd998758ae','31e118ac5b09f07
1858740d6125d901d','');'
new user '1000' added
Regards Pavlo.
Hi,
I am having issues getting the dispatcher to work using weighting. I
have been digging through old posts to the list, and tried all that I
have found, but am still having no luck at all.
So, information...
version: kamailio 4.2.4 (amd64/freebsd) be62bd
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,
F_MALLOC, DBG_F_MALLOC, USE_PTHREAD_MUTEX, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE
65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, select, kqueue.
id: be62bd
Dispatcher configuration...
modparam("dispatcher", "db_url", DBURL)
modparam("dispatcher", "table_name", "dispatcher")
modparam("dispatcher", "flags", 3)
modparam("dispatcher", "force_dst", 1)
modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")
modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")
Dialplan config..
route[DISPATCH] {
if(!ds_select_dst("1", "9"))
{
send_reply("404", "No destination");
exit;
}
xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
t_on_failure("RTF_DISPATCH");
return;
I am loading the values from a database, which are being loaded fine,
and appear to be being formatted correctly aswell..
+----+-------+-------------------------+-------+----------+------------+----------------------+
| id | setid | destination | flags | priority | attrs |
description |
+----+-------+-------------------------+-------+----------+------------+----------------------+
| 1 | 1 | sipx.x.x.106:5060 | 8 | 1 | weight=100 |
|
| 2 | 1 | sip:x.x.x.107:5060 | 8 | 1 | weight=0 |
|
+----+-------+-------------------------+-------+----------+------------+----------------------+
The IP's are public, so i've masked them... The following is from kamcmd..
{
NRSETS: 1
RECORDS: {
SET: {
ID: 1
TARGETS: {
DEST: {
URI: sip:x.x.x.107:5060
FLAGS: AP
PRIORITY: 1
ATTRS: {
BODY: weight=0
DUID:
MAXLOAD: 0
WEIGHT: 0
}
}
DEST: {
URI: sip:x.x.x106:5060
FLAGS: AP
PRIORITY: 1
ATTRS: {
BODY: weight=100
DUID:
MAXLOAD: 0
WEIGHT: 100
}
}
}
}
}
}
However, when any call is placed, it will always goto the server ending
107 (with weight 0, which means, as far as I understand, it should be
ignored). I've tried with ; after the weights, this made no change either.
When set to round robin, or via priority, it appears to work fine.
Any ideas?
--
Kind Regards,
---------
Ben
Hello,
l would like to send a SIP message (NOTIFY for example) to a specific user
when a new account is created in the kamailio database.
Is it possible to do that?
Best regards
Loïc
Ok, now I check dlg_manage settings.
Thanks
--------------------------------
Ángel Elena Medina _o)
craem(a)craem.net / \\
http://blog.craem.net _(___V
@craem_
--------------------------------
-----Mensaje original-----
De: ycaner <yasin.caner(a)netgsm.com.tr>
Enviado: Lun 19-10-2015 08:22
Asunto: Re: [SR-Users] call-limit peer
Para: sr-users(a)lists.sip-router.org;
> Hello;
> with dialog module using dont forget set dlg_manage or setting flags.
> or you can do it with pike limit for only INVITE methods.
>
>
>
>
> --
> View this message in context:
> http://sip-router.1086192.n5.nabble.com/call-limit-peer-tp142403p142407.html
> Sent from the Users mailing list archive at Nabble.com.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
Hi everybody.
I have a kamailio 4.0 running with rtpproxy and debian 7.8, and I need limit calls by IP.
My kamailio.cfg:
# -----------------------------------------
#------------------------------------------
loadmodule "dialog.so"
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "enable_stats",1)
modparam("dialog", "hash_size", 4096)
modparam("dialog", "profiles_with_value","callquota")
modparam("dialog", "default_timeout", 300)
modparam("dialog", "dlg_match_mode", 2)
modparam("dialog", "detect_spirals", 1)
modparam("dialog", "db_mode", 0)
In my route outside, I have:
get_profile_size("callquota", "$avp(s:tag)", "$var(SIZE)");
xlog ("L_INFO", ".... $avp(s:tag) ..... CALLQUOTA .... $var(SIZE)..... \n ");
On $avp(s:tag) is the client code-peer/ip.
When I view the logs... the result:
Oct 18 22:18:03 sipproxy /usr/local/sbin/kamailio[19724]: INFO: <script>: .... 4012 ..... CALLQUOTA .... 0.....
Always, the result is '0'.
Is correct my configuration ?
thanks
--------------------------------
Ángel Elena Medina _o)
craem(a)craem.net / \\
http://blog.craem.net _(___V
@craem_
--------------------------------
Hello mike,
you can achieve it by doing DB update query using sqlops module. If
you want to change the user's password dynamically under a certain
condition, just invoke a update query to the DB using sqlops. Hope it solves
your issue.
Regards
Surendra
Hi all,
I was wondering if there was a way to change a user's password from within
the routing logic section of kamailio.cfg (i.e. like do what 'kamctl
password' does, but in the routing logic)?
Thank,
Mike
******
Hello Daniel,
Thanks for your reply. I did some debugging, I found that I am
getting error like this, earlier this log was in DBG mode, changed to error
and then I ran the load.. "auth:pre_auth: Invalid nonce value received (ret
2)"
Problem is that this issue getting simulated every time. I am using
auth module version of kamailio 4.1.5 , since I checked with latest kamailio
version 4.3.2 , I didn't find any differences in this module. Please find my
finding below
Auth/nonce.c:check_nonce()
b_nonce2_len=calc_bin_nonce_md5(&b_nonce2, cfg, secret1, secret2, msg);
if (!memcmp(&b_nonce.n.md5_1[0], &b_nonce2.n.md5_1[0], 16)) // here where
condition is getting failed and it is returning 2.
Regards
Surendra
Hello,
are there any error messages in the syslog?
Maybe setting debug level for auth modules to 3 and looking at logs will
help to reveal what is happening. Be sure syslog is in async mode,
otherwise it will slow down processing.
Cheers,
Daniel
On 16/10/15 08:42, Surendra.P wrote:
>
> Hello Daniel,
>
>
>
> I have a concern regarding auth module, I am running
> 2000 TPS for 1000000 subscribers, using SIPP. What I observed when
> you run small load like 500 TPS, everything get passed, but for 2000 TPS
>
> With same subscriber.csv file some of the subscribers getting
> challenged. May I this why auth module is behaving like this.. below
> are the parameters which I configured in auth module
>
>
>
> modparam("auth", "nonce_expire", 3600), rest all parameters default
> values.
>
>
>
> Regards
>
> Surendra
>
Hi all,
I was wondering if there was a way to change a user's password from within
the routing logic section of kamailio.cfg (i.e. like do what 'kamctl
password' does, but in the routing logic)?
Thank,
Mike