" /> GVP 8 - attached data not updated correctly - Genesys CTI User Forum

Author Topic: GVP 8 - attached data not updated correctly  (Read 20816 times)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #15 on: August 07, 2013, 01:15:48 PM »
Advertisement
As first, I did not use Composer ;-) And not use CTI connector, so I cannot use Interaction block for update. I updated data via "gvp:send" with namelist, it works, But all values are rewrited if the GVP app ends (in exit list are still old values)

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: GVP 8 - attached data not updated correctly
« Reply #16 on: August 07, 2013, 01:22:21 PM »
extremely cool ;)
well, my idea was in that gvp using application state variable which is mapped into userdata values. probably (imho) it's possible to change userdata value but doesn't change internal variable. It looks like you do it this way. try to change value of variable before you call gvp:send.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #17 on: August 07, 2013, 01:28:42 PM »
I have following "test" script:

[code]
<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xmlns:gvp="http://www.genesyslab.com/2006/vxml21-extension">
<form id="Welcome">
<block name="Hello">
<script>
var ServiceType ='default';
</script>
<audio src="prompts/brand.vox" />
<audio src="prompts/welcometogenesys.vox" />
<gvp:send namelist="ServiceType" />
<audio src="prompts/goodbye.vox" />
<exit namelist="ServiceType"/>
</block>

</form>
</vxml>

[/code]

From SIP to GVP is send KVP "ServiceType" with value "Helpdesk". GVP rewrites, via INFO SIP message, this value to "default". In exit tag is too send value "default", but list with "X-Genesys-" still contain old value, which rewrite my value from GVP.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: GVP 8 - attached data not updated correctly
« Reply #18 on: August 07, 2013, 08:31:01 PM »
Kubig, i can check your code in my lab tomorrow if this issue still actual for you.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #19 on: August 08, 2013, 07:09:47 AM »
It works now, my fall.. I have configured "userdata-map-trans-prefix" to "X-Genesys" value and than SIP server used the "old" values from BYE message. If I set this option to empty value, all worked fine.So, I remember, that in older version than 8.1.7 were sometimes problem if this option was empty or not configured properly. Thanks for your effort and help, smile ..

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: GVP 8 - attached data not updated correctly
« Reply #20 on: August 09, 2013, 08:04:47 PM »
Hi Kubig,

If you set "userdata-map-trans-prefix" to empty value then you lost possibility to pass any User Data to GVP (SIP -> GVP direction).

Correct solution is not updating User Data key(s) passed to GVP from routing but attaching new key(s). Reason for this is missing possibility to update User Data when using CTI via SIP Server.

R.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #21 on: August 13, 2013, 04:32:16 AM »
Hi René,

you are partly right, but I can say that all works fine with GVP8.1.7 without userdata-map-trans-prefix :-) I know that older version muset be configured with this option on SIP server side and as I understand the comments above, update KVP from GVP without CTI is possible.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #22 on: August 13, 2013, 02:51:53 PM »
On my test env (GVP 8.1.7 and SIP 8.1.1) update works as follow:

- With configured userdata-map-trans-prefix to any string (def. X-Genesys-)
[list]
[li]Add attached data from vxml app is possible[/li]
[li]Update is partly possible - until the vxml app ends. At the end, is INFO message send with output values like a reason, configured attached data in namelist parameter, etc. BUT, these attach data are not updated,but "only" added. During the run of vxml application update works fine, but the end rewrite it[/li]
[/list]
[code]
16:32:18.560: SIPTR: Received [0,UDP] 1413 bytes from 192.168.152.128:5160 <<<<<
INFO sip:6200@192.168.152.128:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.152.128:5160;branch=z9hG4bK00000000116A64A00a4372abcdef09
Via: SIP/2.0/UDP 192.168.152.128:5070;branch=z9hG4bK000000001CB083F00a4372
From: <sip:MediaServer@192.168.152.128:5060>;tag=0981799B-0806-4F90-679A-4EDC851DE4C9
To: "6200" <sip:6200@192.168.152.128>;tag=794DD231-276F-4589-BBC5-DE7CCE8AE5C8-1135
Max-Forwards: 69
CSeq: 5 INFO
Call-ID: E521A842-0830-45DA-AECD-D909F97CA8FA-1132@192.168.152.128
Content-Length: 310
Content-Type: application/vnd.radisys.msml+xml
X-Genesys-GVP-Session-ID: 33367761-DE23-4645-39BD-6951C95E7683;gvp.rm.datanodes=2;gvp.rm.tenant-id=101_OCS_Profile
X-Genesys-UD1: UD1DefaultValue
X-Genesys-UD2: UD2DefaultValue
X-Genesys-IW_OverrideOptions: ROUTING_PARAMS
X-Genesys-MediaType: voice
X-Genesys-Language: Czech
X-Genesys-ServiceType: Helpdesk
X-Genesys-Product: Service
User-Agent: X-Lite release 4.5.3  stamp 70569
Min-SE: 90
X-Genesys-GVP-Session-Data: callsession=33367761-DE23-4645-39BD-6951C95E7683;2;0;sip:192.168.152.128:5060;;;Resources;OCS_Profile;
Supported: timer, uui

