Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: aasif.iqbal on April 19, 2013, 01:50:57 AM

Title: Composer - OPM Data Variable
Post by: aasif.iqbal on April 19, 2013, 01:50:57 AM
I'm working on GAX (in a multi-tenant  environment) and the new OPM Block in Composer v.8.1.201.72.

I'm having trouble assigning a GAX operational parameter to a variable in composer  - can’t get it to assign

in GAX i have got the following parameter configured:

Name: After Hours Phone Number
Key: destAfterHourDN
Type: String
Value: 5000

Can anyone please point me the right direction on how to assign the APM_OPM system variable. The default value is:
eval('('+session.connection.protocol.sip.requesturi['parameters']+')')

Also the correct syntax to assign  the above parameter value to a user variable in the OPM block.
Title: Re: Composer - OPM Data Variable
Post by: cavagnaro on April 19, 2013, 03:38:01 AM
What is GAX?
Title: Re: Composer - OPM Data Variable
Post by: Kubig on April 19, 2013, 04:33:03 AM
GAX is [b]G[/b]enesys [b]A[/b]dministrator E[b]x[/b]tension. More info you can see at Genesys sites...

I do not use GAX, but if I know right, the GAX fills the ListObject in config DB.Did you check if the ListObject wass filled correctly?
Title: Re: Composer - OPM Data Variable
Post by: aasif.iqbal on April 19, 2013, 05:12:05 AM
yes Kubig the Transaction list is sitting under /Configuration/transactions/ in config

List Name:9000
Item:OPM
Key:destAfterHourDN
Value:5000
Title: Re: Composer - OPM Data Variable
Post by: bublepaw on April 19, 2013, 09:22:48 AM
Hi,

Did You deploy correctly scxml script through GAX. It should have OPM section with two values inside Transaction and Transaction_dbid. Otherwise You have to use normal list lookup functions.
Title: Re: Composer - OPM Data Variable
Post by: aasif.iqbal on April 20, 2013, 12:52:25 AM
It's a voice application and the script is vxml and not scxml.

Title: Re: Composer - OPM Data Variable
Post by: bublepaw on April 20, 2013, 08:36:06 AM
Actually it is same - You still need to either deploy vxml profile through GAX - in such case GAX will create copy of profile object with CME with proper data or You need to do it manually by adding OPM section with same content in profile Annex tab
Title: Re: Composer - OPM Data Variable
Post by: aasif.iqbal on April 20, 2013, 08:46:43 AM
Actually when you create an OPM in GAX - it creates a list object in configuration under transactions. I have already mentioned that in my previous post, however my question is "how to assign  the operational parameter value to a user variable in the OPM block in Genesys Composer."

I'm looking for an example/code to show how to do that.
Title: Re: Composer - OPM Data Variable
Post by: bublepaw on April 21, 2013, 03:34:01 PM
Before You access anything through OPM block You need to follow instruction I gave You in previous post. Sample code to access anything from OPM in vxml code is following

some_variable = AppState.APP_OPM.key_name_of_gax_parameter
Title: Re: Composer - OPM Data Variable
Post by: aasif.iqbal on April 22, 2013, 07:22:24 AM
bublepaw thank you for your help.

As you said I have now deployed and associated my vxml IVR application with the parameter group in GAX but the value is still not being transferred.

when I debug the application - the variable disappears after I step over this line

<assign name="AppState.test1" expr="AppState.APP_OPM.destAfterHourDN" />

Also in entry block when I assign  APP_OPM the parameter group name as value it works but if I leave the default value as below

eval('('+session.connection.protocol.sip.requesturi['parameters']+')')

it gives me an error : exec_error Type Error:AppState.APP_OPM has no properties.

