From: Berman L. <Leo...@co...> - 2007-04-11 08:34:09
|
Hi, For the Diameter-SCAP (Ericsson) I should define a number of the protocol-specific AVPs containing specific Vendor-ID (its value is 193). It is not so clear to me where and how I should define the Vendor-ID. My questions are as follows. 1. Is it "application-id" field in the "header" element or "Vendor-ID" field in the "body" element (Or both) that I should define in order to provide certain Vendor-ID value for the protocol-specific AVPs? 2.Is it enough to define=20 <setfield name=3D"flags" value=3D"192"></setfield> (i.e. set 'V' and 'M' bits in the AVP flags field to 1) for some protocol-specific AVP in order to get Vendor-ID field defined for this AVP or I should also explicitly define Vendor-ID field (and its value) for such AVP? If the latter is right, then how I should write the definition? At the moment, my definitions in the dictionary are as follows (excerption). ... <header name=3D"command" length=3D"msg-length" type=3D"cmd-code"> <fielddef name=3D"protocol-version" size=3D"1" = unit=3D"octet"></fielddef> <fielddef name=3D"msg-length" size=3D"3" unit=3D"octet"></fielddef> <fielddef name=3D"flags" size=3D"1" unit=3D"octet"></fielddef> <fielddef name=3D"cmd-code" size=3D"3" unit=3D"octet"></fielddef> <fielddef name=3D"application-id" size=3D"4" = unit=3D"octet"></fielddef> <!-- Vendor-ID in RFC3588 ? --> <fielddef name=3D"HbH-id" size=3D"4" unit=3D"octet"></fielddef> <fielddef name=3D"EtE-id" size=3D"4" unit=3D"octet"></fielddef> </header> <body> <header name=3D"avp" length=3D"avp-length" type=3D"avp-code"> <fielddef name=3D"avp-code" size=3D"4" unit=3D"octet"></fielddef> <fielddef name=3D"flags" size=3D"1" unit=3D"octet"></fielddef> <fielddef name=3D"avp-length" size=3D"3" = unit=3D"octet"></fielddef> <optional> <fielddef name=3D"Vendor-ID" size=3D"4" unit=3D"octet" condition=3D"mask" field=3D"flags" mask=3D"128"> </fielddef> </optional> </header> </body> ... <define name=3D"Requested-Service-Unit" type=3D"Grouped"> <!-- = ACR --> <setfield name=3D"avp-code" value=3D"606"></setfield> <setfield name=3D"flags" value=3D"192"></setfield> <!-- = 128 (V flag) + 64 (M flag) --> </define> ... <define name=3D"Unit-Type" type=3D"Enumerated"> <setfield name=3D"avp-code" value=3D"611"></setfield> <setfield name=3D"flags" value=3D"192"></setfield> </define> ... Etc Thanks, Leonid Berman |