<?xml version="1.0" encoding="UTF-8"?>
<msml version="1.1">
<event name="msml.dialog.exit" id="conn:0981799B-0806-4F90-679A-4EDC851DE4C9/dialog:ivr_application">
<name>UD1</name>
<value>4th value</value>
<name>UD2</name>
<value>UD2DefaultValue</value>
<name>__reason</name>
<value>exit</value>
</event>
</msml>
@16:32:18.5600 [0] 8.1.100.81 distribute_event: message EventAttachedDataChanged
AttributeEventSequenceNumber 0000000000000068
AttributeTimeinuSecs 560000
AttributeTimeinSecs 1376404338 (16:32:18)
AttributeThirdPartyDN '5502'
AttributeThisDNRole 2
AttributeThisDN '5502'
AttributeANI '6200'
AttributeDNIS '5502'
AttributeUserData [487] 00 0e 00 00..
'FirstName' 'Alfa'
'LastName' 'Beta'
'GVP-Session-ID' '33367761-DE23-4645-39BD-6951C95E7683;gvp.rm.datanodes=2;gvp.rm.tenant-id=101_OCS_Profile'
'UD1' 'UD1DefaultValue'
'UD2' 'UD2DefaultValue'
'IW_OverrideOptions' 'ROUTING_PARAMS'
'MediaType' 'voice'
'Language' 'Czech'
'ServiceType' 'Helpdesk'
'Product' 'Service'
'GVP-Session-Data' 'callsession=33367761-DE23-4645-39BD-6951C95E7683;2;0;sip:192.168.152.128:5060;;;Resources;OCS_Profile;'
'UD1' '4th value'
'UD2' 'UD2DefaultValue'
'__reason' 'exit'
AttributeCallUUID 'Q4M2P2G1T50CT4BKG5SQEALJG4000003'
AttributeConnID 007002303e14f003
AttributeCallID 3
AttributePropagatedCallType 2
AttributeCallType 2
[/code]

- With configured userdata-map-trans-prefix to empty value
[list]
[li]Add attached data from vxml app is possible[/li]
[li]Update attached data is possible. At the end the attached data are not rewrited[/li]
[/list]
[code]Via: SIP/2.0/UDP 192.168.152.128:5070;branch=z9hG4bK000000001CC7EFD00a46a2
From: <sip:MediaServer@192.168.152.128:5060>;tag=D3F60031-588D-4433-69B5-159A4B207323
To: "6200" <sip:6200@192.168.152.128>;tag=794DD231-276F-4589-BBC5-DE7CCE8AE5C8-1662
Max-Forwards: 69
CSeq: 5 INFO
Call-ID: E521A842-0830-45DA-AECD-D909F97CA8FA-1655@192.168.152.128
Content-Length: 295
Content-Type: application/vnd.radisys.msml+xml
X-Genesys-GVP-Session-ID: 2F70E6CC-6149-4581-52BB-9A4FD2EFD59C;gvp.rm.datanodes=2;gvp.rm.tenant-id=101_OCS_Profile
UD1: UD1DefaultValue
UD2: UD2DefaultValue
IW_OverrideOptions: ROUTING_PARAMS
MediaType: voice
Language: Czech
ServiceType: Helpdesk
Product: Service
User-Agent: X-Lite release 4.5.3  stamp 70569
Min-SE: 90
X-Genesys-GVP-Session-Data: callsession=2F70E6CC-6149-4581-52BB-9A4FD2EFD59C;2;0;sip:192.168.152.128:5060;;;Resources;OCS_Profile;
Supported: timer, uui

