Help in Radius....

2006-10-04 Thread raviprakash sunkara
Hello. Uses...Good Morning...So long back I mailing to Users List.I ownning two openser System are Linux...   one is Fedora core 5.   other is RedHat AS 4.I  don't have  any problem in Fedora core  5 while installing the 
FreeRadius1.1.3  , it working fine and clearWhen I using RHEL AS 4 with mysql database + FreeRadius.Problem... is below rlm_sql (sql): Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld.
radiusd.conf[14]: sql: Module instantiation failed.-- Thanks and RegardsRavi Prakash Sunkara		[EMAIL PROTECTED]
 	M:+91 9985077535O:+91 40 23114549F:+91 40 40208727 		[EMAIL PROTECTED]www.hyperion-tech.com

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

How to catch the Mc address of the user into radius databases,

2006-08-31 Thread raviprakash sunkara
Hi Users,please for give in my english, Can  anyone  let  me, How to catch the  Mac Address of the user and their  public ip , that  need to insert in radius database , which we  having the radamin adnd dialadmin fro radius adminstrator tools,
 please help me 
-- Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com+91-9985077535
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

doubt in Radius and openser fro accounting...

2006-08-19 Thread raviprakash sunkara
Hi Users, For  Me, in  Openser  + radius  Authorize and Acthentication is  Succeed Very Good and Nice, But  When some to  Account, I'm little  sucking  here When Uac1 dials to Uac2 , 
radacctID  |    AcctSessionID   |   AcctuniqueID  | UserName |  AcctStartTime  | ActStopTime | calledID  | callingID |--
1   12h34yy   2334juuw45  Uac1    13:10:00   00:00:00 
 Uac2 uac12   12h34yy   ko34ji899  Uac2    13:11:11    13:11:11 Uac1 Uac2---
In accountting with openser + radius in should insert  only one insert for every  call made .But I think  it insert only two records only.  and AcctuniqueD should me same for each call  makes then only the  AcctStopTime will properly .
in openser... loose  record---if(method=="BYE" || method=="CANCEL") {  acc_rad_request("Stop"); unforce_rtp_proxy();
} record route sectionif( method=="INVITE"  || method=="ACK"){   acc_rad_request("Start");   forcr_rtp_proxy();
}plz help me in that .. sorry in my english ... -- Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion TechnologyKondapur, Hi-tech city,Hyderabad.
www.hyperion-tech.com+91-9985077535
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

How to configure the Radius in SSH (22)

2006-08-17 Thread raviprakash sunkara
Hi Users,  I  Want to create the radius (AAA) for remote accessing By using the  putty in "SSH"Can anyone Give the clues to me on That or any  url or documentation ..
plz for me in English...  ..  -- Thanks and Regards with cheersSunkara Ravi Prakash (LAMP programming)Hyperion TechnologyKondapur, Hi-tech city,Hyderabad.
www.hyperion-tech.com+91-9985077535
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius-Users Digest, Vol 16, Issue 66

