Re: [SR-Users] TLS module not initialized in 4.3.3, worked in 4.1.5

2015-11-13 Thread Daniel-Constantin Mierla
Hello, if you start with debug=3, do you see the message: DEBUG: [sr_module.c:959]: init_mod(): tls Cheers, Daniel On 13/11/15 12:17, Sebastian Damm wrote: > Hello, > > we just updated one kamailio server from 4.1.5 to 4.3.3, and although > the config file is correct and kamailio starts up,

Re: [SR-Users] Support-for-AKAv2-MD5-authentication-in-kamailio

2015-11-13 Thread Daniel-Constantin Mierla
Hello, look at ims_auth module. Cheers, Daniel On 12/11/15 10:24, Anil Kumar wrote: > Hi, > > > I want to enable AKAv2-MD5 type authentication using a plain kamailio. > > Is there any way I can achieve it ? > > Please do needful. > > Thanks > Anil > > >

Re: [SR-Users] TLS module not initialized in 4.3.3, worked in 4.1.5

2015-11-13 Thread Sebastian Damm
Hi Daniel, I just moved the TLS config lines up top even before sl and tm module. Also moved the modparam stuff up there. When starting, Kamailio says, it is listening on a TLS socket, but netstat says, it isn't. It's basically the same behavior as before. (This is the last log line from shutting

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Sebastian Damm
On Fri, Nov 13, 2015 at 3:43 PM, Alexandru Covalschi <568...@gmail.com> wrote: > What if I don't need a plaintext password on Kamailio? I mean, I don't > want to user pv_www_authenticate or other auth functions again - I need to > fully control AUTH on API. Is it ok to just send 200 OK to client

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
Many thanks for you help Sebastian! 2015-11-13 19:13 GMT+02:00 Sebastian Damm : > > On Fri, Nov 13, 2015 at 3:43 PM, Alexandru Covalschi <568...@gmail.com> > wrote: > >> What if I don't need a plaintext password on Kamailio? I mean, I don't >> want to user pv_www_authenticate or

[SR-Users] Kamailio queues

2015-11-13 Thread David Villasmil Govea
Hello Guys, I'm new to this list. I'm trying to setup a queue with 4.3.3 (x86_64/linux) and I see a couple of things i'm wondering about: - kamdbctl created the table "mohqueues" and the associated value in the "version" tables. Whereas kamailio uses "mohqueue" (no extra "s" at the end). -

[SR-Users] Loading mohqueue stops kamailio from starting up

2015-11-13 Thread David Villasmil Govea
Hello all, I installed kamailio on debian from kamailio's apt repository. Configured it with kamdbctl, started it up properly, no issues. I configured mysql also, worked properly. Next i loaded up "mohqueue" and everything went to hell :) This is my config: loadmodule "mohqueue.so" # -

[SR-Users] (no subject)

2015-11-13 Thread David Villasmil Govea
Hello guys, I'm trying to startup 4.3 and i'm getting the following: 0(4420) DEBUG: [db_row.c:117]: db_allocate_row(): allocate 192 bytes for row values at 0x7fe6bf6b5a48 0(4420) DEBUG: [db_val.c:74]: db_str2val(): converting INT [1] 0(4420) DEBUG: [db_val.c:118]: db_str2val(): converting

Re: [SR-Users] (no subject)

2015-11-13 Thread SamyGo
Hi, I believe you're trying to setup some MOH-Queue it can't find the MOH file. 0(4420) ERROR: mohqueue [mohq_db.c:504]: update_mohq_lst(): Queue,Field (test_queue,mohdir): Unable to find MOH files (/var/kamailio/MOH//test.8.*)! Or if files exist at that location check the permissions.

[SR-Users] TLS module not initialized in 4.3.3, worked in 4.1.5

2015-11-13 Thread Sebastian Damm
Hello, we just updated one kamailio server from 4.1.5 to 4.3.3, and although the config file is correct and kamailio starts up, it doesn't initialize TLS and says " tls support enabled, but no tls engine available (forgot to load the tls module?)" In the log I see: Old shutdown (last lines):

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
So it should be like ... if (!has_credentials("myrealm")) { www_challenge("$td", "1"); } else { if (!my_script()){ sl_send_reply("401", "Not Authorized"); } } ... 2015-11-13 16:13 GMT+02:00 Alexandru Covalschi <568...@gmail.com>: > simple send_reply("200",

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Sebastian Damm
Hello, it't been a while since I worked with external scripts, but you can exec external scripts. See: http://www.kamailio.net/docs/modules/4.3.x/modules/exec.html The documentation says, you can access header fields of the packet via environment variables. So you can get the WWW-Authorize

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
What if I don't need a plaintext password on Kamailio? I mean, I don't want to user pv_www_authenticate or other auth functions again - I need to fully control AUTH on API. Is it ok to just send 200 OK to client if API tells me that password is ok? 2015-11-13 16:39 GMT+02:00 Sebastian Damm

Re: [SR-Users] TLS module not initialized in 4.3.3, worked in 4.1.5

2015-11-13 Thread Daniel-Constantin Mierla
Hello, it could be related to the fact that a lot of internal things are initialized when the first modparam is found in config, but I thought that change was done in 3.x. Can you put the tls module config part being the first? The other modules don't need to be initialized before, actually tls

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
Thanks for your reply! But the problem is - I need to provide to API user's login and password. Kamailio doesn't know them. So my idea was to transmit to API the salt and encrypted password. Would that work? I see it that way 1. User sends register request. 2. Kamailio sends to API salt and

Re: [SR-Users] Flaky & unstable RTP connections

2015-11-13 Thread Infinicalls Infinicalls
Hi, I have started RTP with # ./rtpproxy -F -l localhost -s udp:*:7890 and when I issue #netstat -pln | grep rtpp I get, udp0 0 0.0.0.0:78900.0.0.0:* 8759/rtpproxy I am using another similar instance of RTP also. Still my connection seems to be flaky. This

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
simple send_reply("200", "OK");, sorry 2015-11-13 16:02 GMT+02:00 Alexandru Covalschi <568...@gmail.com>: > Thanks for your reply! But the problem is - I need to provide to API > user's login and password. Kamailio doesn't know them. So my idea was to > transmit to API the salt and encrypted

[SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
Hello! My problem is I need to do users authentication through API. So I need to replace if (!www_authenticate("$td", "subscriber")) { www_challenge("$td", "1"); } With if (!my_auth_script()) { www_challenge("$td", "1"); } The main problem is - how can I grab or compare users

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Alexandru Covalschi
UPD: If upper method is possible - I assume I can check if message has Auth header using if (has_credentials("myrealm")) { ... } Can you please specify how to grab it? 2015-11-13 15:08 GMT+02:00 Alexandru Covalschi <568...@gmail.com>: > Hello! > My problem is I need to do users

Re: [SR-Users] TLS module not initialized in 4.3.3, worked in 4.1.5

2015-11-13 Thread Sebastian Damm
Hi Daniel, yes, we see this message. Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: DEBUG: [sr_module.c:959]: init_mod(): tls Nov 13 11:44:42 lasola /usr/sbin/kamailio[16113]: WARNING: tls [tls_mod.c:287]: mod_init(): tls support is disabled (set enable_tls=1 in the config to enable it) Nov

Re: [SR-Users] Grab users password from WWW-Auth header

2015-11-13 Thread Sebastian Damm
Hello, if your script can return the password for the user to Kamailio, you could use the pv_*_authenticate functions. You can pass the password to check against to these functions in a pseudo variable. http://www.kamailio.net/docs/modules/4.3.x/modules/auth.html#auth.f.pv_www_authenticate Best