Search in sources :

Example 6 with RatingInfo

use of org.mobicents.charging.server.ratingengine.RatingInfo in project charging-server by RestComm.

the class LocalRatingEngineSbb method getRateForService.

@Override
public RatingInfo getRateForService(HashMap params) {
    String sessionId = (String) params.get("SessionId");
    if (tracer.isInfoEnabled()) {
        tracer.info("[$$] SID<" + sessionId + "> Performing rating with the SIMPLE Rating Module.");
    }
    RatingInfo ri = new RatingInfo(0, sessionId);
    ri.setRate(1.0);
    return ri;
}
Also used : RatingInfo(org.mobicents.charging.server.ratingengine.RatingInfo)

Aggregations

RatingInfo (org.mobicents.charging.server.ratingengine.RatingInfo)6 IOException (java.io.IOException)3 StartActivityException (javax.slee.resource.StartActivityException)3 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2 HashMap (java.util.HashMap)2 NamingException (javax.naming.NamingException)2 HttpClientActivity (net.java.client.slee.resource.http.HttpClientActivity)2 HttpResponse (org.apache.http.HttpResponse)2 HttpPost (org.apache.http.client.methods.HttpPost)2 StringReader (java.io.StringReader)1 ActivityContextInterface (javax.slee.ActivityContextInterface)1 DocumentBuilder (javax.xml.parsers.DocumentBuilder)1 SubscriptionIdAvp (net.java.slee.resource.diameter.cca.events.avp.SubscriptionIdAvp)1 HttpClient (org.apache.http.client.HttpClient)1 DiameterChargingServer (org.mobicents.charging.server.DiameterChargingServer)1 Document (org.w3c.dom.Document)1 Element (org.w3c.dom.Element)1 NodeList (org.w3c.dom.NodeList)1 InputSource (org.xml.sax.InputSource)1