" /> send data between applications - Genesys CTI User Forum

Author Topic: send data between applications  (Read 5424 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
send data between applications
« on: September 12, 2013, 03:15:14 PM »
Advertisement
Hello,

I'm trying to send some data between 2 vxml applications. For this I put my string in the aai option of the transfer block and in the other application I trying to read it using session.connection.aai but all I get is blank.
Is there anything else I have to configure? This is a purely SIP environment with latest version of MCP 8.1.7

Thank you,
Mihai

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: send data between applications
« Reply #1 on: September 12, 2013, 04:20:15 PM »
Do you mean two vxml scripts/application or DID with vxml application? For data-exchange between vxml you have to use standard mechanism and methods from VXML specification (IETF), for data-exchange between two DID, via KVP, use namelist in exit or transfer block. All is described in doc for GVP of course. So, try the doc first.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: send data between applications
« Reply #2 on: September 12, 2013, 10:10:10 PM »
I am using standard mechanism but it's not working..
in the transfer block I'm setting aai="mystring" but in the other vxml when trying to access the data using session.connection.aai I get a blank value so I'm guessing that maybe there is something else to set in MCP options.. for example I don't see session.connection.aai in the session_vars option from vxmli section. Should it be there to work?
Also in the 8.1.6 RN for MCP there is this line: AAI Masking During Transfers. No other detail.. what does this mean? Is it interfering with aai data transfer?

Thank you,
Mihai

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: send data between applications
« Reply #3 on: September 13, 2013, 06:38:32 AM »
I still do not know why you are using AAI for this. Try to look at and use GVP namespace with method/attribute gvp:namelist or gvp:userdata for passing user-data via SIP headers

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: send data between applications
« Reply #4 on: September 13, 2013, 08:32:31 AM »
I have tried gvp:namelist and still nothing on the other side...
What I'm doing is trying a play a marketing message to the B-Party before completing the call, you know "this service is offered to you by..."
so in the CC.vxml transfer block I use gvp:consultexpr="'cparty.vxml". This way the cparty.vxml is played to the B-Party but I need to know the language in which to play the message.
Here is my transfer:

<transfer name="Transfer_consultation_referjoin_30Call" type="consultation" destexpr="AppState.scf_destination" connecttimeout="30s" aai="AppState.cparty" gvp:method="referjoin"
    gvp:analysis="false" gvp:connectwhen="answered" gvp:signalvar="callVars" transferaudio="file:.../music_CC_30sec.wav" gvp:consultexpr="'cparty.vxml'" gvp:namelist="AppState.cparty">

As you can see I used aai, gvp:namelist.. I even tried aaiexpr but nothing gets trough.. when I try to read the data in cparty.vxml it's always blank.

Thanks,
Mihai

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: send data between applications
« Reply #5 on: September 13, 2013, 08:59:26 AM »
And how you read the data within second app? I still think that you do not understand clearly how GVP works in general and mix different thing together. I recommend read the documentation first.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: send data between applications
« Reply #6 on: September 13, 2013, 03:11:41 PM »
Jummm can you help him clarify his ideas? I have no clue how to do that but seems he is trying hard at least...

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: send data between applications
« Reply #7 on: September 16, 2013, 05:09:01 PM »
Hi vma,

Have you tried passing data as part of the URL stored in scf_destination variable (http://.../hello.vxml?key=value)?

R.

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: send data between applications
« Reply #8 on: September 20, 2013, 12:35:43 PM »
I managed to get this working. Case is closed.
Thanks very much Kubig you've been very helpful :P

By the way, I used gvp:signalvar in the transfer block and session.com.genesyslab.<mydata> to collect the info in the child.
« Last Edit: September 20, 2013, 12:50:07 PM by vma »