Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def testStream():
- sys.stdout.write("STREAM FILE /home/asterisk/sounds/thenpresspound #\n")
- sys.stdout.flush()
- sys.stderr.write("STREAM FILE /home/asterisk/sounds/thenpresspound #\n")
- sys.stderr.flush()
- sys.stdout.write("GET DATA /home/asterisk/sounds/thenpresspound %d %d\n" % (7000, 10))
- sys.stdout.flush()
- sys.stderr.write("GET DATA /home/asterisk/sounds/thenpresspound %d %d\n" % (7000, 10))
- sys.stderr.flush()
- result = sys.stdin.readline().strip()
- result = checkresult(result)
- sys.stderr.write("digits are %s\n" % result)
- return result
- testStream()
- # FROM * CONSOLE:
- STREAM FILE /home/asterisk/sounds/thenpresspound #
- GET DATA /home/asterisk/sounds/thenpresspound 7000 10
- [May 1 12:19:58] DTMF[11298]: channel.c:2092 __ast_read: DTMF end '#' received on Zap/1-1, duration 0 ms
- [May 1 12:19:58] DTMF[11298]: channel.c:2144 __ast_read: DTMF end accepted without begin '#' on Zap/1-1
- [May 1 12:19:58] DTMF[11298]: channel.c:2155 __ast_read: DTMF end passthrough '#' on Zap/1-1
- FAIL ('200 result=')
- digits are -1
- # I don't hear the first sound, but I do hear the second one.
Add Comment
Please, Sign In to add comment