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