Oh, now i see!

And indeed I get that AVPair myself. As far as I can see, freeradius takes
the requests and checks for the values in the dictionary and puts them in
variables that then can be inserted into queries. I see in dictionary.cisco
a Cisco-AVPair attribute, but this could mean that the %{Cisco-AVPair}
variable gets overwritten by the last AVPair, so if you get more than 1, you
can only log the last one. This is a question you must ask the developers.

There is a way I have often employed in order to get data into databases:
parse the (radius detail.)log with a PHP script (or Perl, whichever you
want) and insert data into a database. You can use the same database as
radius and only update custom tables with the data you get.

The third way would be to actually program rlm_preprocess.c from the
freeradius sources or beg the developers to do it :) to store Cisco AVPairs
differently. On the other hand I may be wrong and there is a simple way to
do what you want, but since I am the only one answering to your question,
you have to settle with me :)

----- Original Message ----- 
From: "Kiran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 11:16 AM
Subject: Re: h323-incoming-conf-id


> Well, the problem is not with 'h323-conf-id' but with
> 'h323-incoming-conf-id'. I am getting 'h323-conf-id'
> as a stripped value and I am able to log it into the
> database. But I want to use 'h323-incoming-conf-id'
> which is coming as Cisco-AVpair. In fact there are
> some other variables also which come as Cisco-AVpair.
>
> For Example:Cisco-AVPair = "subscriber=RegularLine"
>
> If I want to log this information, how do I do this ?
>
>  --- Costin Manda <[EMAIL PROTECTED]> wrote: > The
> actual problem is that I don't understand what
> > you want exactly. From
> > what I gather, you want to log in the database the
> > stripped value "C4E45877
> > 818F11D8 86419EDB 53428773" and not
> > "h323-conf-id=C4E45877 818F11D8 86419EDB
> > 53428773". Is that correct?
> >
> > In my postygreSQL + freeRadius setup I alawys get
> > the stripped value in the
> > database. However, I am not getting the conf-id
> > value as a AVPair, only as a
> > normal variable. Maybe that is the problem.
> >
> > ----- Original Message ----- 
> > From: "Kiran" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 30, 2004 5:57 PM
> > Subject: Re: h323-incoming-conf-id
> >
> >
> > > Hi Costin,
> > > Thanks for the response. I tried commenting the
> > line
> > > #ATTRIBUTE h323-incoming-conf-id 35 string Cisco
> > > in dictionary.cisco But there is no change in the
> > > output
> > >
> > > I still get
> > >         h323-conf-id = "h323-conf-id=C4E45877
> > 818F11D8
> > > 86419EDB 53428773"
> > >         h323-call-origin =
> > "h323-call-origin=answer"
> > >         h323-call-type =
> > "h323-call-type=Telephony"
> > >     --> Cisco-AVPair =
> > "h323-incoming-conf-id=C4E45877
> > > 818F11D8 86419EDB 53428773"
> > >         Cisco-AVPair = "subscriber=RegularLine"
> > >         Acct-Status-Type = Start
> > >         NAS-Port-Type = Async
> > >
> > > I am using version 0.9.1. Is there a fix in the
> > later
> > > versions ?
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> =====
> Love,
> Kiran
>
>
>
>
>
> ___________________________________________________________
> WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet
Cafe Awards  www.yahoo.co.uk/internetcafes
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


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

Reply via email to