Пример #1
0
        public ICalloutRequest TtsCallout(To to, string message, string from, string dtmf)
        {
            var request = _request;

            request.Method = "ttsCallout";

            request.TtsCallout = new TtsCalloutRequest
            {
                Dtmf        = dtmf,
                Cli         = @from,
                Domain      = to.Domain,
                Destination = to.ToIdentity(),
                Prompts     = "#tts[" + message + "]"
            };

            return(request);
        }
Пример #2
0
        public ICalloutRequest ConferenceCallout(To to, string conferenceId, string from, string greeting, string dtmf)
        {
            var request = _request;

            request.Method = "conferenceCallout";

            request.ConferenceCallout = new ConferenceCalloutRequest
            {
                Dtmf         = dtmf,
                ConferenceId = conferenceId,
                Cli          = @from,
                Domain       = to.Domain,
                Destination  = to.ToIdentity(),
                Greeting     = greeting
            };

            return(request);
        }