" /> Mapping UserData failed from SIP Server to GVP - Genesys CTI User Forum

Author Topic: Mapping UserData failed from SIP Server to GVP  (Read 6285 times)

Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
Mapping UserData failed from SIP Server to GVP
« on: January 26, 2011, 01:45:33 PM »
Advertisement
Hi, friends,

When I tried to map userdata from SIP SERVER to GVP using interaction data block in callflow.
(I configured userdata-map-trans-prefix option for sipserver, and userdata-map-filter for voice over IP Service DN. My composer version is 8.0.001.87, gvp version is 8.0
)

there was an error message when the block interaction  of vxml application was executed,

12:43:27.312 Int 50034 6FC10099-10004197 event error.semantic:1|Array attribute in foreach is not a valid object

I think that's because I can't get session.com.genesyslab.userdata object from sip server, then mcp throw event error,  array attribute in foreach is not a valid object.

In sipserver log, there was user data  '__reason' 'exit' attached, after my own attached userdata  'lang' 'eng'



RequestUpdateUserData" received from 308 ("URS")
@13:18:33.1560 Call [007001a8cdfa1001]: urid 00040070
@13:18:33.1560 [0] 7.6.000.40 distribute_response: message EventAttachedDataChanged
AttributeEventSequenceNumber 000000000000002d
AttributeTimeinuSecs 156000
AttributeTimeinSecs 1234387113 (13:18:33)
AttributeReferenceID 195
AttributeThirdPartyDN '8051'
AttributeThisDNRole 2
AttributeThisDN '8051'
AttributeANI 'Customer'
AttributeDNIS '8051'
AttributeUserData [164] 00 04 00 00..
'GVP-Session-ID' '211BE2F2-AA8C-4960-6FA5-F57CD354C5B6;gvp.rm.datanodes=1;gvp.rm.tenant-id=HelloAudio_IVRProfile'
'lang' 'eng'
'__reason' 'exit'
'PegRejected' 1
AttributeCallUUID 'Q2FSVD7RHH12BBMK55OHE3TSA0000001'
AttributeConnID 007001a8cdfa1001
AttributeCallID 1
AttributeCallType 2


Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
Re: Mapping UserData failed from SIP Server to GVP
« Reply #1 on: January 26, 2011, 01:58:36 PM »
another question: is that ture when I get userdata from sipserver to gvp using interaction data , only lowercase key name is allowed?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Mapping UserData failed from SIP Server to GVP
« Reply #2 on: January 27, 2011, 09:10:11 AM »
Hi Kevin,

Please check following:

1/ User Data key-value pairs are mapped to INVITE message sent by SIP Server to Resource Manager (look at SIP Server log)
2/ Keys are passed by Resource Manager to MCP in INVITE message (look at MCP log)
3/ MCP is able to parse the data (look at MCP log - search for keyword "userdata")

[quote]another question: is that ture when I get userdata from sipserver to gvp using interaction data , only lowercase key name is allowed?[/quote]
No but MCP converts all User Data key names to lowercase so you must reflect this when developing an application.

R.

PS. I would recommend you to upgrade GVP to release 8.1 as GVP release 8.0 was intended mainly for field testing purposes.

Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
Re: Mapping UserData failed from SIP Server to GVP
« Reply #3 on: January 28, 2011, 03:03:27 PM »
Thank you very  much,  René.
I worked it out using lowercase variable in maincallflow for getting value from session variable using interaction data block, then using input datatype uppercase variable in subcallflow to put value using interaction data.
it's a little stupid and complicated, but at least I fixed it.