--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
//get IMSI from the request(CCR)String imsi = request.getSubscriptionIds()[0].getSubscriptionIdData();//retrieve QoS from web serviceString resultQOS = binding.callPCRFInterface("CCR_I",imsi);//set the QoS in answer - setQoSInformation instruction doesn't existanswer.setQoSInformation(avpFactory.createAvp(Avp.QOS_INFORMATION,resultQOS.getBytes()));
//send the answer to client (seagull)<CC-Answer> ::= < Diameter Header: 272, PXY >< Session-Id >{ Auth-Application-Id }{ Origin-Host }{ Origin-Realm }[ Result-Code ][ Experimental-Result ]{ CC-Request-Type }{ CC-Request-Number }*[ Event-Trigger ][ Origin-State-Id ]*[ Charging-Rule-Remove ]*[ Charging-Rule-Install ][ Charging-Information ][ Error-Message ][ Error-Reporting-Host ]*[ Failed-AVP ]*[ Proxy-Info ]*[ Route-Record ]*[ AVP ]<CC-Answer> ::= < Diameter Header: 272, PXY >< Session-Id >{ Auth-Application-Id }{ Origin-Host }{ Origin-Realm }[ Result-Code ][ Experimental-Result ]{ CC-Request-Type }{ CC-Request-Number }[ Bearer-Control-Mode ]*[ Event-Trigger ][ Origin-State-Id ]*[ Charging-Rule-Remove ]*[ Charging-Rule-Install ][ Charging-Information ][ Online ][ Offline ]*[ QoS-Information ][ Error-Message ][ Error-Reporting-Host ]*[ Failed-AVP ]*[ Proxy-Info ]*[ Route-Record ]*[ AVP ] public static final int TGPP = 10415;
avps.add(avpFactory.createAvp(TGPP,Avp.QOS_CLASS_IDENTIFIER, 1)); //enumeratedavps.add(avpFactory.createAvp(TGPP,Avp.MAX_REQUESTED_BANDWIDTH_DL, 5000)); //unsigned32avps.add(avpFactory.createAvp(TGPP,Avp.MAX_REQUESTED_BANDWIDTH_UL, 5000)); //unsigned32avps.add(avpFactory.createAvp(TGPP,Avp.GUARANTEED_BITRATE_DL, 10000)); //unsigned32avps.add(avpFactory.createAvp(TGPP,Avp.GUARANTEED_BITRATE_UL, 10000)); //unsigned32avps.add(avpFactory.createAvp(TGPP,Avp.BEARER_IDENTIFIER, 1)); //octedStringavps.add(avpFactory.createAvp(TGPP,Avp.QOS_INFORMATION,(DiameterAvp[]) avps.toArray()));
answer.setExtensionAvps((DiameterAvp[]) avps.toArray());
12:48:14,780 WARN [AvpDictionary] (pool-23-thread-1) AVP with code 1016 and Vendor-Id 0 not present in dictionary!
, local ac = RA:DiameterGx:Diameter Session ID[seagull.mydomain.com;1096298391;22] , address = null , serviceID = null]java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.java.slee.resource.diameter.base.events.avp.DiameterAvp; at org.mobicents.diameter.server.PcrfServerSbb.onGxCreditControlRequest(PcrfServerSbb.java:229) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481) at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379) at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126) at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)