Skip to content

Commit

Permalink
Fixed broken DTMF in SIP demo when using helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Dec 4, 2023
1 parent 93749c9 commit ad0d640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/siptest.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ $(document).ready(function() {
else if(i == 11)
$('#dtmf').append('<button class="btn btn-info dtmf">*</button>');
}
$('.dtmf').click(function() {
$('#dtmf .dtmf').click(function() {
// Send DTMF tone (inband)
sipcall.dtmf({dtmf: { tones: $(this).text()}});
// Notice you can also send DTMF tones using SIP INFO
Expand Down Expand Up @@ -1530,7 +1530,7 @@ function addHelper(helperCreated) {
else if(i == 11)
$('#dtmf' + helperId).append('<button class="btn btn-info dtmf">*</button>');
}
$('.dtmf' + helperId).click(function() {
$('#dtmf' + helperId + ' .dtmf').click(function() {
// Send DTMF tone (inband)
helpers[helperId].sipcall.dtmf({dtmf: { tones: $(this).text()}});
// Notice you can also send DTMF tones using SIP INFO
Expand Down

0 comments on commit ad0d640

Please sign in to comment.