Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: bbeattie on July 04, 2011, 04:49:14 AM

Title: Custom data for OutBound Call with SSG on GVP 8.1
Post by: bbeattie 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
Title: Re: Custom data for OutBound Call with SSG on GVP 8.1
Post by: IF 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
Title: Re: Custom data for OutBound Call with SSG on GVP 8.1
Post by: bbeattie 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?
Title: Re: Custom data for OutBound Call with SSG on GVP 8.1
Post by: bbeattie 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.
:)