Not sure what value should i assign to APP_OPM data variable.
Title: Re: Composer - OPM Data Variable
Post by: smile on April 22, 2013, 08:22:51 AM
it look like you need to assign OPM values in IVR profile/RM config. but I didn't try to do it yet....
check does this feature is supported by your RM and take a look on this limitation:
Note: As of 01/01/12, RM currently does not support OPM parameters with key names in capital letters at a solution level.
Title: Re: Composer - OPM Data Variable
Post by: bublepaw on April 22, 2013, 03:21:02 PM
please check if in RM logs You can see following message sent from RM to MCP:

[b]INVITE sip:dialog@192.168.92.64:5070;gvp-tenant-id=[SIP].800800800;gvp.appmodule=VXML-NG;parameters=....[/b]

if You are missing  [b]parameters[/b] parameter it is something wrong with provisioning otherwise You have to look at MCP logs

Title: Re: Composer - OPM Data Variable
Post by: René on April 23, 2013, 04:51:31 PM
aasif.iqbal,

What version of Media Control Platform do you use?

R.
Title: Re: Composer - OPM Data Variable
Post by: aasif.iqbal on April 24, 2013, 12:34:01 AM
Hi Rene,

its 8.1.603.54.


Title: Re: Composer - OPM Data Variable
Post by: alex_sydney on July 22, 2015, 02:30:37 AM
Hello... any final resolution on this? Thanks  :)
Title: Re: Composer - OPM Data Variable
Post by: Kubig on July 22, 2015, 03:16:47 PM
Did you check MCP and RM logs?
Title: Re: Composer - OPM Data Variable
Post by: jerry_jeremiah on July 24, 2015, 03:30:05 AM
How I configured it so it would work is:

1. In GA or GAX: Create the voice platform profile for the vxml application
2. In GAX: Create the operational parameter (the key must NOT have capital letters or spaces)
3. In GAX: Create a parameter group template containing the operational parameter and the associated vxml application
4. In GAX: Deploy the parameter group template to create a parameter group. This step is the one that makes a new voice platform profile that contains the contents of the voice platform profile you created in Step 1 AND the OPM options section that contains the transaction and transaction_dbid KVPs
5. In Composer: add an OPM block to the call flow and in the assign OPM data section specify AppState.APP_OPM.X where X is the key from the parameter that you created in Step 2.
6. Make sure that the voice platform profile that is started is the one created in Step 4 because it is the one that has the OPM option values.  The actual data is transferred to the IVR when RM starts it.

To get a updated value of the OPM parameter during the call you can use a Web Request block to query http://urs-ip:urs-http-port/urs/console?config+transaction+1234= (were 1234 is the transaction dbid that you want to retrieve) and an assign block to munge the returned data into JSON.  in fact you could do that INSTEAD of using the OPM block in the callflow.
Title: Re: Composer - OPM Data Variable
Post by: GenXToken on January 04, 2017, 05:05:50 AM
[quote author=jerry_jeremiah link=topic=7772.msg40335#msg40335 date=1437708605]
How I configured it so it would work is:

1. In GA or GAX: Create the voice platform profile for the vxml application
2. In GAX: Create the operational parameter (the key must NOT have capital letters or spaces)
3. In GAX: Create a parameter group template containing the operational parameter and the associated vxml application
4. In GAX: Deploy the parameter group template to create a parameter group. This step is the one that makes a new voice platform profile that contains the contents of the voice platform profile you created in Step 1 AND the OPM options section that contains the transaction and transaction_dbid KVPs
5. In Composer: add an OPM block to the call flow and in the assign OPM data section specify AppState.APP_OPM.X where X is the key from the parameter that you created in Step 2.
6. Make sure that the voice platform profile that is started is the one created in Step 4 because it is the one that has the OPM option values.  The actual data is transferred to the IVR when RM starts it.

To get a updated value of the OPM parameter during the call you can use a Web Request block to query http://urs-ip:urs-http-port/urs/console?config+transaction+1234= (were 1234 is the transaction dbid that you want to retrieve) and an assign block to munge the returned data into JSON.  in fact you could do that INSTEAD of using the OPM block in the callflow.
[/quote]

So how do you have URS with HA?