(RADIATOR) More Diameter patches

Jose Borges Ferreira underspell at gmail.com
Thu Feb 7 07:16:39 CST 2008


Included in patch is:

1)  In Handler clauses you can catch Diameter attributes:

<Handler DiaRequest:Auth-Application-Id=NASREQ>
or
<Handler DiaRequest:Disconnect-Cause=CREDIT_CONTROL>

For now , doesn't go trougth grouped attributes



2) Added extra methods to allow
   vendorByName          returns vendor data from a given vendor name
   grouped_attr              allows easy manipulations of grouped attributes
         Allows this:

            $p->add_attr(415, 0, AFLAG_MANDATORY, 0);        # Normal add

            $p->add_attr([431, 0, AFLAG_MANDATORY,  $p->grouped_attr(   #
Grouped attr with 2 attributes
                                  [421, 0, AFLAG_MANDATORY, 1024000]) ],
                                  [422, 0, AFLAG_MANDATORY, 100]) ])
            );

            $p->add_attr(456, 0, AFLAG_MANDATORY, $p->grouped_attr(   #
grouped Attribute within a grouped attribute
                     [431, 0, AFLAG_MANDATORY,  $p->grouped_attr(
                                  [421, 0, AFLAG_MANDATORY, 1024000]) ],
                     [432, 0, AFLAG_MANDATORY, 152]
            ));

3) added avp type vendor, witch is a Unsigned32 variant (like enumerated)
that tries to translate vendorname to vendornum and vice-versa.
This is aimed for
ATTRIBUTE Supported-Vendor-Id               265     vendor
ATTRIBUTE Vendor-Id                              266     vendor

NOTE: The dictionary is not patched, so this wont break anything



4) Grouped attributes within grouped attributes are logged with alignments


5) SupportedVendorIds  'This optional parameter allows you to define the
Supported Vendor Ids anounced in CER. Defaults to BASE(0).
Keyword "DictVendors" is an alias group for all vendors in your dictionary,
not included the ones defined as variables , like
$Radius::DiaAttrList::VCODE's.


José Borges Ferreira

PS: These patches have been tested in live enviorment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20080207/0d8be7b6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diameter.patch
Type: text/x-patch
Size: 7735 bytes
Desc: not available
URL: <http://www.open.com.au/pipermail/radiator/attachments/20080207/0d8be7b6/attachment.bin>


More information about the radiator mailing list