Oracle Server E10293-02 Benutzerhandbuch

Seite von 108
Diameter Application Example
A-20
Oracle Communication and Mobility Server Developer’s Guide
Figure A–7
Routes and Listening Points Creation
6.
Create a listening Point from a LocalURI, an instance of DiameterListeningPoint, 
using the following method: myStack.createDiameterListeningPoint()
7.
Create a route configuration using the following method: 
myStack.createDiameterRoute() but it’s not mandatory for server process, if the 
isUnknownPeerAuthorized() callback is implemented in the listener. This call 
back is called if the Diameter stack receives a connection request from a peer that 
has not been declared in the routing table. The connection is accepted only if this 
method returns true.
Accounting Diameter message exchange
Once the initialization and configuration phase is over, the Accounting Diameter 
application is able to send and receive Diameter accounting messages (ACR/ACA).
Accounting-Request (ACR)  
The Accounting Request is created as follows:
Figure A–8
ACR Creation
8.
Get an instance of the DiameterRfMessageFactory class 
myDiameterRfMessageFactory using the following method: 
getDiameterRfMessageFactory() for the client side.
9.
Create an Accounting Request for the client side, an instance of the 
DiameterMessage class, using the following method: createAccountingRequest().
All incoming messages are delivered to the user accounting application through 
the DiameterRfListener interface. When accounting messages (ACR/ACA) are 
received by the client or server side, the corresponding call-back implemented by 
the programmer is called. For example, if an accounting Request (ACR) is 
received, the accountingRequestReceived() call-back is called. In all the other 
cases, the received messages are delivered through the 
myRfListener.processEvent() implemented by the accounting application 
programmer.