[SR-Users] Kamailio with Radius authentication

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 23 11:21:47 CEST 2015


Hello,

the cfgtrace is printed now in the config, but the radius auth function
is not executed.

Very likely because you have an if condition on myself:

if(uri == myself)
{
if (is_method("REGISTER"))
{   
        if (!radius_www_authorize("sipauthdev.frequentis.frq")) {

If the request uri of REGISTER is not local IP or local domain, then the
uri==myself is false.

Add alias aprameter with your domain:

alias=yourdomain.com

Cheers,
Daniel

On 22/09/15 15:59, Ciolpan Ionut-Marian wrote:
> The content of kamailio.cfg includes the following lines(still,
> cfgtrace doesn't appear in syslog):
> /*#!define WITH_DEBUG*/
> /*
> */
> /*#!ifdef WITH_DEBUG*/
> /*debug=3*/
> /*log_stderror=no*/
> /*#!else*/
> /*debug=2*/
> /*log_stderror=no*/
> /*#!endif*/
> /*
> */
> /*#!ifdef WITH_DEBUG*//*
> */
> /*loadmodule "debugger.so"*/
> /*/*#!endif*/
> */
> /*/*
> */*/
> /*/*#-----debugger params-----*/*/
> /*/*/*#!ifdef WITH_DEBUG*/
> */*/
> /*/*modparam("debugger", "cfgtrace", 1)*/*/
> /*/*/*/*#!endif*/*/
> */*/
> /*/*
> */*/
> It seems that cfgtrace appears only if I am running kamailio -E -ddd
> command followed by the registration process for a SIP user
>
> Thank you!
> Br,
>
>
> On Tuesday, September 22, 2015 3:34 PM, Daniel-Constantin Mierla
> <miconda at gmail.com> wrote:
>
>
> Hello,
>
> the log file doesn't have any message from cfgtrace.
>
> If you started from default kamailio.cfg, note that the debugger
> module is not loaded unless you define WITH_DEBUG. To understand, see
> some docs about defines at:
>
>   - https://www.kamailio.org/wiki/cookbooks/4.3.x/core#define
>
> Cheers,
> Daniel
>
> On 22/09/15 12:06, Ciolpan Ionut-Marian wrote:
>> Hello again,
>>
>> Thank you for your answer. As you could see in kamailio.cfg file,
>> debugger module its already loaded and cfgtrace param is set to 1.
>> Attached you can find the logs from syslog and from Phonerlite. Now
>> thats a little bit awkward for me, maybe this is a stupid question,
>> but why am I unable to see if the credentials are checked for this
>> user? from what I understand from phonerlite logs, the user is
>> registered based only on the realm - am I right? 
>> Am I doing right if I'm using radius_www_authorize function in
>> REGISTRAR route? 
>>
>> Please, have a look at the attached files, maybe you will understand
>> what I'm doing wrong there.
>>
>> My level of knowledges is beginner but unfortunately I am under
>> pressure to solve this as quickly as possible.
>>
>> Thank you for your time and thank you again for any help you can
>> provide !
>>
>> Best regards,
>>
>>
>>
>> p.s: At this point, if I am using radius_proxy_authorize in AUTH
>> route I'm receiveing an UNAUTHORIZED answer. 
>>
>>
>
> -- 
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com <http://www.asipto.com/>
> Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
>
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150923/9ab28a78/attachment.html>


More information about the sr-users mailing list