Hi admins,
I'm kinda new in this group and I'm not quite sure if I'm posting in a correct way, advise if I'm wrong.
below is my post.
------------------------------------------------------------------------------------------------------------------------------------
I would like to activate Dispatcher module for apply Load Balance functionality purpose.
but it's been hard to complete so far, I wonder if you can give me some advise in below situation.
we have 2 Kamailios, the version is 4.3.3 ; we use domain for the SIP registration.
we want to make Kamailios work in double active mode for SIP load balancing,
we have a F5 to do the domain name round robin to make two UAC regitering under two UAS.
I have put the "route(DISPATCH) b4 PSTN in request_route.
when I try to make UAC-A call to UAC-B, it appears 407 proxy authentication required.
we wiresharked, UAS has sent INVITE to UAS-B, but UAS-B sent the error code 407 to UAS-A
Is the configuration has to be set to "UAS-B accepting INVITE of UAS-A" ?
or the UAS-A should carrying the auth info into UAS-B ?
detail configuration as below.
------------------------------------------------------------------------------------------------------------------------------------
dispatcher params
modparam("dispatcher", "list_file", "/usr/local/etc/kamailio/dispatcher.list")
modparam("dispatcher", "flags", 1)
modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")
modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")
modparam("dispatcher", "sock_avp", "$avp(AVP_SOCK)")
modparam("dispatcher", "ds_ping_interval", 30)
modparam("dispatcher", "ds_ping_from", "sip:kamailio1@awesomedomain.com")
modparam("dispatcher", "ds_ping_method", "OPTIONS")
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_probing_threshold", 1)
DISPATCHER Routing
route[DISPATCH] {
# round robin dispatching on gateways group '1'
if(!ds_select_dst("1", "4")) {
send_reply("404", "No destination");
exit;
}
xdbg("--- SCRIPT: going to <$ru> via <$du>\n");
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}
# Re-route in case of failure
failure_route[RTF_DISPATCH] {
if (t_is_canceled()) {
exit;
}
# next node - only for 500 or local timeout
if (t_check_status("500") || (t_branch_timeout() && !t_branch_replied())) {
if(ds_next_dst()) {
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}
}
}
Best Regards,
Rex Lin
Hello,
I'm new to Kamailio. I'm trying to make my own auth module to check if
incoming SIP messages are sighed with a correct key. I want to do this by
calling a Java code snippet. I found app_java module but I can't figure out
if this will support my usecase.
Does app_java allow me to call Java code from another module? If not, what
can I do to meet my use case? My token verification code is written in
Java, so I'd like to reuse my code if possible.
Thanks
i run client socket program for send SIP request to kamailio server
kamailio registration is done successfully with 200OK
and i want to store 200OK in client.c program in structure
like
struct reg_db
{
char *to
char *from
char .....
.......
}
please help me
how to store ?
Hello,I want to use Cassandra and PGSQL at the same time in Kamailio. Is that possible?For example, for CDR records I want to use Cassandra and for other things I want to use PostgreSQL.
Regards.
Hello Daniel,Thanks for your reply.
So I can't see any password for root user option in the kamctlrc file by default.How can I add?
Regards.Barış.
To: sr-users(a)lists.sip-router.org
From: miconda(a)gmail.com
Date: Wed, 23 Mar 2016 08:26:58 +0100
Subject: Re: [SR-Users] Kamailio PostgreSQL Asking Password Everytime
Hello,
I haven't used the postgres in a long while, but I think it should
ask only once.
Can you try by setting the password inside the kamctlrc file and see
if works straight away?
Cheers,
Daniel
On 22/03/16 11:52, Barış Şekerciler
wrote:
Hello,
I have one postgres server at one server and Kamailio at
another server.
So I believe I did true configuration to the Kamailio.
Actually I made some tests and I could create user and
authenticated etc.
But I have a problem. When I tried to present "kamdbctl
create" Kamailio asks password 50 times (almost, much or less
idk certainly).
After 50 times Db created successfully and works.
And it looks like this:
root@bs-kamailio:/home/bs-kamailio#
kamdbctl create
INFO: creating database
kamailio ...
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
So how can I solve this
situation? I want Kamailio to asks password one time and
handle it's job.
Regards.
_______________________________________________
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
--
Daniel-Constantin Mierla
http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - http://www.kamailioworld.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
Hello,I have one postgres server at one server and Kamailio at another server.So I believe I did true configuration to the Kamailio. Actually I made some tests and I could create user and authenticated etc.
But I have a problem. When I tried to present "kamdbctl create" Kamailio asks password 50 times (almost, much or less idk certainly).After 50 times Db created successfully and works.
And it looks like this:
root@bs-kamailio:/home/bs-kamailio# kamdbctl create
INFO: creating database kamailio ...
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
So how can I solve this situation? I want Kamailio to asks password one time and handle it's job.
Regards.
Hello,
I'm new to Kamailio. I'm trying to make my own auth module to check if
incoming SIP messages are sighed with a correct key. I want to do this by
calling a Java code snippet. I found app_java module but I can't figure out
if this will support my usecase.
Does app_java allow me to call Java code from another module? If not, what
can I do to meet my use case? My token verification code is written in
Java, so I'd like to reuse my code if possible.
Thanks
Hi all
I've created a "subscriber" table which is a view of a asterisk sippeers table.
The view is created as follows:
create view subscriber as select id, name as username, fromdomain as domain,
secret as password, email as email_address, md5secret as ha1, md5secret as
ha1b, NULL as rpid from sippeers where type="friend";
and one of the resulting subscribers looks like this:
*************************** 5. row ***************************
id: 100022
username: user
domain: domain.com
password: plain or empty
email_address: user(a)domain.com
ha1: 3a4f5cc8dc0efb0d899cawe4dec9ea08
ha1b: 3a4f5cc8dc0efb0d899cawe4dec9ea08
rpid: NULL
But when I try to register I get ERROR in the logs:
New request - M=REGISTER R=sip:domain.com F=sip:user@domain.com
ERROR: db_mysql [km_dbase.c:123]: db_mysql_submit_query(): driver error on
query: Unknown column 'md5secret' in 'field list'
ERROR: <core> [db_query.c:132]: db_do_query_internal(): error while submitting
query
ERROR: auth_db [authorize.c:187]: get_ha1(): failed to query database
Is there any problem with views? Why the logs talks about md5secret column when
it should see ha1?
cheers,
Jon
Hey Guys,
I was wondering if any of you use multiple LCR instances with LCR module
since I could see that the documentation allows it, however for some
reason the queries to load data (both on restart or kamcmd lcr.reload)
somehow hardcode the value of 1 inside:
"""
select
`gw_name`,`ip_addr`,`port`,`uri_scheme`,`transport`,`params`,`hostname`,`strip`,`prefix`,`tag`,`flags`,`defunct`,`id`
from `lcr_gw` where `lcr_id`=0
select
`gw_name`,`ip_addr`,`port`,`uri_scheme`,`transport`,`params`,`hostname`,`strip`,`prefix`,`tag`,`flags`,`defunct`,`id`
from `lcr_gw` where `lcr_id`=1
select `id`,`prefix`,`from_uri`,`stopper`,`enabled`,`request_uri` from
`lcr_rule` where `lcr_id`=1
select `rule_id`,`gw_id`,`priority`,`weight` from `lcr_rule_target`
where `lcr_id`=1
"""
My kamailio version:
"""
# kamailio -V
version: kamailio 4.3.5 (x86_64/linux)
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,
DBG_QM_MALLOC, 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 with gcc 4.9.2
"""
Many thanks in advance for any kind of tip!
DanB