Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: kevinwang on January 26, 2011, 01:45:33 PM
-
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
-
another question: is that ture when I get userdata from sipserver to gvp using interaction data , only lowercase key name is allowed?
-
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.
-
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.