" /> Composer - OPM Data Variable - Genesys CTI User Forum

Author Topic: Composer - OPM Data Variable  (Read 14314 times)

Offline aasif.iqbal

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Composer - OPM Data Variable
« on: April 19, 2013, 01:50:57 AM »
Advertisement
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Composer - OPM Data Variable
« Reply #1 on: April 19, 2013, 03:38:01 AM »
What is GAX?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Composer - OPM Data Variable
« Reply #2 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?

Offline aasif.iqbal

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Composer - OPM Data Variable
« Reply #3 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

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Composer - OPM Data Variable
« Reply #4 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.

Offline aasif.iqbal

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Composer - OPM Data Variable
« Reply #5 on: April 20, 2013, 12:52:25 AM »
It's a voice application and the script is vxml and not scxml.


Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Composer - OPM Data Variable
« Reply #6 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

Offline aasif.iqbal

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Composer - OPM Data Variable
« Reply #7 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.

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Composer - OPM Data Variable
« Reply #8 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

Offline aasif.iqbal

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Composer - OPM Data Variable
« Reply #9 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.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Composer - OPM Data Variable
« Reply #10 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.
« Last Edit: April 22, 2013, 08:24:37 AM by smile »

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Composer - OPM Data Variable
« Reply #11 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

« Last Edit: April 22, 2013, 10:26:06 PM by bublepaw »

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Composer - OPM Data Variable
« Reply #12 on: April 23, 2013, 04:51:31 PM »
aasif.iqbal,

What version of Media Control Platform do you use?

R.

Offline aasif.iqbal

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Composer - OPM Data Variable
« Reply #13 on: April 24, 2013, 12:34:01 AM »
Hi Rene,

its 8.1.603.54.



Offline alex_sydney

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
Re: Composer - OPM Data Variable
« Reply #14 on: July 22, 2015, 02:30:37 AM »
Hello... any final resolution on this? Thanks  :)