Implemented DTMF clip generation

This commit is contained in:
Luxferre
2023-02-26 12:47:40 +02:00
parent 596a03d9bc
commit fcdc869781
3 changed files with 28 additions and 7 deletions
+2
View File
@@ -25,6 +25,8 @@ def run_action(action_id, params, call_obj, user_id, config, clips, calls):
if digit == '#':
playbuf(tts_to_buf('Echo test ended', config['tts']), call_obj)
return
elif digit in clips['dtmf']:
playbuf(clips['dtmf'][digit], call_obj)
elif action_id == '24': # Caller ID readback: enter 24#
playbuf(tts_to_buf('Your caller ID is %s' % get_caller_addr(call_obj), config['tts']), call_obj) # demonstration of the on-the-fly TTS
else: # beep command: 22*3# tells to beep 3 times