" /> Accessing UCID sent from Avaya CMS in Composer Callflow - Genesys CTI User Forum

Author Topic: Accessing UCID sent from Avaya CMS in Composer Callflow  (Read 14635 times)

Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Accessing UCID sent from Avaya CMS in Composer Callflow
« on: July 09, 2015, 05:35:07 AM »
Advertisement
Hi All,

Can someone please point me to any documentation on how I can access the Unique call ID generated by Avaya CMS in Composer Call flow? I have come across documentations for accessing the UCID in an URS-Centric environment. But I am on an IVR-centric environment.

Please let me know if you need more information.

Thanks

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #1 on: July 09, 2015, 08:12:32 AM »
The access to the attached data should be still same as well for IVR centric mode. You can acces them through the SIP headers, if it is configured of course. In other hand, if you are using CTIC, you can access the attached data directly through the T-Lib.

Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #2 on: July 09, 2015, 10:41:59 AM »
Kubig,
Thanks for quick response.

I have changed following options in SIP server configuration however I am not sure how to access the UCID received in SIP header in vxml flie.

userdata-map = "*"
userdata-format = "SIP Headers"
userdata-map-trans-prefix = "X-Genesys-"

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #3 on: July 09, 2015, 10:53:26 AM »
Where did you get these option?:

- userdata-map
- userdata-format

they do not exist.

Just configure your VoIP to allow map requested attach data from T-Lib to the SIP headers with configured prefix (by option "userdata-map-trans-prefix") by option "userdata-map-filter". All is described within docs in great detail. So, follow the docs.

Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #4 on: July 10, 2015, 07:33:41 AM »
That's a typo.. I configured the following option under TServer section of SIP Applciation Object.
userdata-map-filter = "*"
userdata-map-format = "sip-headers"
userdata-map-trans-prefix = "X-Genesys-"

I am a pure ivr callflow developer and don't have much experience with making the configuration changes. I am referring to the "Mapping SIP Headers and SDP Messages" section of SIP deployment guide. Please let me know if I am looking at the correct place. If not, please direct me to the right place to look at.

