To install and run the an example Diameter service:

1

2

Install the service:

$ cd examples
$ ant

A message displays in the simulator log output when the resource adaptor connects to it.

3

Connect to the example resource adaptor listening on port 9999 using the telnet utility:

telnet localhost 9999

4

Try commands for the installed service, as described in the following tables.

Diameter CCA

init

send CCR messages with CC-Request-Type = INITIAL_REQUEST

up

send CCR messages with CC-Request-Type = UPDATE_REQUEST

term

send CCR messages with CC-Request-Type = TERMINATION_REQUEST

event DD

send CCR with CC-Request-Type = EVENT_REQUEST and Requested-Action = DIRECT_DEBITING

event RA

send CCR with CC-Request-Type = EVENT_REQUEST and Requested-Action = REFUND_ACCOUNT

event CB

send CCR with CC-Request-Type = EVENT_REQUEST and Requested-Action = CHECK_BALANCE

event PE

send CCR with CC-Request-Type = EVENT_REQUEST and Requested-Action = PRICE_ENQUIRY

Diameter Ro

init

send CCR messages with CC-Request-Type = INITIAL_REQUEST

up

send CCR messages with CC-Request-Type = UPDATE_REQUEST

term

send CCR messages with CC-Request-Type = TERMINATION_REQUEST

Diameter Base (Accounting)

start

send ACR with Accounting-Record-Type = START_RECORD

interim

send ACR with Accounting-Record-Type = INTERIM_RECORD

stop

send ACR with Accounting-Record-Type = STOP_RECORD

event

send ACR with Accounting-Record-Type = EVENT_RECORD

Diameter Rf

start

send ACR with Accounting-Record-Type = START_RECORD

interim

send ACR with Accounting-Record-Type = INTERIM_RECORD

stop

send ACR with Accounting-Record-Type = STOP_RECORD

event

send ACR with Accounting-Record-Type = EVENT_RECORD

sync

synchronously send ACR with Accounting-Record-Type = EVENT_RECORD

Diameter Sh

help

display available commands

udr

send a User-Data-Request

snrs1

send a Subscribe-Notifications-Request (SubsReqType=SUBSCRIBE) on a new ShClientSubscriptionActivity

snru1

send a Subscribe-Notifications-Request (SubsReqType=UNSUBSCRIBE) on an existing ShClientSubscriptionActivity

snrs2

send a Subscribe-Notifications-Request (SubsReqType=SUBSCRIBE) on a ShClientActivity

snru2

send a Subscribe-Notifications-Request (SubsReqType=UNSUBSCRIBE) on a ShClientActivity

pur

send a Profile-Update-Request

Diameter Base Extension

udr

send a `User-Data-Request `as an extension message with custom AVPs

All

help

display available commands

close

close the connection

5

Undeploy the example:

ant undeploy
Warning Each example should be undeployed before a new one is deployed. If not, the example events will be received by multiple services resulting in unpredictable behaviour.
Previous page Next page