示例#1
0
 public Task StartDetectingInbandDtmf()
 {
     return(RunIfAnswered(
                async() =>
     {
         await eventSocket.SubscribeEvents(EventName.Dtmf).ConfigureAwait(false);
         await eventSocket.StartDtmf(UUID).ConfigureAwait(false);
     }));
 }
示例#2
0
        public async Task StartDetectingInbandDtmf()
        {
            if (!IsAnswered)
            {
                return;
            }

            await eventSocket.SubscribeEvents(EventName.Dtmf);

            await eventSocket.StartDtmf(UUID);
        }