Thanks

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #5 on: July 10, 2015, 07:43:02 AM »
userdata-map-filter has to be configured on DN level (VoIP service)
userdata-map-format can be unchanged (with default value - it is "sip-header" and not "sip-headers"
userdata-map-trans-prefix has to be configured on SIP server object within TServer section

Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #6 on: July 17, 2015, 05:34:02 AM »
Hi Kubig,

I have done the configuration changes as you suggested. However in the SIP server log I am not able to see the UUI data(user-to-user field) prefixed with X-Genesys-. Please find the SIP server log below.

3:15:31.217: $+NET:SIP::0:0
23:15:31.217: SIPTR: Received [0,UDP] 1316 bytes from <<ip>:5080 <<<<<
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP <<ip>:5060;branch=z9hG4bKFB90000C-AEF2-4EFA-80CB-946E0BC2D3B3-1
From: sip:0@ntrs.com;tag=7A0CBCA9-9CAA-4EF5-BF09-F529B48FA07C-2
To: <sip:1999222@<<ip>>:5060>;tag=4846CA22-3C51-4253-B8B5-769C78946D6C
CSeq: 1 INVITE
Call-ID: EE64CE0A-134C-4AC8-B500-75FB4CB54820-1@<<ip>
Contact: sip:Genesys@<<ip>>:5070
Content-Length: 0
Record-Route: <sip:000000000BCFEB10@<<ip>>:5080;lr;gvp.rm.datanodes=1;idtag=00000001>
User-to-User: 00F7020000F50F47656E657379732053495420546573F40482978F9E;encoding=hex
P-AV-Message-Id: 2_1
Max-Breadth: 60
P-Charging-Vector: icid-value="AAS:10926-b318e8001e53647905545bafd87"
Alert-Info: <cid:external@ntrs.com>;avaya-cm-alert-type=external
User-Agent: Avaya CM/R016x.02.0.823.0 AVAYA-SM-6.3.10.0.631008
Av-Global-Session-ID: 760fa410-2c3a-11e5-91b1-d89d6764a284
P-Location: SM;origlocname="CB5_CM";origsiglocname="CB5_CM";origmedialocname="CB5_CM";termlocname="Genesys_SIT";termsiglocname="Genesys_SIT";smaccounting="true"
X-ISCC-CofId: location=sipswitch_S;cofid=2
Min-SE: 90
X-Genesys-GVP-Session-Data: callsession=3844EA62-11F3-4089-DEB7-4083EEC27968;1;0;;;;Resources;<<IVR_Profile>>;
X-Genesys-GVP-Session-ID: 3844EA62-11F3-4089-DEB7-4083EEC27968;gvp.rm.datanodes=1;gvp.rm.tenant-id=101_<<IVR_Profile>>

Please suggest me what could be the problem.

Thanks in advance
Dhiya

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #7 on: July 17, 2015, 06:47:54 AM »
Is your strategy on SIP Server attaching it?

Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #8 on: July 17, 2015, 06:56:48 AM »
Are you asking about the user-to-user data. If so, it comes from Avaya CMS to SIP.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #9 on: July 17, 2015, 07:42:16 AM »
Set the SIP server to map this field (user-to-user) from INVITE SIP message to the T-Lib by creating new section on SIP server application called "INVITE" and within it create new option "userdata-1" with value "User-to-User".

Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #10 on: July 17, 2015, 09:09:06 AM »
Hi Kubig,

Thanks, I already had this option configured in the SIP server application object. But there was a typo instead of configuring 'User-to-User' I configured 'user-to-user'. I have now corrected it.

I am able to see this User-to-User data in the MCP log and I am trying to access it in IVR callflow using Interaction Data block in ucid user variable. But it gives me the following error in the MCP log.

2015-07-17T03:56:51.050 Int 50034 0073015A-100091B6 6644 event error.com.genesyslab.composer.invalidkey:1|Missing InteractionData key 'ucid'

Please advice.

Thanks
Dhiya

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #11 on: July 17, 2015, 10:44:40 AM »
Can you show MCP log snippet?

Enviado de meu C6602 usando Tapatalk


Offline dhiya

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #12 on: July 17, 2015, 11:13:46 AM »
Hi Cavagnaro,

Please find the MCP log.

From: sip:0@xxxx.com;tag=7A0CBCA9-9CAA-4EF5-BF09-F529B48FA07C-6
To: <sip:1999222@<<ip>>:5060>;tag=6AEFDAC0-9592-4712-319A-75A5B590A008
CSeq: 1 INVITE
Call-ID: EE64CE0A-134C-4AC8-B500-75FB4CB54820-3@<<ip>>
Contact: sip:Genesys@<<ip>>:5070
Content-Length: 236
Content-Type: application/sdp
Record-Route: <sip:000000000BCFEB10@<<ip>>:5080;transport=TCP;lr;gvp.rm.datanodes=1;idtag=00000003>
User-to-User: 00F7020000F50F47656E657379732053495420546573F4048285AAA1;encoding=hex
P-AV-Message-Id: 2_1
Max-Breadth: 60
P-Charging-Vector: icid-value="AAS:12763-c5ae14801e5367d90554b6efd87"
Alert-Info: <cid:external@xxxx.com>;avaya-cm-alert-type=external
User-Agent: Avaya CM/R016x.02.0.823.0 AVAYA-SM-6.3.10.0.631008
Av-Global-Session-ID: 8805f800-2c70-11e5-91b1-d89d6764a284
P-Location: SM;origlocname="CB5_CM";origsiglocname="CB5_CM";origmedialocname="CB5_CM";termlocname="Genesys_SIT";termsiglocname="Genesys_SIT";smaccounting="true"
X-ISCC-CofId: location=sipswitch_S;cofid=6
Min-SE: 90
X-Genesys-GVP-Session-Data: callsession=68A73F4D-6C26-4B5B-509C-17A10C5DFBFD;1;0;;;;Resources;<<IVR_Profile>>;
X-Genesys-GVP-Session-ID: 68A73F4D-6C26-4B5B-509C-17A10C5DFBFD;gvp.rm.datanodes=1;gvp.rm.tenant-id=101_<<IVR_Profile>>
Session-Expires: 1800;refresher=uac
Require: timer



Callflow Debug Log in MCP:


2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:585 EvaluateCond(): Result was 'true'
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:77 RuntimeFactory(): Called for [SimplePrompt] at line [109]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 08500000 SessionConfiguration.C:112 SessConfig::GetValue - Param=[vxmli.conformance.strict_tts_mode]; Value=[FALSE]; [Global]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 SimplePromptRuntime.cxx:33 Execute() Started
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:77 RuntimeFactory(): Called for [If] at line [109]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 IfRuntime.cxx:59 Execute() Started, event type: -1
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:560 EvaluateCond(): Condition [getUserDataVariable('ucid') != undefined]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:585 EvaluateCond(): Result was 'false'
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:560 EvaluateCond(): Condition [true]
2015-07-17 05:42:33.638 DBUG 00000000-00000000 5088 0A000000 Call.cpp:406 processMetric(): got metric eval_cond, ts 2015-07-17/05:42:33
2015-07-17 05:42:33.638 DBUG 00000000-00000000 5088 0A000000 Call.cpp:406 processMetric(): got metric eval_cond, ts 2015-07-17/05:42:33
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:585 EvaluateCond(): Result was 'true'
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:77 RuntimeFactory(): Called for [SimplePrompt] at line [112]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 08500000 SessionConfiguration.C:112 SessConfig::GetValue - Param=[vxmli.conformance.strict_tts_mode]; Value=[FALSE]; [Global]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 SimplePromptRuntime.cxx:33 Execute() Started
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:77 RuntimeFactory(): Called for [Throw] at line [112]
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 ThrowRuntime.cxx:38 Execute() Started, event type: -1
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 08500000 SessionConfiguration.C:112 SessConfig::GetValue - Param=[vxmli.maintainer.log_message.on_error]; Value=[TRUE]; [Global]
2015-07-17T05:42:33.638 Int 50034 0073015A-100091B7 6480 event error.com.genesyslab.composer.invalidkey:1|Missing InteractionData key 'ucid'
2015-07-17 05:42:33.638 DBUG 00000000-00000000 5088 0A000000 Call.cpp:406 processMetric(): got metric eval_cond, ts 2015-07-17/05:42:33
2015-07-17 05:42:33.638 DBUG 00000000-00000000 5088 0A000000 Call.cpp:406 processMetric(): got metric event, ts 2015-07-17/05:42:33
2015-07-17T05:42:33.638 Int 50080 0073015A-100091B7 6480 event_handler_enter :error .|http://<<ip>>:8090/JavaComposerProject6/src-gen/Main.vxml
2015-07-17 05:42:33.638 DBUG 00000000-00000000 5088 0A000000 Call.cpp:406 processMetric(): got metric event_handler_enter, ts 2015-07-17/05:42:33
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 CatchRuntime.cxx:131 Execute() Started, event type: -1
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 CatchRuntime.cxx:148 Execute(): Started
2015-07-17 05:42:33.638 DBUG 0073015A-100091B7 6480 0C000000 Runtime.cxx:77 RuntimeFactory(): Called for [SimplePrompt] at line [301]

Thanks
Dhiya

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #13 on: July 17, 2015, 11:40:15 AM »
Do you see that the "user-to-user" field has been attached to the T-Lib message? If yes, check your VoIP service on option "userdata-map-filter" - there should be list of KVP which will pass to the GVP or you can use "*" for all KVP (not recommended in large env). All pointed that this part of configuration is missing or there is an error. In other hand, you are able to get any part of SIP header from sip session variables array - follow the documentation.
« Last Edit: July 17, 2015, 11:42:06 AM by Kubig »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Accessing UCID sent from Avaya CMS in Composer Callflow
« Reply #14 on: July 17, 2015, 11:43:43 AM »
If Data is called User-to-User, why you try to grab it by ucid?? Should be also User-to-User