Author Message
sgowda
Joined: Dec 23, 2013
Messages: 54
Offline
We want to set AAI in CCXML application during createcall on SIP setup. Normally on any inbound calls we setup AAI by "C8,HEX(AAI)".

But how will this be done fro outbound call from CCXML/JSP script? How do we set value fro parameter aai in createcall function call.

My requirement is to send variable value XYZ as AAI.
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
There's a parameter in createcall to set aai

I took this sample from the default.ccxml that is on your MPP. It takes the incoming UUI and passes it in AAI:

<assign name="launch_UUI_Info" expr="event$.UUI_Info"/>
<createcall connectionid="main_connectionid" dest="launch_toURI" aai="launch_UUI_Info" callerid="launch_fromURI" timeout="launch_ConnectTimeout" hints="hints"/>
sgowda
Joined: Dec 23, 2013
Messages: 54
Offline
There will not be any UUI data. We need to set value and use that in createcall.

As its SIP are we supposed embed with any string? OR prefix with string like C8 & convert AAI to HEX before using it in createcall?

OR Can I just use variable to pass onto aai parameter while calling createcall?
NeilGoldsmith
Joined: Nov 6, 2013
Messages: 902
Offline
The code was just a sample. You can create the AAI on your own if you want.

How you set the data will depend on if in shared mode or service provider mode.
prefix you use for shared mode is "PD,00;C8" and for service provider you use "04"

Shared mode should be in hex. In Service provider mode, it doesn't matter as the data is sent over raw.
Go to:   
Mobile view