Author Topic: Play announcement and collect digits  (Read 321 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 628
  • Karma: -7
Play announcement and collect digits
« on: May 04, 2022, 08:34:23 PM »
Hello,

i am using the play announcement and collect digits block in ird routing strategy.
the requirement is to give the caller a number of seconds (6) to select a digit - and if they dont to repeat the announcement once before default routing if they dont input a value.  i have added a connector from the red port of the first block to another play announcement and collect digits block.
The options below seem to be the ones i need to use but dont work.
if i use option value 6 for start_timeout the call does not drop out of the block to the next one (to play the same announcement again. i just hear silence until i select a digit.
if i use option value 6 for total_timeout, the announcement is cut off after 6 seconds - but does not route to the next block via the red port anyway.

START_TIMEOUT
The number of seconds the IP should wait for the caller to
begin DTMF input.
DIGIT_TIMEOUT
The number of seconds the IP should wait between DTMF digits.
TOTAL_TIMEOUT
The total number of seconds the IP should wait for the caller to provide the requested DTMF input.

there might be another way but thought these are the ones available within the block for this pupose.

thanks,
Wasim

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7526
  • Karma: 56330
Re: Play announcement and collect digits
« Reply #1 on: May 04, 2022, 09:17:18 PM »
Total should be longer than Start, time starts with audio, not when it finishes.
So if your audio is 30 secs total should be at least 36

Enviado de meu SM-N9600 usando o Tapatalk


Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 628
  • Karma: -7
Re: Play announcement and collect digits
« Reply #2 on: May 04, 2022, 09:25:19 PM »
thought so, was hoping one of the settings starts the timeout after the announcement end.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7526
  • Karma: 56330
Re: Play announcement and collect digits
« Reply #3 on: May 04, 2022, 09:26:52 PM »
No as URS doesn't control the media and there is no event indicating when it stops. Could be a huge message, so you want to start the dtmf input far before it ends.


Enviado de meu SM-N9600 usando o Tapatalk


Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: Play announcement and collect digits
« Reply #4 on: May 05, 2022, 01:57:59 AM »
Try to set start timeout only. Leave total timeout empty.
I understand that timeouts are passed to SIP Server and controlled there.