We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f33928b + 21d5c4a commit b58016aCopy full SHA for b58016a
1 file changed
agi.go
@@ -413,5 +413,6 @@ func (a *AGI) Verbose(msg string, level int) error {
413
414
// WaitForDigit waits for a DTMF digit and returns what is received
415
func (a *AGI) WaitForDigit(timeout time.Duration) (digit string, err error) {
416
- return a.Command("WAIT FOR DIGIT", toMSec(timeout)).Val()
+ resp := a.Command("WAIT FOR DIGIT", toMSec(timeout))
417
+ return string(resp.Result), resp.Error
418
}
0 commit comments