Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: aptklassen on August 12, 2020, 02:53:43 PM
-
It looks like there is a possible replacement to the requestregisterall feature that was removed.
I am wondering if anyone has successfully used it? I can't find much in the documentation.
I was wondering if you have had scale issues in large deployments.
Also the API reference there is a short example usage but not much description.
For example, will newly created DNs be registered automatically as well or do you need
to call this method periodically?
There is no deregister so I assume any necessary cleanup is done internally if a DN is removed.
The example shows the use of a keycollection: Are those values ABC, QWE deployment specific or
are these the right values in all cases?
KeyValueCollection udataFilter = new KeyValueCollection();
udataFilter.addString("key-1", "ABC");
udataFilter.addString("key-2", "QWE");
Thanks for any help.
Andrew
-
From where did you get that API method?
-
I don't know if it is in earlier versions but it is in the 9.x SDK.
Platform SDK Java 9.0 API Reference
The definition is in:
com.genesyslab.platform.voice.protocol.tserver.TServerPrivateServices
-
Is there anyway to get in touch with someone that might now more about this?
Thanks
-
Open a ticket with Genesys would be the best way
Enviado de meu SM-N9600 usando o Tapatalk
-
Hi Andrew,
You are in the best place to get an answer. @Rene or anybody else in SDK product management care to offer some input? Historically there are plenty of other threads here on a similar topic.
Regards
Craig
-
RequestRegisterAll is obsolete function which was part of VoiceSDK 7.6 which is quite old and EOL (EOS also). I think that currently there is no way how to register all DNs at once request as you have to register them one by one.
I also do not think that the RequestPrivateService has nothing to do with such task.
-
Thanks for the replies.
I do realize RequestRegisterAll is obsolete. You can't reference it when you build against the 9.0 SDK.
It looks like this method is in 8.1.4 so it has been available for some time now. Here is the paste of the text from the java index entry in the api reference.
createRequestRegisterAllKnownDNs(String, KeyValueCollection, EventMask) - Static method in class com.genesyslab.platform.voice.protocol.tserver.TServerPrivateServices
Request for the Private Service for the bulk DN registration feature
It is defined in this class:
com.genesyslab.platform.voice.protocol.tserver
Class TServerPrivateServices
-
It does not seem this method is for bulk register as one of the input parameter is "thisDN"
-
Thanks again for looking at this.
The example shows thisDn as "". I think I am not setting the KeyValueCollection correctly. I am not sure what it should be.
I just followed the example which is probably not right.
Here is the paste from the 9.0 api reference.
"Request for the Private Service for the bulk DN registration feature. It queries SIP Server to register for all known DNs on TController.
Usage sample:
// 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 and use the request:
Message resp = protocol.request(
TServerPrivateServices.createRequestRegisterAllKnownDNs(
thisDn, udataFilter, eventMask));
// Result analysis:
if (resp instanceof EventACK) {
// the request executed ok...
} else if (resp instanceof EventError) {
// the request execution failed...
}
"