Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: PFCCWA on February 16, 2022, 10:56:11 PM

Title: Using OPM in IRD strategies
Post by: PFCCWA on February 16, 2022, 10:56:11 PM
Hello,

is it possible to use operational parameters (OPM) in ird routing strategies?
I have set up multiple parameters in gax :
[list]
[li]opening hours 9-5 per weekday of type=schedule[/li]
[li]opening hours 5-8 per weekday of type=schedule[/li]
[li]emergency message of type=boolean[/li]
[/list]

in ird i want to check both schedule objects to determine if current time is within the time defined with any of them based on current day. 
Prior to this i want the boolean type parameter to be checked and if equal = true, play announcement.
Before OPM i have used statistical days to do this and a normal transaction list to check for the emergency message.
With OPM if i deploy the parameter template, it does create a transaction list but trying to figure how to use it.
There is a OPM section containing the parameter names i have set up.
But also other section with OPM_<schedule_type_parameter>.  For these there is an section for each day each day=pattern1 and value =W//0/09:00-17:00 (for Sunday).

It might be easier to ask how i can set up opening times and boolean parameters and use in a ird routing startegy.

thanks.
Title: Re: Using OPM in IRD strategies
Post by: KebabPower on March 22, 2022, 12:19:19 PM
I believe you will have to use the GAX's API to get that working in IRD so it can connect to it as to just an external RESTful service. It is not really well documented, but it's not a rocket science as well - we had successfully once built a Spring-based client for it (for external management of OPMs).

Here are some of the endpoints so you can further research:

Get parameter templates: /gax/api/opm/pgts
Get parameters: /gax/api/opm/parameters
Login: /gax/api/session/login
Logout: /gax/api/session/logout