Hello,
We are working on a project that's using two active-active Kamailio 5.2
instances that redirect traffic to several Asterisk 15.4 instances.
Kamailio is acting as a registrar and should store the location information
of the registered terminals. The backend database is db_redis.
Phone terminals get registered and the information gets looked up from the
subscriber schema in redis (That's cool) but we are having problems with
the locations. This is the related code:
modparam("db_redis", "keys",
"location=entry:ruid&usrdom:username,domain&timer:partition,keepalive")
if(ds_is_from_list("1", "2", "sip:$fd:5080")) {
record_route();
route(INVITE_ASTERISK);
exit;
}
route[INVITE_ASTERISK] {
xlog("L_INFO", "[R-INVITE-RESOLVER:$ci] Entering ASTERISK INVITE
resolver\n");
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
return;
}
route(INVITE_POSTROUTE);
}
route[INVITE_POSTROUTE] {
rtpproxy_manage();
t_on_reply("MAIN_REPLY");
if(!t_relay())
sl_reply_error();
}
When looking up the location schema this errors appear:
9(39) WARNING: db_redis [redis_dbase.c:1098]: db_redis_perform_query():
performing full table scan on table 'location' while performing query
9(39) WARNING: db_redis [redis_dbase.c:1101]: db_redis_perform_query():
scan key 0 is 'expires'
9(39) WARNING: db_redis [redis_dbase.c:1101]: db_redis_perform_query():
scan key 1 is 'expires'
9(39) ERROR: <core> [db_ut.c:92]: db_str2int(): Unexpected characters:
[-03-29 18:16:36]
9(39) ERROR: <core> [db_val.c:76]: db_str2val(): error while converting
integer value from string
9(39) ERROR: db_redis [redis_dbase.c:1062]: db_redis_convert_row(): Failed
to convert redis column 'expires' to db value
9(39) ERROR: db_redis [redis_dbase.c:1231]: db_redis_perform_query():
Failed to convert redis reply for row
9(39) ERROR: db_redis [redis_dbase.c:1243]: db_redis_perform_query():
failed to perform the query
9(39) ERROR: db_redis [redis_dbase.c:1829]: db_redis_query(): failed to do
the query
9(39) ERROR: usrloc [udomain.c:981]: udomain_contact_expired_cb():
db_query failed
Any hints?
Thanks and regards,
Hi kamailios,
I meet a problem with the " kamctl alias add" command in the 5.2 version, I
saw that the module used to add an alias had changed, and now the command
result with an error :
[kamailio]# kamctl alias add XXXX@XXXX sip:XXXXX@XXXX
{
"jsonrpc": "2.0",
"error": {
"code": 500,
"message": "Not enough parameters or wrong format"
},
"id": XXXXX
}
I read the function who return this message " static void ul_rpc_add(rpc_t*
rpc, void* ctx)" in the ul_rpc.c in the usr_loc module.
I tried to pass the command with two more parameters :
# kamctl alias add 0175951068(a)trunk7.bornsip.fr
sip:0175951068@trunk7.bornsip.fr NULL NULL
{
"jsonrpc": "2.0",
"result": {
},
"id": 29200
}
And this time it works correctly, but I saw thaht the test prameters was in
the field "path" , do you know why we have to indicate a path ?
Are we obliged to indicate this two more parameters ?
What is the utility of this field ?
Thank you in advance,
Igor
recently i wrote a portion of my cfg file but i found that
i based my code in other sources and results of try/tach experiments
i cannot found the documents for the languaje of the core
i only found the link: https://www.kamailio.org/wiki/cookbooks/devel/core
but in that link there's no references about languaje per see
only about how to write portions of the file and sections..
maybe i wrong or the document are wrote in different way?
by example how to evaluate the output of a custom function/section?
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
h have this for a custom rule agains spoecific messages:
sl_send_reply("200", "OK");
drop();
exit;
my question are if that rules are correct:
i want to drop but send firts to client a ok response..
i mean client receive "all are ok dont worry" and then drop the rest
packets..
that's correct?
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
Hello guys, i'm trying to configure rtpengine, but when starting kamailio
(with an empty table) i'm getting
```build_rtpp_socks(): no more pkg memory for rtpp_socks```
Can anyone help?
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337