Hi All,
Who have done to make outbound call with SSG on GVP 8.1 before?
I need help from those experience people.
I create my trigger application (mytrigger.aspx) as follow:
======================================================================
string url = "http://hostIp:9800/SSG?TenantName=Environment";
string xml = "<SSGRequest xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance/'> " +
"<CreateRequest Token='T7033' MaxAttempts='2' " +
"TimeToLive='123s' IVRProfileName='IVRProfileTest' " +
"Telnum='89812345' " +
"NotificationURL='http://hostIP:9000/DIR/OutURL.xml'>" +
"</CreateRequest>" +
"</SSGRequest>";
byte[] bytes = Encoding.UTF8.GetBytes(xml);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "POST";
request.ContentLength = bytes.Length;
request.ContentType = "application/xml";
using (System.IO.Stream requestStream = request.GetRequestStream())
{
requestStream.Write(bytes, 0, bytes.Length);
}
=======================================================
I can manage to get 'Success' response from SSG. But my question is how can I check Notification URL? Now I used another application to listen port 9000 and I can see there my request is 'success' or 'failure'. But I m unsure it is right way or not. Anyone can help me?? Appreciate much if someone have done and can help me. It would be great.
Cheers,
CH