[Serusers] Ser + radius strange problems

Alex alexander_gav at yahoo.com
Wed Apr 6 17:31:35 CEST 2005


I have some problem with radius and mysql,  i don't see the ser authenticate users against radius.
 
i setup everything i hope correctly and i tried to run
radtest test 123 localhost "secret"
and it's working fine i see in the logs the access to database and verifying username with password against mysql database radius,working great.
 
The problem is that my ip phone sending register and i don't see anything inside logs for radius access and verification.
 
inside ser.cfg
----------------------------------

loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
loadmodule "/usr/local/lib/ser/modules/group_radius.so"

 
 if (method=="REGISTER") 
        {
                log(1, "REGISTER: Authenticating user\n");
                if (!radius_www_authorize(""))
                {
                        log(1, "REGISTER: challenging user\n");
                        www_challenge("", "0");
                        break;
                };
                #setflag(1);
                save("location");
                sl_send_reply("200","ok");
                break;
        };

 
Any help will be appreciated
 
 
U xxx.xxx.xxx.xxx:11180 ->xxx.xxx.xxx.xxx:5060
  REGISTER sip:xxx.xxx.xxx.xxx SIP/2.0..Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:10000;branch=z9hG4bKef6000bc36b8ba8c..From: "Test Alex" <s
  ip:1222 at xxx.xxx.xxx.xxx;user=phone>;tag=f68212efe4b736fc..To: <sip:1222 at xxx.xxx.xxx.xxx;user=phone>..Contact: <sip:
  1222..Call-ID" target=_blank>@xxx.xxx.xxx.xxx 10000;user=phone>..Call-ID: 96adcd230772d600 at 10.0.0.8..CSeq: 100 REGISTER..Expires: 3600..User-Agent: 
  Grandstream HT286 1.0.5.18..Max-Forwards: 70..Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE..Content-Length:
   0....                                                                                                                         
#
U xxx.xxx.xxx.xxx:5060 -> xxx.xxx.xxx.xxx:10000
  SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:10000;branch=z9hG4bKef6000bc36b8ba8c..From: "Test Alex" <sip:1222;tag=f68212efe4b736fc..To" target=_blank>@xxx.xxx.xxx.xxx;user=phone>;tag=f68212efe4b736fc..To: <sip:1222 at xxx.xxx.xxx.xxx;user=phone>;tag=b27e1a1d33761e85846fc98
  f5f3a7e58.0e22..Call-ID: 96adcd230772d600 at 10.0.0.8..CSeq: 100 REGISTER..WWW-Authenticate: Digest realm="xxx.xxx.xxx.xxx", nonce
  ="4253fab9da5dd9126389dc88bb264384bd1da6e9"..Server: Sip EXpress router (0.8.14 (i386/linux))..Content-Length: 0..Warning: 392 
  xxx.xxx.xxx.xxx:5060 "Noisy feedback tells:  pid=4233 req_src_ip=xxx.xxx.xxx.xxx req_src_port=11180 in_uri=sip:xxx.xxx.xxx.xxx ou
  t_uri=sip:xxx.xxx.xxx.xxx via_cnt==1"....    



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050406/10345923/attachment.htm>


More information about the sr-users mailing list