Hello Aaron and John -

On Sat, 13 Nov 1999, Aaron Holtz wrote:
> John,
> 
>       If you aren't tied to the name 'Ascend-Disconnect-Cause' just do
> what I did:
> 
> sed s/Ascend-Disconnect-Cause/Acct-Terminate-Cause/g dictionary >
> dictionary.test
> 
> Then move your dictionary.test file into place as 'dictionary'.  Now the
> Ascend codes sent will be turned into Acct-Terminate-Cause in your sql db.
> I had the same issue when working with Ciscos and Ascends.  Now my db has
> all the terminate reasons in it regardless of nas and I'm only inserting
> %{Acct-Terminate-Cause}  into my db.
> 

Otherwise, you can just define the field twice:

        AccountingTable ...
        AcctColumnDef ...
        AcctColumnDef TERMINATE_CAUSE, Acct-Terminate-Cause
        AcctColumnDef TERMINATE_CAUSE, Ascend-Disconnect-Cause
        ...

Since you will only ever have one or the other attribute in a given packet, this
will work just fine.


hth

Hugh

--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to