Le lun 12/04/2004 à 17:37, Pascal Polleunus a écrit : > Hi, > > We are trying to do VoIP accounting using Cisco material but we've > problems with the attribute "Cisco-AVPair". > > We've defined "with_cisco_vsa_hack = yes", and it works for other > Cisco's VSA. > > In rlm_preprocess.c, in cisco_vsa_hack(), I found: > /* > * Cisco-AVPair's get packed as: > * > * Cisco-AVPair = "h323-foo-bar = baz" > * > * which makes sense only if you're a lunatic. > * This code looks for the attribute named inside > * of the string, and if it exists, adds it as a new > * attribute. > */ > > Does that well mean that %{h323-foo-bar} will be available (if defined > in a dictionary)? > > So if we receive the following: > Cisco-AVPair = "h323-incoming-conf-id=..." > Cisco-AVPair = "gw-rxd-cdn=ton:0,npi:1,#:0123456789" > Cisco-AVPair = "in-carrier-id=1" > > %{h323-incoming-conf-id}, %{gw-rxd-cdn} and %{in-carrier-id} should be > available, right? > > > h323-incoming-conf-id is already defined in dictionary.cisco, so we > didn't redefined it, but for the others, we've defined a dictionary > containing the following entries: > ATTRIBUTE in-carrier-id 224 string Cisco > ATTRIBUTE out-carrier-id 225 string Cisco > ATTRIBUTE gw-rxd-cdn 226 string Cisco > > And we tried also with the following entries instead: > VALUE Cisco-AVPair in-carrier-id 224 > VALUE Cisco-AVPair out-carrier-id 225 > VALUE Cisco-AVPair gw-rxd-cdn 226 > > > But, %{Cisco-AVPair} contains only the first attribute received > ("h323-incoming-conf-id=...") and %{gw-rxd-cdn} and %{in-carrier-id} > contain nothing. > > > Does someone know how to solve that? > > > Thanks for your help, > Pascal Polleunus > > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- Jérôme Warnier Consultant BeezNest http://beeznest.net
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html