Author Topic: Custom data for OutBound Call with SSG on GVP 8.1  (Read 4311 times)

Offline bbeattie

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
Custom data for OutBound Call with SSG on GVP 8.1
« on: July 04, 2011, 04:49:14 AM »
Hi all,

Is it possible to get custom data on the CreateRequest call to SSG to pass on to the VXML app? I cannot find a way.
There is a CustomData element described in the schema however I cannot find how it is supposed to work?
Or is there at least a way to get the Token from the SSG call to the VXML app?

I need a way to indicate the record in my system that initiated the outbound call so the audio tag can be customised. 

Thanks

Offline IF

  • Newbie
  • *
  • Posts: 18
  • Karma: 1
Re: Custom data for OutBound Call with SSG on GVP 8.1
« Reply #1 on: July 04, 2011, 04:48:13 PM »
Hi,

Your request should look like that if you want to include userdata:

<CreateRequest Token="T1001" MaxAttempts="1" TimeToLive="120s" IVRProfileName="OutboundApp" Telnum="xxxxxxxxx" NotificationURL="http://xxx.xxx.xxx.xxx/yyy.xml" Ani="12345"/>
<cpd record="false"
              postconnecttimeout="6000ms"
              rnatimeout="6000ms"
              preconnect="true"
              detect="all"/>
[b]<CustomData>
<KeyValue Key=”Userdata1” Value=”xxx”/>
<KeyValue Key=”Userdata2” Value=”zzz”/>
</CustomData> [/b]
</CreateRequest>
</SSGRequest>

Kind Regards,
IF

Offline bbeattie

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
Re: Custom data for OutBound Call with SSG on GVP 8.1
« Reply #2 on: July 04, 2011, 10:15:48 PM »
Thanks IF, I did get that far however. I could not see the values coming through to the vxml app though?
I thought they would be nicely presented in the session.com.genesyslab.userdata object however I could not get them.

How do you use the values once you have passed them in?

Offline bbeattie

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
Re: Custom data for OutBound Call with SSG on GVP 8.1
« Reply #3 on: July 05, 2011, 01:04:13 AM »
Ok, I found it!

"session.com.genesyslab.userdata.outbounddata" has the values from <CustomData> in Key1=Value1&Key2=Value2 format.
:)