public static interface TServerPrivateServices.TServerPrivateServiceMessages
Modifier and Type | Field | Description |
---|---|---|
static int |
EventClusterDNStatus |
Event from SIPServer about DN status after successful
registration with
RequestRegisterAllKnownDNs . |
static int |
EventEndOfSnapshot |
Server sends
EventPrivateInfo (PrivateMsgId = EventEndOfSnapshot )
after last EventPrivateInfo (PrivateMsgId = EventClusterDNStatus )
to indicate end of the snapshot transmission. |
static int |
RequestChangeUserDataFilter |
Changes User data filter for client.
|
static int |
RequestRegisterAllKnownDNs |
Service ID for the bulk DN registration feature.
|
static final int RequestRegisterAllKnownDNs
// Prepare request parameters:
String thisDn = "";
KeyValueCollection udataFilter = new KeyValueCollection();
udataFilter.addString("key-1", "ABC");
udataFilter.addString("key-2", "QWE");
EventMask eventMask = new EventMask();
eventMask.setAll();
// Create the request:
RequestPrivateService rqPrvSr =
TServerPrivateServices.createRequestRegisterAllKnownDNs(
thisDn, udataFilter, eventMask);
// Use the request:
Message resp = protocol.request(rqPrvSr);
// Result analysis:
if (resp instanceof EventACK) {
// the request executed ok...
} else if (resp instanceof EventError) {
// the request execution failed...
}
Server successful response is presented with
EventACK
.
Then server may send
EventPrivateInfo
[PrivateMsgID=<this-id>] for each of the subscribed DNs.static final int EventClusterDNStatus
RequestRegisterAllKnownDNs
.
Server sends EventPrivateInfo
(PrivateMsgId = EventEndOfSnapshot
)
after last EventClusterDNStatus
to indicate end of the snapshot transmission.static final int EventEndOfSnapshot
EventPrivateInfo
(PrivateMsgId = EventEndOfSnapshot
)
after last EventPrivateInfo
(PrivateMsgId = EventClusterDNStatus
)
to indicate end of the snapshot transmission.static final int RequestChangeUserDataFilter
// Prepare request parameters:
String thisDn = "";
KeyValueCollection udataFilter = new KeyValueCollection();
udataFilter.addString("key-1", "ABC");
udataFilter.addString("key-2", "QWE");
// Create the request:
RequestPrivateService rqPrvSr =
TServerPrivateServices.createRequestChangeUserDataFilter(
thisDn, udataFilter);
// Use the request:
Message resp = protocol.request(rqPrvSr);
// Result analysis:
if (resp instanceof EventACK) {
// the request executed ok...
} else if (resp instanceof EventError) {
// the request execution failed...
}
Server successful response is presented with
EventACK
.Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.