Revision: 15910
Author: brainslog
Date: Mon Dec 20 16:14:25 2010
Log: Testsuite for Gx RA Factories
Fixes Issue 2227
http://code.google.com/p/mobicents/source/detail?r=15910
Added:
/trunk/servers/diameter/testsuite/tests/src/test/java/org/mobicents/slee/resources/diameter/tests/factories/GxFactoriesTest.java
Modified:
/trunk/servers/diameter/testsuite/tests/src/test/java/org/mobicents/slee/resources/diameter/tests/factories/AvpAssistant.java
/trunk/servers/diameter/testsuite/tests/src/test/resources/dictionary.xml
=======================================
--- /dev/null
+++
/trunk/servers/diameter/testsuite/tests/src/test/java/org/mobicents/slee/resources/diameter/tests/factories/GxFactoriesTest.java
Mon Dec 20 16:14:25 2010
@@ -0,0 +1,309 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a full listing
+ * of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU General Public License, v. 2.0.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 along with this distribution; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+package org.mobicents.slee.resources.diameter.tests.factories;
+
+import static org.jdiameter.client.impl.helpers.Parameters.AcctApplId;
+import static org.jdiameter.client.impl.helpers.Parameters.ApplicationId;
+import static org.jdiameter.client.impl.helpers.Parameters.Assembler;
+import static org.jdiameter.client.impl.helpers.Parameters.AuthApplId;
+import static org.jdiameter.client.impl.helpers.Parameters.OwnDiameterURI;
+import static org.jdiameter.client.impl.helpers.Parameters.OwnRealm;
+import static org.jdiameter.client.impl.helpers.Parameters.OwnVendorID;
+import static org.jdiameter.client.impl.helpers.Parameters.PeerName;
+import static org.jdiameter.client.impl.helpers.Parameters.PeerRating;
+import static org.jdiameter.client.impl.helpers.Parameters.PeerTable;
+import static org.jdiameter.client.impl.helpers.Parameters.RealmEntry;
+import static org.jdiameter.client.impl.helpers.Parameters.RealmTable;
+import static org.jdiameter.client.impl.helpers.Parameters.VendorId;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+import net.java.slee.resource.diameter.base.events.avp.DiameterIdentity;
+import net.java.slee.resource.diameter.gx.GxAvpFactory;
+import net.java.slee.resource.diameter.gx.GxMessageFactory;
+import net.java.slee.resource.diameter.gx.GxServerSessionActivity;
+import net.java.slee.resource.diameter.gx.events.GxCreditControlAnswer;
+import net.java.slee.resource.diameter.gx.events.GxCreditControlRequest;
+
+import org.jdiameter.api.Answer;
+import org.jdiameter.api.IllegalDiameterStateException;
+import org.jdiameter.api.InternalException;
+import org.jdiameter.api.OverloadException;
+import org.jdiameter.api.Request;
+import org.jdiameter.api.RouteException;
+import org.jdiameter.api.Stack;
+import org.jdiameter.api.acc.events.AccountAnswer;
+import org.jdiameter.api.acc.events.AccountRequest;
+import org.jdiameter.api.app.AppAnswerEvent;
+import org.jdiameter.api.app.AppRequestEvent;
+import org.jdiameter.api.app.AppSession;
+import org.jdiameter.api.auth.events.AbortSessionAnswer;
+import org.jdiameter.api.auth.events.AbortSessionRequest;
+import org.jdiameter.api.auth.events.ReAuthAnswer;
+import org.jdiameter.api.auth.events.ReAuthRequest;
+import org.jdiameter.api.auth.events.SessionTermAnswer;
+import org.jdiameter.api.auth.events.SessionTermRequest;
+import org.jdiameter.api.cca.ServerCCASession;
+import org.jdiameter.api.cca.events.JCreditControlRequest;
+import org.jdiameter.api.gx.ServerGxSession;
+import org.jdiameter.api.gx.ServerGxSessionListener;
+import org.jdiameter.client.impl.helpers.EmptyConfiguration;
+import org.jdiameter.common.api.app.gx.IGxMessageFactory;
+import org.jdiameter.server.impl.app.gx.ServerGxSessionImpl;
+import org.junit.Test;
+import org.mobicents.diameter.dictionary.AvpDictionary;
+import org.mobicents.slee.resource.diameter.base.DiameterAvpFactoryImpl;
+import
org.mobicents.slee.resource.diameter.base.DiameterMessageFactoryImpl;
+import org.mobicents.slee.resource.diameter.gx.GxAvpFactoryImpl;
+import org.mobicents.slee.resource.diameter.gx.GxMessageFactoryImpl;
+import org.mobicents.slee.resource.diameter.gx.GxServerSessionActivityImpl;
+
+/**
+ * GxFactoriesTest.java
+ *
+ * @author <a href="mailto:[email protected]"> Alexandre Mendonca </a>
+ */
+public class GxFactoriesTest implements IGxMessageFactory,
ServerGxSessionListener {
+
+ private static String clientHost = "127.0.0.1";
+ private static String clientPort = "13868";
+ private static String clientURI = "aaa://" + clientHost + ":" +
clientPort;
+
+ private static String serverHost = "localhost";
+ private static String serverPort = "3868";
+ private static String serverURI = "aaa://" + serverHost + ":" +
serverPort;
+
+ private static String realmName = "mobicents.org";
+
+ private static GxMessageFactory gxMessageFactory;
+ private static GxAvpFactory gxAvpFactory;
+
+ private static Stack stack;
+
+ private static ServerGxSession session;
+
+
+ static
+ {
+ stack = new org.jdiameter.client.impl.StackImpl();
+ try {
+ stack.init(new MyConfiguration());
+ }
+ catch (Exception e) {
+ throw new RuntimeException("Failed to initialize the stack.");
+ }
+
+ DiameterMessageFactoryImpl baseFactory = new
DiameterMessageFactoryImpl(stack);
+ DiameterAvpFactoryImpl baseAvpFactory = new DiameterAvpFactoryImpl();
+
+ gxAvpFactory = new GxAvpFactoryImpl(baseAvpFactory);
+ try {
+ gxMessageFactory = new GxMessageFactoryImpl(baseFactory,
stack.getSessionFactory().getNewSession().getSessionId(), stack);
+ }
+ catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ try {
+
AvpDictionary.INSTANCE.parseDictionary(GxFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml"));
+ }
+ catch (Exception e) {
+ throw new RuntimeException("Failed to parse dictionary file.");
+ }
+ }
+
+ private GxServerSessionActivity gxServerSession = null;
+
+ public GxFactoriesTest() {
+ try {
+ session = new ServerGxSessionImpl(this, stack.getSessionFactory(),
this, null, null);
+ gxServerSession = new
GxServerSessionActivityImpl(gxMessageFactory.getBaseMessageFactory(),
gxAvpFactory.getBaseFactory(), session, new DiameterIdentity("127.0.0.2"),
new DiameterIdentity("mobicents.org"), stack);
+
((GxServerSessionActivityImpl)gxServerSession).fetchCurrentState(gxMessageFactory.createGxCreditControlRequest());
+ }
+ catch (IllegalDiameterStateException e) {
+ throw new RuntimeException("Failed to parse dictionary file.");
+ }
+ }
+
+ @Test
+ public void isRequestCCR() throws Exception {
+ GxCreditControlRequest ccr =
gxMessageFactory.createGxCreditControlRequest();
+ assertTrue("Request Flag in Credit-Control-Request is not set.",
ccr.getHeader().isRequest());
+ }
+
+ @Test
+ public void testGettersAndSettersCCR() throws Exception {
+ GxCreditControlRequest ccr =
gxMessageFactory.createGxCreditControlRequest();
+
+ int nFailures = AvpAssistant.testMethods(ccr,
GxCreditControlRequest.class);
+
+ assertTrue("Some methods have failed. See logs for more details.",
nFailures == 0);
+ }
+
+ @Test
+ public void hasGxApplicationIdCCR() throws Exception {
+ GxCreditControlRequest ccr =
gxMessageFactory.createGxCreditControlRequest();
+ assertTrue("Auth-Application-Id AVP in Gx CCR must be 16777224, it
is " + ccr.getAuthApplicationId(), ccr.getAuthApplicationId() == 16777224);
+ }
+
+ @Test
+ public void isAnswerCCA() throws Exception {
+ GxCreditControlAnswer cca =
gxServerSession.createGxCreditControlAnswer();
+ assertFalse("Request Flag in Credit-Control-Answer is set.",
cca.getHeader().isRequest());
+ }
+
+ @Test
+ public void testGettersAndSettersCCA() throws Exception {
+ GxCreditControlAnswer cca =
gxServerSession.createGxCreditControlAnswer();
+
+ int nFailures = AvpAssistant.testMethods(cca,
GxCreditControlAnswer.class);
+
+ assertTrue("Some methods have failed. See logs for more details.",
nFailures == 0);
+ }
+
+ @Test
+ public void hasGxApplicationIdCCA() throws Exception {
+ GxCreditControlAnswer cca =
gxServerSession.createGxCreditControlAnswer();
+ assertTrue("Auth-Application-Id AVP in Gx CCA must be 16777224, it
is " + cca.getAuthApplicationId(), cca.getAuthApplicationId() == 16777224);
+ }
+
+ @Test
+ public void hasDestinationHostCCA() throws Exception {
+ GxCreditControlAnswer cca =
gxServerSession.createGxCreditControlAnswer();
+ assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT
be present in the answer message. [RFC3588/6.2]", cca.getDestinationHost());
+ }
+
+ @Test
+ public void hasDestinationRealmCCA() throws Exception {
+ GxCreditControlAnswer cca =
gxServerSession.createGxCreditControlAnswer();
+ assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT
be present in the answer message. [RFC3588/6.2]",
cca.getDestinationRealm());
+ }
+
+
+ /**
+ * Class representing the Diameter Configuration
+ */
+ public static class MyConfiguration extends EmptyConfiguration {
+ public MyConfiguration() {
+ super();
+
+ add(Assembler, Assembler.defValue());
+ add(OwnDiameterURI, clientURI);
+ add(OwnRealm, realmName);
+ add(OwnVendorID, 193L);
+ // Set Ericsson SDK feature
+ //add(UseUriAsFqdn, true);
+ // Set Common Applications
+ add(ApplicationId,
+ // AppId 1
+ getInstance().
+ add(VendorId, 193L).
+ add(AuthApplId, 0L).
+ add(AcctApplId, 19302L)
+ );
+ // Set peer table
+ add(PeerTable,
+ // Peer 1
+ getInstance().
+ add(PeerRating, 1).
+ add(PeerName, serverURI));
+ // Set realm table
+ add(RealmTable,
+ // Realm 1
+ getInstance().
+ add(RealmEntry, realmName + ":" + clientHost + "," + serverHost)
+ );
+ }
+ }
+
+ public ReAuthAnswer createReAuthAnswer(Answer answer) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public ReAuthRequest createReAuthRequest(Request req) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public long[] getApplicationIds() {
+ return new long[]{GxMessageFactory._GX_AUTH_APP_ID};
+ }
+
+ public void doAbortSessionAnswer(ServerCCASession session,
AbortSessionRequest request, AbortSessionAnswer answer) throws
InternalException, IllegalDiameterStateException, RouteException,
OverloadException {
+ // NO-OP
+ }
+
+ public void doAbortSessionRequest(ServerCCASession session,
AbortSessionRequest request) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doAccountingAnswer(ServerCCASession session, AccountRequest
request, AccountAnswer answer) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doAccountingRequest(ServerCCASession session, AccountRequest
request) throws InternalException, IllegalDiameterStateException,
RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doCreditControlRequest(ServerCCASession session,
JCreditControlRequest request) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doOtherEvent(AppSession session, AppRequestEvent request,
AppAnswerEvent answer) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doReAuthAnswer(ServerCCASession session, ReAuthRequest
request, ReAuthAnswer answer) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doSessionTerminationAnswer(ServerCCASession session,
SessionTermRequest request, SessionTermAnswer answer) throws
InternalException, IllegalDiameterStateException, RouteException,
OverloadException {
+ // NO-OP
+ }
+
+ public void doSessionTerminationRequest(ServerCCASession session,
SessionTermRequest request) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doCreditControlRequest(ServerGxSession session,
GxCreditControlRequest request) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doReAuthAnswer(ServerGxSession session, ReAuthRequest
request, ReAuthAnswer answer) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ // NO-OP
+ }
+
+ public void doCreditControlRequest(ServerGxSession session,
org.jdiameter.api.gx.events.GxCreditControlRequest request) throws
InternalException, IllegalDiameterStateException, RouteException,
OverloadException {
+ // NO-OP
+ }
+
+ public org.jdiameter.api.gx.events.GxCreditControlRequest
createCreditControlRequest(Request request) {
+ return null;
+ }
+
+ public org.jdiameter.api.gx.events.GxCreditControlAnswer
createCreditControlAnswer(Answer answer) {
+ return null;
+ }
+
+}
=======================================
---
/trunk/servers/diameter/testsuite/tests/src/test/java/org/mobicents/slee/resources/diameter/tests/factories/AvpAssistant.java
Mon Nov 29 09:31:23 2010
+++
/trunk/servers/diameter/testsuite/tests/src/test/java/org/mobicents/slee/resources/diameter/tests/factories/AvpAssistant.java
Mon Dec 20 16:14:25 2010
@@ -88,6 +88,9 @@
import net.java.slee.resource.diameter.cxdx.events.avp.SIPAuthDataItem;
import
net.java.slee.resource.diameter.cxdx.events.avp.SIPDigestAuthenticate;
import net.java.slee.resource.diameter.cxdx.events.avp.SubscriptionInfo;
+import net.java.slee.resource.diameter.gx.events.avp.ChargingRuleInstall;
+import net.java.slee.resource.diameter.gx.events.avp.ChargingRuleRemove;
+import
net.java.slee.resource.diameter.gx.events.avp.TFTPacketFilterInformation;
import
net.java.slee.resource.diameter.ro.events.avp.AdditionalContentInformation;
import net.java.slee.resource.diameter.ro.events.avp.AddressDomain;
import
net.java.slee.resource.diameter.ro.events.avp.ApplicationServerInformation;
@@ -156,6 +159,10 @@
import
org.mobicents.slee.resource.diameter.cxdx.events.avp.SIPAuthDataItemImpl;
import
org.mobicents.slee.resource.diameter.cxdx.events.avp.SIPDigestAuthenticateImpl;
import
org.mobicents.slee.resource.diameter.cxdx.events.avp.SubscriptionInfoImpl;
+import
org.mobicents.slee.resource.diameter.gx.events.avp.ChargingRuleInstallImpl;
+import
org.mobicents.slee.resource.diameter.gx.events.avp.ChargingRuleRemoveImpl;
+import
org.mobicents.slee.resource.diameter.gx.events.avp.DiameterGxAvpCodes;
+import
org.mobicents.slee.resource.diameter.gx.events.avp.TFTPacketFilterInformationImpl;
import
org.mobicents.slee.resource.diameter.ro.events.avp.AdditionalContentInformationImpl;
import
org.mobicents.slee.resource.diameter.ro.events.avp.AddressDomainImpl;
import
org.mobicents.slee.resource.diameter.ro.events.avp.ApplicationServerInformationImpl;
@@ -598,6 +605,20 @@
typeValues.put( RestorationInfo.class, new
RestorationInfoImpl(DiameterCxDxAvpCodes.RESTORATION_INFO,
DiameterCxDxAvpCodes.CXDX_VENDOR_ID, 0, 1, dummyAvpBytes) );
typeValues.put( RestorationInfo[].class, new RestorationInfoImpl[]{new
RestorationInfoImpl(DiameterCxDxAvpCodes.RESTORATION_INFO,
DiameterCxDxAvpCodes.CXDX_VENDOR_ID, 0, 1, dummyAvpBytes)});
+ // Gx AVP Factory
+
+ typeValues.put( TFTPacketFilterInformation.class, new
TFTPacketFilterInformationImpl(DiameterGxAvpCodes.TFT_PACKET_FILTER_INFORMATION,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes) );
+ typeValues.put( TFTPacketFilterInformation[].class, new
TFTPacketFilterInformationImpl[]{new
TFTPacketFilterInformationImpl(DiameterGxAvpCodes.TFT_PACKET_FILTER_INFORMATION,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes)});
+
+ typeValues.put( ChargingRuleRemove.class, new
ChargingRuleRemoveImpl(DiameterGxAvpCodes.CHARGING_RULE_REMOVE,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes) );
+ typeValues.put( ChargingRuleRemove[].class, new
ChargingRuleRemoveImpl[]{new
ChargingRuleRemoveImpl(DiameterGxAvpCodes.CHARGING_RULE_REMOVE,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes)});
+
+ typeValues.put( ChargingRuleInstall.class, new
ChargingRuleInstallImpl(DiameterGxAvpCodes.CHARGING_RULE_INSTALL,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes) );
+ typeValues.put( ChargingRuleInstall[].class, new
ChargingRuleInstallImpl[]{new
ChargingRuleInstallImpl(DiameterGxAvpCodes.CHARGING_RULE_INSTALL,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes)});
+
+ typeValues.put(
net.java.slee.resource.diameter.gx.events.avp.ChargingInformation.class,
new
org.mobicents.slee.resource.diameter.gx.events.avp.ChargingInformationImpl(DiameterGxAvpCodes.CHARGING_INFORMATION,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes) );
+ typeValues.put(
net.java.slee.resource.diameter.gx.events.avp.ChargingInformation[].class,
new
org.mobicents.slee.resource.diameter.gx.events.avp.ChargingInformationImpl[]{new
org.mobicents.slee.resource.diameter.gx.events.avp.ChargingInformationImpl(DiameterGxAvpCodes.CHARGING_INFORMATION,
DiameterGxAvpCodes.TGPP_VENDOR_ID, 0, 1, dummyAvpBytes)});
+
typeValues.put( DiameterAvp.class, new DiameterAvpImpl(0, 0, 0, 1,
dummyAvpBytes, null) );
typeValues.put( DiameterAvp[].class, new DiameterAvpImpl[]{new
DiameterAvpImpl(0, 0, 0, 1, dummyAvpBytes, null)});
=======================================
---
/trunk/servers/diameter/testsuite/tests/src/test/resources/dictionary.xml
Mon Mar 22 16:11:45 2010
+++
/trunk/servers/diameter/testsuite/tests/src/test/resources/dictionary.xml
Mon Dec 20 16:14:25 2010
@@ -2725,12 +2725,24 @@
</avp>
<!--
- 1016 QoS-Information Grouped 1018 Charging-Rule-Report Grouped 1019
PCC-Rule-Status Enumerated 1020 Bearer-Identifier OctetString 1021
Bearer-Operation Enumerated 1022
- Access-Network-Charging-Identifier-Gx Grouped 1023 Bearer-Control-Mode
Enumerated 1024 Network-Request-Support Enumerated 1025
Guaranteed-Bitrate-DL Unsigned32 1026 Guaranteed-Bitrate-UL Unsigned32
- 1027 IP-CAN-Type Enumerated 1028 QoS-Class-Identifier Enumerated 29.210
[15] Note: The AVP codes from 1015 to 1099 are reserved for TS 29.210
+ 1016 QoS-Information Grouped
+ 1018 Charging-Rule-Report Grouped
+ 1019 PCC-Rule-Status Enumerated
+ 1020 Bearer-Identifier OctetString
+ 1021 Bearer-Operation Enumerated
+ 1022 Access-Network-Charging-Identifier-Gx Grouped
+ 1023 Bearer-Control-Mode Enumerated
+ 1024 Network-Request-Support Enumerated
+ 1025 Guaranteed-Bitrate-DL Unsigned32
+ 1026 Guaranteed-Bitrate-UL Unsigned32
+ 1027 IP-CAN-Type Enumerated
+ 1028 QoS-Class-Identifier Enumerated
+
+ 29.210 [15] Note: The AVP codes from 1015 to 1099 are reserved for TS
29.210
-->
- <!-- Note: The AVP codes from 1015 to 1099 are reserved for TS
29.210
--->
+ <!-- Note: The AVP codes from 1015 to 1099 are reserved for TS
29.210 -->
+
+
<!-- ETSI TS 129 140 V6.3.0 (2005-12) -->
<avp name="Served-User-Identity" code="1100" may-encrypt="no"
protected="mustnot" vendor-bit="must" vendor-id="TGPP">
<grouped>
@@ -4880,6 +4892,73 @@
<type type-name="Unsigned32" />
</avp>
+ </application>
+
+ <application name="3GPP Gx (Rel6)" id="16777224"
uri="http://www.3gpp.org/ftp/Specs/archive/29_series/29.210/29210-670.zip">
+
+ <command name="Credit-Control-Request" code="272" request="true"
application="16777224">
+ <!-- mandatory -->
+ <avp name="Session-Id" code="263" vendor="0" multiplicity="1"
index="0" />
+ <avp name="Auth-Application-Id" code="258" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="Origin-Host" code="264" vendor="0" multiplicity="1"
index="-1" />
+ <avp name="Origin-Realm" code="296" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="Destination-Realm" code="283" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="CC-Request-Type" code="416" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="CC-Request-Number" code="415" vendor="0"
multiplicity="1" index="-1" />
+
+ <!-- optional -->
+ <avp name="Destination-Host" code="293" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Origin-State-Id" code="278" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Subscription-Id" code="443" vendor="0"
multiplicity="0+" index="-1" />
+ <avp name="Framed-IP-Address" code="8" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Framed-IPv6-Prefix" code="97" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="3GPP-RAT-Type" code="21" vendor="10415"
multiplicity="0-1" index="-1" />
+ <avp name="Termination-Cause" code="295" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="User-Equipment-Info" code="458" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="3GPP-GPRS-Negotiated-QoS-Profile" code="5"
vendor="10415" multiplicity="0-1" index="-1" />
+ <avp name="3GPP-SGSN-MCC-MNC" code="18" vendor="10415"
multiplicity="0-1" index="-1" />
+ <avp name="3GPP-SGSN-Address" code="6" vendor="10415"
multiplicity="0-1" index="-1" />
+ <avp name="3GPP-SGSN-IPv6-Address" code="15" vendor="10415"
multiplicity="0-1" index="-1" />
+ <avp name="Called-Station-ID" code="30" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Bearer-Usage" code="1000" vendor="10415"
multiplicity="0-1" index="-1" />
+ <avp name="PDP-Session-Operation" code="1015" vendor="10415"
multiplicity="0-1" index="-1" />
+ <avp name="TFT-Packet-Filter-Information" code="1013"
vendor="10415" multiplicity="0+" index="-1" />
+ <avp name="Proxy-Info" code="284" vendor="0" multiplicity="0+"
index="-1" />
+ <avp name="Route-Record" code="282" vendor="0"
multiplicity="0+" index="-1" />
+
+ <!-- forbidden -->
+ <avp name="Result-Code" code="268" vendor="0" multiplicity="0"
index="-1" />
+ <avp name="Experimental-Result" code="297" vendor="0"
multiplicity="0" index="-1" />
+ </command>
+
+ <command name="Credit-Control-Answer" code="272" request="false"
application="16777224">
+ <!-- mandatory -->
+ <avp name="Session-Id" code="263" vendor="0" multiplicity="1"
index="0" />
+ <avp name="Auth-Application-Id" code="258" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="Origin-Host" code="264" vendor="0" multiplicity="1"
index="-1" />
+ <avp name="Origin-Realm" code="296" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="CC-Request-Type" code="416" vendor="0"
multiplicity="1" index="-1" />
+ <avp name="CC-Request-Number" code="415" vendor="0"
multiplicity="1" index="-1" />
+
+ <!-- optional -->
+ <avp name="Result-Code" code="268" vendor="0" multiplicity="1"
index="-1" />
+ <avp name="Experimental-Result" code="297" vendor="0"
multiplicity="0-1" index="-1"/>
+ <avp name="Event-Trigger" code="1006" vendor="10415"
multiplicity="0+" index="-1"/>
+ <avp name="Origin-State-Id" code="278" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Charging-Rule-Remove" code="1002" vendor="10415"
multiplicity="0+" index="-1"/>
+ <avp name="Charging-Rule-Install" code="1001" vendor="10415"
multiplicity="0+" index="-1"/>
+ <avp name="Charging-Information" code="618" vendor="10415"
multiplicity="0-1" index="-1"/>
+ <avp name="Error-Message" code="281" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Error-Reporting-Host" code="294" vendor="0"
multiplicity="0-1" index="-1" />
+ <avp name="Failed-AVP" code="279" vendor="0" multiplicity="0+"
index="-1" />
+ <avp name="Proxy-Info" code="284" vendor="0" multiplicity="0+"
index="-1" />
+ <avp name="Route-Record" code="282" vendor="0"
multiplicity="0+" index="-1" />
+
+ <!-- forbidden -->
+ <avp name="Destination-Host" code="293" vendor="0"
multiplicity="0" index="-1" />
+ <avp name="Destination-Realm" code="283" vendor="0"
multiplicity="0" index="-1" />
+ </command>
+
</application>
<!--
&nasreq;