2006-08-17 Thread raviprakash sunkara
Hi peter , Thanks for replying ...The NAS value is MY  radius server  ip...   Really i don't Know that... What  NAS  value should take .ByweOn 8/17/06, 
[EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:Send Freeradius-Users mailing list submissions to
freeradius-users@lists.freeradius.orgTo subscribe or unsubscribe via the World Wide Web, visithttp://lists.freeradius.org/mailman/listinfo/freeradius-users
or, via email, send a message with subject or body 'help' to[EMAIL PROTECTED]You can reach the person managing the list at
[EMAIL PROTECTED]When replying, please edit your Subject line so it is more specificthan "Re: Contents of Freeradius-Users digest..."
Today's Topics:   1. Unknown user or bad password while using Free RADIUS PAM  (Shteinberg-hirik, Jenny (Jenny))   2. Re: Oracle is not supported by radsqlrelay? (Nicolas Baradakis)   3. AcctSessionTime is inserting Null (raviprakash sunkara)
   4. Help! (Shankar Ganesh C)   5. Re: AcctSessionTime is inserting Null (Peter Nixon)--Message: 1Date: Thu, 17 Aug 2006 14:16:04 +0300
From: "Shteinberg-hirik, Jenny \(Jenny\)" <[EMAIL PROTECTED]>Subject: Unknown user or bad password while using Free RADIUS PAMTo: <
freeradius-users@lists.freeradius.org>Message-ID:<[EMAIL PROTECTED]
>Content-Type: text/plain; charset="us-ascii"Hi,We use Free Radius PAM_RADIUS_AUTH (version 1.3.16) intergrated intoLinux from WindRiver distribution based on kernel 2.6.10
As Radius Server we use Internet Authentication Server from Win2000Server.We can not receive authentication for user defined on the Radius Server.Here the Warning that is logged on the Radius Server for this event:
User slb was denied access. Fully-Qualified-User-Name = KERNEL\slb NAS-IP-Address = 127.0.0.1 NAS-Identifier = check Called-Station-Identifier = 
 Calling-Station-Identifier = 135.64.103.49 Client-Friendly-Name = 149.49.76.121 Client-IP-Address = 149.49.76.121
 NAS-Port-Type = Virtual NAS-Port = 16015 Policy-Name =  Authentication-Type = PAP EAP-Type =  Reason-Code = 16 Reason = There was an authentication failure because of an unknown user
name or a bad password.Using the same PAM_RADIUS_AUTH installed on VMware Player (version1.0.1)  enables us receive authentication for the same user. Here theInformation that is loggedon the Radius Server for this event:
User slb was granted access. Fully-Qualified-User-Name = KERNEL\slb NAS-IP-Address = 127.0.0.1 NAS-Identifier = check Client-Friendly-Name = 
135.64.102.130 Client-IP-Address = 135.64.102.130 NAS-Port-Type = Virtual NAS-Port = 24935 Policy-Name = GAdmin Authentication-Type = PAP EAP-Type = 
Both Radius clients (  for Linux and for VmWare) are configuredabsolutely identical on the Radius Server. The same user, same passwordand the same shared secret are used.What can be the problem?
Thank you,Jenny-- next part --An HTML attachment was scrubbed...URL: 
https://list.xs4all.nl/pipermail/freeradius-users/attachments/20060817/c9230d5e/attachment-0001.html--Message: 2Date: Thu, 17 Aug 2006 14:26:32 +0200From: Nicolas Baradakis <
[EMAIL PROTECTED]>Subject: Re: Oracle is not supported by radsqlrelay?To: FreeRadius users mailing list<
freeradius-users@lists.freeradius.org>Message-ID: <[EMAIL PROTECTED]>Content-Type: text/plain; charset=us-ascii
Alexander Serkin wrote:> Nicolas Baradakis wrote:>> > Please create a patch with "diff -u radsqlrelay.orig radsqlrelay"> > and post it to the list. I'll add it in version 
1.1.3.>> Here it is:>> --- radsqlrelay.orig2006-08-16 15:40:58.220277000 +0400> +++ radsqlrelay 2006-08-16 17:53:20.151452000 +0400> @@ -156,6 +156,8 @@>  $data_source = "DBI:mysql:database=$args{b};host=$args{h}";
>  } elsif (lc($args{d}) eq 'pg') {>  $data_source = "DBI:Pg:dbname=$args{b};host=$args{h}";> +} elsif (lc($args{d}) eq 'oracle') {> +$data_source = "DBI:Oracle:$args{b}";
>  } else {>  print STDERR "error: SQL driver not supported yet: $args{d}\n";>  exit 1;Added, thanks.> whith "-b db.domain.tld" i give the database description stored in
> $TNS_ADMIN/tnsnames.ora:>> db.domain.tld =>   (DESCRIPTION => (ADDRESS_LIST =>   (ADDRESS = (PROTOCOL = TCP)(HOST = db.domain.tld)(PORT = 1521))> )> (CONNECT_DATA =
>   (SERVICE_NAME = )> )>   )I've added this to the radsqlrelay(8) manpage, too.--Nicolas Baradakis--Message: 3
Date: Thu, 17 Aug 2006 18:30:34 +0530From: "raviprakash sunkara" <[EMAIL PROTECTED]>Subject: AcctSessionTime is inserting Null
To: freeradius-users@lists.freeradius.orgMessage-ID:<[EMAIL PRO

AcctSessionTime is inserting Null

2006-08-17 Thread raviprakash sunkara
Hi  Users,
So long back I'm mailing ...
Now install  Radius Server and client Freshly
Actual My problem is THat ...
In Accounting Part in .   When  I radius server recieve the  Acc-status-type is Stop ,  AcctSessionTime is inserting NULL  
i.e " 0 "..
That is my problem  
Plz  give hint to resolve it
Cheers & Bye
--Thanks and Regards with cheersSunkara Ravi Prakash Hyperion TechnologyKondapur, Hi-tech city,Hyderabad.www.hyperion-tech.com+91-9985077535
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Need help on PHP and Radius

2006-08-06 Thread raviprakash sunkara
Hi Guys...I need to integrate php and raadius...Actually i want to  create the  own  user interface on OPENSER.That on PHP 5 is having the radis integration .So i need it...Now  ,  I'm using the  Radius in openser for "
 AAA " purpose only...Now I need to develop  web interface for my application with radius...plz help me on this.-- Thanks and Regards with cheers
Sunkara Ravi Prakash (Voip Developer)Hyperion TechnologyKondapur, Hi-tech city,Hyderabad.www.hyperion-tech.com+91-9985077535
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

PHP + radius

2006-08-05 Thread raviprakash sunkara
Hi GuysHappy friend ship day... !I'm  Working on  Linux. box..I want  How to integrate the PHP with RADIUSCcan any one tell the Doccumetation Help me !
-- Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion TechnologyKondapur, Hi-tech city,Hyderabad.www.hyperion-tech.com
+91-9985077535
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

called failed 408 Request timeout

2006-06-13 Thread raviprakash sunkara

hi users,

I need to say just "hello to all"

I'm working on openser + radius..

Actually in LAN network its working fine...

When I deploy  the openser + radius in My main server  which is in  some  other place .

its successfully login and When I trying to make call its show the log
messages as " Called Failed :- 408  Request TimeOut "

=

modparam('registrar","nat_flag',6)
modparam("nathelper","natping_interval",30)
modparam("nathelper","ping_nated_only",1)
modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")
#33
modparam("rr", "enable_full_lr", 1)
###
route    {
    # initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
        if (!mf_process_maxfwd_header("13")) {
            sl_send_reply("483","Too Many Hops!");
            exit;
        };
        if ( msg:len > max_len ) {
        sl_send_reply("513", "Message too big");
        exit;
        };

# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
  if(!method== "REGISTER")
{
    record_route();
};
# loose-route processing
    if (loose_route()) {
        #   add   now 0n  9  setflag(1);
        acc_rad_request("200 ok ");
        t_relay();
        exit;
    };


# account completed transactions via syslog
   
   
    if(uri==myself)
    {
        if(method=="REGISTER")
            {
                if(!radius_www_authorize("192.168.2.55"))
                    {
           
           
www_challenge("192.168.2.55","0");
                        exit;
                    };
                    #consume_credentials();
                save("location");
                if (m_dump())
                    {
           
            log("MSILO:
offline messages dumped - if they were\n");
                    }else{
           
            log("MSILO: no
offline messages dumped\n");
                    };

                exit;
            };
        if(method=="INVITE"|| method=="ACK")
            {    record_route();
                acc_rad_request("200");
    if(isflagset(6)) {
                force_rtp_proxy("e");
    };
                #setflag(1);
                t_on_reply("1");
            };
    /*    if (method=="BYE") {
            record_route();
            };
*/

        if (method=="MESSAGE") {
            log(1, "MESSAGE\n");
            setflag(1); /* set for accounting (the same value as in log_flag!) */
            };
 fix_nat_contact();
        if (method=="BYE" || method=="CANCEL") {
            #log (1, "BYE or CANCEL\n");
            #setflag(1);
            acc_rad_request("200");
            #acc_rad_request("Stop");
            unforce_rtp_proxy("e");
            #setflag(1);
            
        };
        if(!lookup("location"))
            {
                sl_send_reply("404","Woo. NOt found");
            };
        };
            if(!t_relay())
            {
                sl_reply_error();
            };
        lookup("aliases");
        #setflag(2);
        exit;
    }
    onreply_route[1]
        {
            if( isflagset96) && status=~"[0-9][0-9][0-9]")
            {    fix_nat_contact();
                force_rtp_proxy("e");
            };
        }




=--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technology
www.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

rlm_sql is not updating the record...

2006-06-09 Thread raviprakash sunkara

Hi 

I'm working openser + mysql + Freeradius

when i'm making a call for accounting,  first it say  "
Acct-Status-Type = Failed  " and  then its " Acct-Status-Type
= start " 

After that when the User hang up the call , it didn't update the Acct Stop time and inserting the t2 records ...

And also  what  means  this..

rlm_sql (sql): Reserving sql socket id: 2

radius_xlat:  'stop packet with zero session length. [user '[EMAIL PROTECTED]', nas '192.168.2.55']'

rlm_sql (sql) in sql_accounting: stop packet with zero session length. [user '[EMAIL PROTECTED]', nas '192.168.2.55']

rlm_sql (sql): Released sql socket id: 2


This query is not updating  ---> " 'UPDATE radacct SET AcctStopTime = '2006-06-09 19:57:27',
AcctSessionTime = '', AcctInputOctets = '', AcctOutputOctets = '',
AcctTerminateCause = '', AcctStopDelay = '0', ConnectInfo_stop = ''
WHERE AcctSessionId =
'[EMAIL PROTECTED]' AND  NASIPAddress =
'192.168.2.55''    " why ?


and this query is  inserting ->  " INSERT into radacct (AcctSessionId, AcctUniqueId, UserName, Realm,
NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctStopTime,
AcctSessionTime, AcctAuthentic, ConnectInfo_start, ConnectInfo_stop,
AcctInputOctets, AcctOutputOctets, CalledStationId, CallingStationId,
AcctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress,
AcctStartDelay, AcctStopDelay)
values('[EMAIL PROTECTED]',
'63170499b83f412d', '[EMAIL PROTECTED]', '', '192.168.2.55', '5060', '',
DATE_SUB('2006-06-09 19:57:27', INTERVAL (0 + 0) SECOND), '2006-06-09
19:57:27', '', '', '', '', '', '', 'sip:[EMAIL PROTECTED]',
'sip:[EMAIL PROTECTED]', '', 'Sip-Session', '', '', '0', '0')'  "

Acct-Session-time is  zero showing  ? why ?


Can U see the below one  I need to change . please guys help me ,
this  very important to complete the task  please   .

rad_recv: Accounting-Request packet from host 192.168.2.55:33879, id=219, length=233
    Acct-Status-Type = Stop
    Service-Type = Sip-Session
    Sip-Response-Code = 200
    Sip-Method = BYE
    User-Name = "[EMAIL PROTECTED]"
    Calling-Station-Id = "sip:[EMAIL PROTECTED]"
    Called-Station-Id = "sip:[EMAIL PROTECTED]"
    Sip-Translated-Request-URI = "sip:[EMAIL PROTECTED]:5060"
    Acct-Session-Id = "[EMAIL PROTECTED]"
    Sip-To-Tag = "2044753626"
    Sip-From-Tag = "4110988557"
    Sip-Cseq = "57538"
    NAS-Port = 5060
    Acct-Delay-Time = 0
    NAS-IP-Address = 192.168.2.55
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 2
  modcall[preacct]: module "preprocess" returns noop for request 2
rlm_acct_unique: Hashing 'NAS-Port = 5060,Client-IP-Address =
192.168.2.55,NAS-IP-Address = 192.168.2.55,Acct-Session-Id =
"[EMAIL PROTECTED]",User-Name =
"[EMAIL PROTECTED]"'
rlm_acct_unique: Acct-Unique-Session-ID = "63170499b83f412d".
  modcall[preacct]: module "acct_unique" returns ok for request 2
    rlm_realm: Looking up realm "192.168.2.55" for User-Name = "[EMAIL PROTECTED]"
    rlm_realm: No such realm "192.168.2.55"
  modcall[preacct]: module "suffix" returns noop for request 2
  modcall[preacct]: module "files" returns noop for request 2
modcall: leaving group preacct (returns ok) for request 2
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 2
radius_xlat:  '/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060609'
rlm_detail:
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060609
  modcall[accounting]: module "detail" returns ok for request 2
radius_xlat:  '/usr/local/var/log/radius/radutmp'
radius_xlat:  '[EMAIL PROTECTED]'
  modcall[accounting]: module "radutmp" returns ok for request 2
radius_xlat:  '[EMAIL PROTECTED]'
rlm_sql (sql): sql_set_user escaped user --> '[EMAIL PROTECTED]'
radius_xlat:  'UPDATE radacct SET AcctStopTime = '2006-06-09
19:57:27', AcctSessionTime = '', AcctInputOctets = '', AcctOutputOctets
= '', AcctTerminateCause = '', AcctStopDelay = '0', ConnectInfo_stop =
'' WHERE AcctSessionId =
'[EMAIL PROTECTED]' AND 
NASIPAddress = '192.168.2.55''
rlm_sql (sql): Reserving sql socket id: 2
radius_xlat:  'stop packet with zero session length. [user '[EMAIL PROTECTED]', nas '192.168.2.55']'
rlm_sql (sql) in sql_accounting: stop packet with zero session length. [user '[EMAIL PROTECTED]', nas '192.168.2.55']
rlm_sql (sql): Released sql socket id: 2
radius_xlat:  'INSERT into radacct (AcctSessionId, AcctUniqueId,
UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime,
AcctStopTime, AcctSessionTime, AcctAuthentic, ConnectInfo_start,
ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, CalledStationId,
CallingStationId, AcctTerminateCause, ServiceType, FramedProtocol,
FramedIPAddress, AcctStartDelay, AcctStopDelay)
values('[EMAIL PROTECTED]',
'63170499b83f412d', '[EMAIL PROTECTED]', '', '192.168.2.55', '5060', '',
DATE_SU

insering the 3 record in radius db my using openser+radius+mysql

2006-06-08 Thread raviprakash sunkara


Hi   

I'm using openser and freeradius server . Accounting part in openser and radius by using the mysql.


help me ...

Below one   is  radius  server  in debug mode.

in that is didn't understand  

what is " unsupported acct-status-type =15 " and " send packet with zero session length " 


please help me.

rad_recv: Accounting-Request packet from host 192.168.2.55:35094,
id=151, length=220
       Acct-Status-Type = Failed
       Service-Type = Sip-Session
       Sip-Response-Code = 0
       Sip-Method = INVITE
       User-Name = "
[EMAIL PROTECTED]"
       Calling-Station-Id = "sip:
[EMAIL PROTECTED]"
       Called-Station-Id = "sip:
[EMAIL PROTECTED]"
       Sip-Translated-Request-URI = "sip:
[EMAIL PROTECTED]"
       Acct-Session-Id =
"
[EMAIL PROTECTED]"
       Sip-To-Tag = "n/a"
       Sip-From-Tag = "757680932"
       Sip-Cseq = "18235"
       NAS-Port = 5060
       Acct-Delay-Time = 0
       NAS-IP-Address = 192.168.2.55
 Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 2
 modcall[preacct]: module "preprocess" returns noop for request 2
   rlm_realm: Looking up realm "192.168.2.55" for User-Name =
"[EMAIL PROTECTED]
"
   rlm_realm: No such realm "192.168.2.55"
 modcall[preacct]: module "suffix" returns noop for request 2
modcall: leaving group preacct (returns noop) for request 2
 Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 2
rlm_acct_unique: Hashing 'NAS-Port = 5060,Client-IP-Address =
192.168.2.55,NAS-IP-Address = 192.168.2.55,Acct-Session-Id =
"
[EMAIL PROTECTED]",User-Name =
"[EMAIL PROTECTED]
"'
rlm_acct_unique: Acct-Unique-Session-ID = "5488f64bd8d99c57".
 modcall[accounting]: module "acct_unique" returns ok for request 2
radius_xlat: 
'/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060606'
rlm_detail:
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060606
 modcall[accounting]: module "detail" returns ok for request 2
 modcall[accounting]: module "unix" returns noop for request 2
radius_xlat:  '/usr/local/var/log/radius/radutmp'
rlm_radutmp: NAS radiusdtest port 5060 unknown packet type 15)
 modcall[accounting]: module "radutmp" returns noop for request 2
rlm_sql (sql): Unsupported Acct-Status-Type = 15
 modcall[accounting]: module "sql" returns noop for request 2
modcall: leaving group accounting (returns ok) for request 2
Sending Accounting-Response of id 151 to 192.168.2.55 port 35094
Finished request 2
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 2 ID 151 with timestamp 44857cc6
Nothing to do.  Sleeping until we see a request.
rad_recv: Accounting-Request packet from host 192.168.2.55:35096,
id=152, length=232
       Acct-Status-Type = Start
       Service-Type = Sip-Session
       Sip-Response-Code = 200
       Sip-Method = ACK
       User-Name = "
[EMAIL PROTECTED]"
       Calling-Station-Id = "sip:
[EMAIL PROTECTED]"
       Called-Station-Id = "sip:
[EMAIL PROTECTED]"
       Sip-Translated-Request-URI = "sip:
[EMAIL PROTECTED]:5060"
       Acct-Session-Id =
"
[EMAIL PROTECTED]"
       Sip-To-Tag = "2710541959"
       Sip-From-Tag = "757680932"
       Sip-Cseq = "18235"
       NAS-Port = 5060
       Acct-Delay-Time = 0
       NAS-IP-Address = 192.168.2.55
 Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 3
 modcall[preacct]: module "preprocess" returns noop for request 3
   rlm_realm: Looking up realm "192.168.2.55" for User-Name =
"[EMAIL PROTECTED]
"
   rlm_realm: No such realm "192.168.2.55"
 modcall[preacct]: module "suffix" returns noop for request 3
modcall: leaving group preacct (returns noop) for request 3
 Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 3
rlm_acct_unique: Hashing 'NAS-Port = 5060,Client-IP-Address =
192.168.2.55,NAS-IP-Address = 192.168.2.55,Acct-Session-Id =
"
[EMAIL PROTECTED]",User-Name =
"[EMAIL PROTECTED]
"'
rlm_acct_unique: Acct-Unique-Session-ID = "5488f64bd8d99c57".
 modcall[accounting]: module "acct_unique" returns ok for request 3
radius_xlat: 
'/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060606'
rlm_detail:
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060606
 modcall[accounting]: module "detail" returns ok for request 3
 modcall[accounting]: module "unix" returns ok for request 3
radius_xlat:  '/usr/local/var/log/radius/radutmp'
radius_xlat:  '[EMAIL PROTECTED]
'
 modcall[accounting]: module "radutmp" returns ok for request 3
radius_xlat:  '[EMAIL PROTECTED]
'
rlm_sql (sql): sql_set_user escaped user --> '
[EMAIL PROTECTED]'
radius_xlat:  'INSERT into radacct (AcctSessionId, AcctUniqueId,
UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTim

Accounting Stop time is not inserting in radacct tables in Radius by using openser

2006-06-05 Thread raviprakash sunkara
Hi 

please this Issuse


... Radius server debug mode...

rad_recv: Accounting-Request packet from host 192.168.2.55:32807, id=58,
length=221
       Acct-Status-Type = Failed
       Service-Type = IAPP-AP-Check
       Sip-Response-Code = 0
       Sip-Method = INVITE
       User-Name = "
[EMAIL PROTECTED]"
       Calling-Station-Id = "sip:
[EMAIL PROTECTED]"
       Called-Station-Id = "sip:
[EMAIL PROTECTED]"
       Sip-Translated-Request-URI = "sip:
[EMAIL PROTECTED]"
       Acct-Session-Id =
"
[EMAIL PROTECTED]"
       Sip-To-Tag = "n/a"
       Sip-From-Tag = "3693743074"
       Sip-Cseq = "34571"
       NAS-Port = 5060
       Acct-Delay-Time = 0
       NAS-IP-Address = 192.168.2.55
 Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 11
 modcall[preacct]: module "preprocess" returns noop for request 11
   rlm_realm: Looking up realm "192.168.2.55" for User-Name =
"[EMAIL PROTECTED]
"
   rlm_realm: No such realm "192.168.2.55"
 modcall[preacct]: module "suffix" returns noop for request 11
modcall: leaving group preacct (returns noop) for request 11
 Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 11
rlm_acct_unique: Hashing 'NAS-Port = 5060,Client-IP-Address =
192.168.2.55,NAS-IP-Address = 192.168.2.55,Acct-Session-Id =
"
[EMAIL PROTECTED]",User-Name =
"[EMAIL PROTECTED]
"'
rlm_acct_unique: Acct-Unique-Session-ID = "ef0513de749b7034".
 modcall[accounting]: module "acct_unique" returns ok for request 11
radius_xlat: 
'/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060605'
rlm_detail:
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/var/log/radius/radacct/192.168.2.55/detail-20060605
rlm_detail: Failed to create directory
/usr/local/var/log/radius/radacct/192.168.2.55: Permission denied
 modcall[accounting]: module "detail" returns fail for request 11
modcall: leaving group accounting (returns fail) for request 11
Finished request 11
Going to the next request

Below one is openser.cfg file

please help me



#*
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "calculate_ha1", yes)
modparam("usrloc|acc|auth_db|group|msilo", "db_url",
"mysql://openser:[EMAIL PROTECTED]/openser")
33
modparam("acc","log_level",1)
modparam("acc","log_flag",1)
modparam("acc","log_missed_flag",2)
modparam("acc", "log_fmt", "cdfimorstup")
modparam("acc", "failed_transaction_flag",3)
modparam("acc", "report_cancels", 1)
modparam("acc","report_ack",0)
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc","radius_flag",1)
modparam("acc","radius_missed_flag",2)
modparam("acc","service_type",16)
modparam("acc","radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
##33
modparam("nathelper","natping_interval",30)
modparam("nathelper","ping_nated_only",1)
modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")
#33
modparam("rr", "enable_full_lr", 1)
###
route    {
   # initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
       if (!mf_process_maxfwd_header("13")) {
           sl_send_reply("483","Too Many
Hops!");
           exit;
       };
       if ( msg:len > max_len ) {
       sl_send_reply("513", "Message too big");
       exit;
       };

# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
   record_route();
# loose-route processing
   if (loose_route()) {
       t_relay();
       setflag(1);
       exit;
   };


# account completed transactions via syslog
   setflag(1);
   setflag(2);
   if(uri==myself)
   {
       if(method=="REGISTER")
           {
               if(!radius_www_authorize("192.168.2.55"))
                   {
                       www_challenge("192.168.2.55","1");
                       exit;
                   };
               save("location");
               if (m_dump())
                   {
                       log("MSILO: offline messages dumped - if they
were\n");
                   }else{
                       log("MSILO: no offline messages dumped\n");
                   };

               exit;
           };
       if(method=="INVITE"|| method=="ACK")
           {
               acc_rad_request("Start");
               record_route();
               force_rtp_proxy();
               #setflag(1);
               t_on_reply("1");
           };
       if (method=="BYE") {
           record_route();
           };


       if (method=="MESSAGE") {
           log(1, "MESSAGE\n");
           setflag(1); /* set for accounting (the same value as in
log_flag!) */
           };

    

How to Work on Accounting in Openser + radius

2006-05-30 Thread raviprakash sunkara
Hi Everybody,
I need help from you users, That How  can we perform the accouting
in Openser and Radius, That I want  database should in radius +
mysql with openser .

In openser if  I add " save("acc") its give error as  " reinstall  ser_mysql.sh " 
how can we do that...
 And  I follow this "http://openser.org/docs/openser-radius-1.0.x.html " for integrating openser + radius 
But I wnat really  how cam we integrate the " opensaer + radius + mysql " with hints or sample file 





--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

please help me...........................................!!!!!!!!!!!!!!!!!!!!!!!!!!!11

2006-05-24 Thread raviprakash sunkara
Hi Everybody..

Good morning.

please help me i?

Did anyone tell  where  " SIP training "   held  in India or   any  other place 

please excuse me for asking this , 
Bye--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Log messages

2006-05-23 Thread raviprakash sunkara
Hi

Good Morning.

I updated the openser server in US server.

When I making a calls from here(India). Its gives the log messages,
which are mentioned below and its say " logining Time out ! contact
Network Admin ". Its means its not register and server is not
responded.
__
© 2004 Xten Networks, Inc. All rights reserved.

X-Lite release 1105d build stamp 9

License key: 6FCCC0CC7D9B0017E322142CCDFC1071
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5060
Attempting SIP protocol listen on: 192.168.2.55:5061
Established SIP protocol listen on: 192.168.2.55:5061
NAT firewall type discovered is forced.
SIP: 192.168.2.55:5061
RTP: 192.168.2.55:8000
NAT: 61.17.248.68

PROXY#0: 24.98.157.209:5060             (inbound proxy server)

OUTBOUND-PROXY#0: 24.98.157.209:5060     (outbound proxy server)


SEND TIME: 1619765420
SEND >> 24.98.157.209:5060
REGISTER sip:24.98.157.209 SIP/2.0
Via: SIP/2.0/UDP
192.168.2.55:5061;rport;branch=z9hG4bK7A9AF049E03A84E1671601A7F2B7900C
From: sam [EMAIL PROTECTED]
>;tag=1069014297
To: sam [EMAIL PROTECTED]
>
Contact: "sam" 
[EMAIL PROTECTED]:5061>
Call-ID: 
[EMAIL PROTECTED]
CSeq: 27109 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105d
Content-Length: 0

SEND TIME: 1619766930
SEND >> 24.98.157.209:5060
REGISTER sip:24.98.157.209 SIP/2.0
Via: SIP/2.0/UDP
192.168.2.55:5061;rport;branch=z9hG4bK7A9AF049E03A84E1671601A7F2B7900C
From: sam [EMAIL PROTECTED]
>;tag=1069014297
To: sam [EMAIL PROTECTED]
>
Contact: "sam" 
[EMAIL PROTECTED]:5061>
Call-ID: 
[EMAIL PROTECTED]
CSeq: 27109 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105d
Content-Length: 0

SEND TIME: 1619769953
SEND >> 24.98.157.209:5060
REGISTER sip:24.98.157.209 SIP/2.0
Via: SIP/2.0/UDP
192.168.2.55:5061;rport;branch=z9hG4bK7A9AF049E03A84E1671601A7F2B7900C
From: sam [EMAIL PROTECTED]
>;tag=1069014297
To: sam [EMAIL PROTECTED]
>
Contact: "sam" 
[EMAIL PROTECTED]:5061>
Call-ID: 
[EMAIL PROTECTED]
CSeq: 27109 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105d
Content-Length: 0
SEND TIME: 1619776003
SEND >> 24.98.157.209:5060
REGISTER sip:24.98.157.209 SIP/2.0
Via: SIP/2.0/UDP
192.168.2.55:5061;rport;branch=z9hG4bK7A9AF049E03A84E1671601A7F2B7900C
From: sam [EMAIL PROTECTED]
>;tag=1069014297
To: sam [EMAIL PROTECTED]
>
Contact: "sam" 
[EMAIL PROTECTED]:5061>
Call-ID: 
[EMAIL PROTECTED]
CSeq: 27109 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105d
Content-Length: 0
__

 Here, in Local  Network  working fine with My openser server.

What is nat traversal, outbound proxy server , inbound proxy server , is  it  need in openser and  softphone ...

Please help me.--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

How make the conference in softphones

2006-05-18 Thread raviprakash sunkara
Hello EveryBody ,
 
I need help from U. please help me in How make a conference in softphones.
On Which modules have work.
 
I recently install tested the softphones . that a calls are made .
 
And  When  I looked  into Location table . in that table records are insert. immediately when the system restart or when softphone is discarded  the  " location table " records are disable.
 
 
Please  help me in that.. And please Excuse me, In my English .
Bye
-- Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com 
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Regarding on " radtest "

2006-05-10 Thread raviprakash sunkara
Hi Everybody

I'm working on openser + freeradius. Recently Installed both . 
I had a issue below onw, actual what this means...

By Typing '" radtest 444 444 192.168.2.55 1812 radiustest " its shows below
one.

Sending Access-Request of id 236 to 192.168.2.55 port 1812
        User-Name = "444"
        User-Password = "444"
        NAS-IP-Address = 255.255.255.255
Re-sending Access-Request of id 236 to 192.168.2.55 port 1812
        User-Name = "444"
        User-Password = "444"
        NAS-IP-Address = 255.255.255.255
--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Regarding on radiusd.conf file

2006-05-10 Thread raviprakash sunkara
Hello Everybody,

I'm working  on openser, recently I install freeradius for "AAA".

By seeing the Documentation from " http://openser.org/docs/openser-radius-1.0.x.html "  
I followed that.

While testing the  radius server by ' radiusd -X "  its shows

radiusd.conf[1840] unknown Auth-type " Digest" in authenticate section ---> what its means.

And also 

By Typing '" radtest 444 444 192.168.2.55 1812 radiustest " its shows below one.

Sending Access-Request of id 236 to 192.168.2.55 port 1812
    User-Name = "444"
    User-Password = "444"
    NAS-IP-Address = 255.255.255.255
Re-sending Access-Request of id 236 to 192.168.2.55 port 1812
    User-Name = "444"
    User-Password = "444"
    NAS-IP-Address = 255.255.255.255

What its means one . Is it error ?

I run this in my box . 
where in my box installed openser , freeradius and radiusclinet-ng..

Please help me and main thing is, Is any mistakes in my english please excuse me..--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer) 
[EMAIL PROTECTED]Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Regarding on Auth-Type 'digest' in authenticate section

2006-05-10 Thread raviprakash sunkara
Hello Everybody,

I'm working on Openser currently . Now I integrated FreeRadius in openser.

I installed freeradius and radiusclient-ng in to box..

In client.conf file
- - - - - - - - - - - - - - - - -
client 192.168.2.55  {
 secret = radiustest
  shortname = hyperion.
 nastype =other.
}

users file
- - - - - - - - - - - - - - - - -
 test   Auth-Type :=Accept,
    Service-Type == " SIP-Caller-AVPs"
test    NAS-IP-Address == "192.168.2.55" , Auth-Type := Digest, Password == "test",
   Reply-Message == "Hello  777 user id testing the radius server in openser. bbye"
* * * * ** * * * * * * * * * * * * * * *  *
proxy.conf file
realm 192.168.2.55  { 
type = radius
authhost = 192.168.2.55
accthost = 192.168.2.55
secret  = radiustest
}


After this 

I tested the radius by using
"  radiusd -X " 
>>>       radiusd.conf[1840] unknown Auth-Type " Digest " in authenticate section.

 " radtest test test 192.168.2.55 1812 radiustest "
>>> Sending Access-Request of id 192 to 192.168.2.55 port 1812
 
User-Name = "test"
                  User-Password = "test"
                  NAS-IP-Address = 255.255.255.255
   
   Re-sending Access-Request of id 192 to 192.168.2.55 port
1812
                 User-Name = "test"
                 User-Password = "test"
   
NAS-IP-Address = 255.255.255.255
     
Re-sending Access-Request of id 192 to 192.168.2.55 port 1812
  User-Name = "test"
  User-Password = "test"
 
NAS-IP-Address = 255.255.255.255
Please help me in this Regard..  Its very very urgent

--  Thanks and Regards Sunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Help in Freeradius and openser

2006-05-09 Thread raviprakash sunkara
Hi to all,

I tried to insert the users for testing the server, but small error arrived.

That is .
 a)   radiusd.conf[1840] unknown Auth-Type "digest" in authenticate section.
 b)   radclient: Failed to send packet for ID 162: Unknown attribute "NAS-IP-Address"
 c)   radtest test test 192.168.2.55 1812 radiustest
Sending Access-Request of id 215 to 192.168.2.55 port 1812
    User-Name = "test"
    User-Password = "test"
    NAS-IP-Address = 255.255.255.255
Re-sending Access-Request of id 215 to 192.168.2.55 port 1812
    User-Name = "test"
    User-Password = "test"
    NAS-IP-Address = 255.255.255.255

Please help me in a,b and c issues. what are these issues. Please  help me--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technology
www.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Regarding on Freeradius in openser.

2006-05-08 Thread raviprakash sunkara
Hello  Everybody,


I'm new to openser and also to freeradius.

1)how to insert the users in freeradius server 

2) When I test with radiusd - X its show somes errors .
The errors are  mention below 
 /usr/local/etc/raddb/users[64]: Unexpected trailing comma in check item list for  entry test
Errors reading /usr/local/etc/raddb/users
radiusd.conf[1047]: files: Module instantiation failed.
radiusd.conf[1791] Unknown module "files".
radiusd.conf[1727] Failed to parse authorize section.

3) And also when tested the clients , by using   "radclient   -f  digest localhost  auth "
  .  It shows the following  error
radclient : no respones from server  ID 134

4) And also when  I tried with " radtest test test 
192.168.2.55 5060 hyperion" its shows me below one
Sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
Re-sending Access-Request of id 233 to 192.168.2.55 port 1812
    User-Name = "test"
radclient: no response from server for ID 233

5) when i also tried with  "
ps -aux | grep radiusd " it show a warning and errors
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
root 13093  0.0  0.1  4276 
696 pts/4    S+   16:41   0:00 grep
radiusd

Please help me in  5 issues which are mention above.



--  Thanks and Regards with cheersSunkara Ravi Prakash (Voip Developer)Hyperion Technologywww.hyperion-tech.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html