Author Topic: How to send parameters in GOTO block in GVP composer ?  (Read 4617 times)

Offline anandgenesys

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
How to send parameters in GOTO block in GVP composer ?
« on: May 26, 2015, 11:19:36 AM »
Hi Folks,

    I need to send parameters in the GOTO block.How can I achieve this ? There is parameters button in the properties of GOTO block.But it is like check box . Also how can I receive the parameters and parse the input data in the external IVR applicaiton or another callflow ?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #1 on: May 26, 2015, 12:12:18 PM »
Entry and exit blocks. You define which variables are used as input and output. Read documentation about sub callflows

Offline anandgenesys

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #2 on: May 26, 2015, 01:47:29 PM »
Thanks for your reply. I know how to send parameters to the callflows using the subdialog block. I want to know how to send parameters with GOTO block . The reason for using GOTO block is , I don't need to return the IVR call back to the exit block. So , How to do this with GOTO block ? ???

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #3 on: May 26, 2015, 02:39:36 PM »
Ah ok.
If not remember bad data will be transfered via parameters option, only available if type is URL. Then they are send as simple HTTP query strings and you capture them on your application.

Offline anandgenesys

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #4 on: May 26, 2015, 02:51:14 PM »
Thanks for your quick reply. Also thanks for remembering the data will be passed in url as querystring, Only if I set the location-type property as url in GOTO block property.

If suppose I can send the data from GOTO block like ,

              http://localhost:8080/MyAPP/src-gen/Main.vxml?name=anandl&sex=male

Howcan I ge the name and sex values in the next IVR application or another callflow ? So can u give an Idea or code logic of how to parse and get the parmeters in the next IVR application or some other callflow  from GOTO block ?  ::) :'(
« Last Edit: May 26, 2015, 02:56:50 PM by anandgenesys »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #5 on: May 26, 2015, 03:01:48 PM »
Again, if it is an URL are we talking about composer block or vxml code made where?
Let's assume it is a foreign vxml generated on PHP code...IVR.php

On IVR php you have

$_Get['sex'] and use it to generate your vxml code.

If we talk about a composer same project then they are passed as session.

Offline anandgenesys

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #6 on: May 28, 2015, 06:25:52 AM »
Thanks for your reply. I am using JAVA . Is SESSION is possible in JAVA composer project ? ??? How to enable session in composer ? I want to send the parameters via GOTO block in same composer project. Is this possible with session ? If possible how to achieve the session ? If I can learn this mean , Its a boon for me . :o
 
« Last Edit: May 28, 2015, 10:40:11 AM by anandgenesys »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: How to send parameters in GOTO block in GVP composer ?
« Reply #7 on: May 28, 2015, 12:28:03 PM »
Oh boy... Sessions are Http part, not language based.
I think if you read Composer docs you will have a better idea.
Also read about http in general.
If you analyze MCP logs you will see and also with Wiseshark.
If using Java then Java logs are on the Tomcat logs as.well...
You need to read more about the whole gvp solution