Skip to content

Commit

Permalink
Merge pull request #84 from open-voip-alliance/allow-options-in-dtmf
Browse files Browse the repository at this point in the history
add options to dtmf
  • Loading branch information
Dagg-h authored Feb 25, 2021
2 parents 82188a7 + cc63f8d commit f69957c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export class SessionImpl extends EventEmitter implements ISession {
/**
* Returns true if the DTMF was successful.
*/
public dtmf(tones: string): boolean {
public dtmf(tones: string, options?: Object): boolean {
// Unfortunately there is no easy way to give feedback about the DTMF
// tones. SIP.js uses one of two methods for sending the DTMF:
//
Expand All @@ -377,7 +377,7 @@ export class SessionImpl extends EventEmitter implements ISession {
// no feedback about the failure.
//
// For now only use the RTP method using the session description handler.
return this.session.sessionDescriptionHandler.sendDtmf(tones);
return this.session.sessionDescriptionHandler.sendDtmf(tones, options);
}

public get localStream() {
Expand Down

0 comments on commit f69957c

Please sign in to comment.