<?xml version="1.0" encoding="UTF-8"?>
<msml version="1.1">
<event name="msml.dialog.exit" id="conn:D3F60031-588D-4433-69B5-159A4B207323/dialog:ivr_application">
<name>UD1</name>
<value>4th value</value>
<name>UD2</name>
<value></value>
<name>__reason</name>
<value>exit</value>
</event>
</msml>
@16:45:54.4200 [0] 8.1.100.81 distribute_event: message EventAttachedDataChanged
AttributeEventSequenceNumber 0000000000000089
AttributeTimeinuSecs 420000
AttributeTimeinSecs 1376405154 (16:45:54)
AttributeThirdPartyDN '5502'
AttributeThisDNRole 2
AttributeThisDN '5502'
AttributeANI '6200'
AttributeDNIS '5502'
AttributeUserData [205] 00 0a 00 00..
'IW_OverrideOptions' 'ROUTING_PARAMS'
'MediaType' 'voice'
'Language' 'Czech'
'ServiceType' 'Helpdesk'
'Product' 'Service'
'FirstName' 'Alfa'
'LastName' 'Beta'
'UD2' 'undefined'
'UD1' '4th value'
'__reason' 'exit'
AttributeCallUUID 'Q4M2P2G1T50CT4BKG5SQEALJG4000007'
AttributeConnID 007002303e14f007
AttributeCallID 7
AttributePropagatedCallType 2
AttributeCallType 2
[/code]

Any help will be appreciated.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: GVP 8 - attached data not updated correctly
« Reply #23 on: August 13, 2013, 09:05:40 PM »
Hi Kubig,

Please add User Data keys that were updated by GVP app to Return Values parameter on Exit block.

R.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #24 on: August 14, 2013, 04:13:19 AM »
Hi René,

vxml app has returned values to update on exit block in both examples. From my point of view it seems like SIP server does not map KVP without configured prefix and MCP does not add to custom value any prefix, which can be matched. I do not know if the behavior is only for latest version of GVP, because I have received information from colleague, that in older version it works as expected (ie. with X-Genesys- prefix configured). So, I am little bit confused :-)

--K--

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #25 on: August 30, 2013, 10:32:01 AM »
Nobody knows or has same experience? :-(

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: GVP 8 - attached data not updated correctly
« Reply #26 on: August 30, 2013, 01:30:27 PM »
Kubig, if this issue still actual for you i'm planing to upgrade mcp to latest version on lab at next week. And then will able to test your scenario. It looks like feature/bug in 8.1.7, now i have 8.1.5 and can test on it if you like.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #27 on: August 30, 2013, 02:03:38 PM »
It is not "critical" for me, I am just testing new version of Genesys components on my lab env. So it is not related to real-life needs or issue. But for wonder, I would like to know how it works and if it is standard designed behavior. My colleague test it on his lab with GVP 8.1.4 and SIP 8.1.0, and it works. This makes me a little confused. According to my test, it seems like strange behavior of SIP, not GVP. But I am not sure of course.

Offline ova

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: GVP 8 - attached data not updated correctly
« Reply #28 on: September 19, 2013, 02:51:53 PM »
I had a similar issue while testing MSML on GVP 8.1.5 in an URS-centric setup (no cti connector). In fact, it worked as designed.
When SIP Server initiates the INVITE msml to GVP it uses x-Headers ‘X-Genesys-<YourKey>: <Value1>’ (if you have the option "userdata-map-trans-prefix" set to X-Genesys-)
From this moment GVP will always add these x-headers in all responses.

As you are using msml, SIP Server sends INFO <dialogstart> to GVP and info is passed in the message body

<?xml version="1.0" encoding="UTF-8"?>
<msml version="1.1">
<gvp:param name="X-Genesys-<YourKey>">Value1</gvp:param>

on the (all) response you will always see the X-headers
<gvp:param name="X-Genesys-<YourKey>">Value1</gvp:param>

Then GVP can send INFO with several keys in body ( message will also contains all the X-headers) ... and if there are no user data in body of INFO then SIP Server will take the values from x-headers which contains old values.
If your are using NETANN then you don't have this problematic.

So you can
- adjust your vxml application that it send in INFO  body all the keys you want to see updated (for all subsequent INFO messages).
- adapt the exit of your vxml app so that on the BYE you will have X-headers with the updated values.
- Maybe play around with the options  copyxgenesysheaders to filter user data (?)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: GVP 8 - attached data not updated correctly
« Reply #29 on: September 25, 2013, 12:37:37 PM »
Thanks for your input and hints, but you are just partly right. The main problem/issue is in different behavior between version and I am little bit confused what is the properly behavior of it.