To install and run the an example Diameter service:
1 |
|
2 |
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:
|
4 |
Try commands for the installed service, as described in the following tables.
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
|
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
|
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
|
help
|
display available commands
|
udr
|
|
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
|
udr
|
send a `User-Data-Request `as an extension message with custom AVPs
|
help
|
display available commands
|
close
|
|
|
5 |
|
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.
|
|