EvoluxBR / greenswitch

Battle proven FreeSWITCH Event Socket Protocol client implementation with Gevent
Other
126 stars 50 forks source link

Can't catch more one digit #51

Closed CraftedCat closed 4 years ago

CraftedCat commented 4 years ago
  1. audio duration: 2s (file) digits = self.session.play_and_get_digits('4', '4', '1', '20000', '#', file, 'ivr/ivr-pin_or_extension_is-invalid.wav', 'digits', '\d+', '1000', "''", block=True, response_timeout=40)

after one press, i catch invalid.wav... what wrong? myevents linger answer sleep 61154978 User typed: 4 sleep 5 break hangup

i trying this regex: ^(\d{4})$ i trying empty: "''" still drop to invalid file :(

  1. And I still do not understand. timeout = (audio duration) + (time for user for press digits) right? how much set response_timeout=?
CraftedCat commented 4 years ago

help please...