Ejemplo n.º 1
0
        public async Task <PlaySilenceAndCollectAction> PlaySilenceAndCollectAsync(CallMedia.SilenceParams silence, CallCollect collect)
        {
            CallMedia media = new CallMedia()
            {
                Type = CallMedia.MediaType.silence, Parameters = JObject.FromObject(silence)
            };
            PlayMediaAndCollectAction playMediaAndCollectAction = await PlayMediaAndCollectAsync(new List <CallMedia> {
                media
            }, collect);

            return(new PlaySilenceAndCollectAction(playMediaAndCollectAction));
        }
Ejemplo n.º 2
0
 public PlaySilenceAndCollectAction PlaySilenceAndCollect(CallMedia.SilenceParams silence, CallCollect collect)
 {
     return(PlaySilenceAndCollectAsync(silence, collect).Result);
 }
Ejemplo n.º 3
0
 public PlaySilenceAction PlaySilence(CallMedia.SilenceParams silence)
 {
     return(PlaySilenceAsync(silence).Result);
 }