Membership |
|
Get knowledge, support and experience in our free developer program. |
|
|
|
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.*; - 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 );
- 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
- Submit the requests.
SCAPAca aca0= acr0. submit(); SCAPAca aca1= acr1. submit();
Last published February 17, 2007
|
|
|
|
Opinion column
|
|
Personal thoughts and analysis on business and technology. |
|
|
|