Skip to content

Commit

Permalink
docs: updated example markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 8, 2025
1 parent 40cfa57 commit bfc4486
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3716,6 +3716,20 @@ const result = await voiceClient.streamAudio(CALL_UUID, 'https://example.com/aud
console.log(result.message);
```
#### subscribeDTMF
Register a listener to receive asynchronous DTMF inputs from a call
This is only applicable to Input NCCO events with the mode set to
asynchronous. The payload delivered to this URL will be an Input webhook
event with a single DTMF digit every time the callee enters DTMF into the
call.
```ts
const result = await voiceClient.subscribeDTMF('CALL_UUID', 'https://example.com/dtmf');
console.log(result.status);
```
#### transferCallWithNCCO
Transfer an active call to a new destination using a Nexmo Call Control Object (NCCO).
Expand Down Expand Up @@ -3757,3 +3771,12 @@ Unmute a muted call, allowing audio to be transmitted again.
await voiceClient.unmuteCall(CALL_UUID);
```
#### unsubscribeDTMF
Removes the registered DTMF listener
```ts
const result = await voiceClient.subscribeDTMF('CALL_UUID', 'https://example.com/dtmf');
console.log(result.status);
```

0 comments on commit bfc4486

Please sign in to comment.