예제 #1
0
        public void CreateClientANDMakeCall()
        {
            Client newclient = akount.makeclient("Demo123", "Demo@123").Create();

            var callinit = akount.MakeCall("+1234567", newclient.Properties.Login, "http://cloud.restcomm.com/restcomm/demos/hello-play.xml");

            Call lastcall = callinit.call();

            Assert.AreEqual(lastcall.Properties.To, newclient.Properties.Login);
            newclient.Delete(akount.Properties.Sid, akount.Properties.authtoken);
        }
예제 #2
0
        public void MakeCall()
        {
            var paradictionary = new Dictionary <string, string>();

            paradictionary.Add("From", "Client1");
            paradictionary.Add("To", "Client2");
            paradictionary.Add("Url", "site.com");
            MockServer.AddPostRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Calls.json", paradictionary, callresponse);

            Call calldetail = akount.MakeCall("Client1", "Client2", "site.com").call();

            Assert.AreEqual("testcall", calldetail.Properties.sid);
        }