Homepage
 
Search
ERICSSON GLOBAL
How to set up connection with more than one charging servers 
*
 
Membership
Membership
Get knowledge, support and experience in our free developer program.
Log in
User name
Password

Friday, July 9, 2004

All content and software implementations are not Ericsson-supported products. Note that Ericsson does not represent nor hold responsibility for the content from this area.

There are occasions when your charging application needs to exchange charging operations with different charging server domains. Diameter Charging API provides the flexibility on this issue, as you will find out from the following steps.

 import com.ericsson.pps.diameter.api.base.*;
 import com.ericsson.pps.diameter.api.scap.*; 

  1. Start the Diameter stack and set up the static routes to different destinations. SCAPStack.useAsClient();
    DiameterConfig.setValue( "OwnDiameterURI", myURI );
    DiameterConfig.setValue( "OwnRealm", myRealm );
    DiameterConfig.setValue( "OwnProductName", "example client" );
    DiameterConfig.start();
    DiameterConfig.addStaticRoute(myDestinationRealm0, -1, -1, myDestinationHost0 , true );
    DiameterConfig.addStaticRoute(myDestinationRealm1, -1, -1, myDestinationHost1 , true );
  2. Create two SCAP charging requests. Request acr0 will be directed to myDestinationRealm0 and acr1 will be sent to myDestinationRealm1.
    SCAPAcr acr0 = new SCAPAcr( myMSISDN, SubscriptionId.END_USER_MSISDN );
    acr0.setDestinationRealm( myDestinationRealm0 );
           …….// set other configuration parameters of acr0
    SCAPAcr acr1 = new SCAPAcr( myMSISDN, SubscriptionId.END_USER_MSISDN );
    acr1.setDestinationRealm( myDestinationRealm1 );
    …….// set other configuration parameters of acr1
  3. Submit the requests.

    SCAPAca aca0= acr0. submit();
    SCAPAca aca1= acr1. submit();


E-mail this page icon Tell your friends    Send this page    Send this page    Send this page   Send this page   Send this page Printable version icon Printable version

Last published February 17, 2007
The latest poll
How much are you willing to pay for an app?
Not more than USD 1
Between USD 1 to 2
Between USD 2 to 5
Not more than USD 7
 
Opinion column
Personal thoughts and analysis on business and technology.