Jerry Geis
2006-Jun-14 18:31 UTC
[Asterisk-Users] analog call progress - can I use backgrounddetect
Hi, There seems to be no solution for call progress on analog lines and using outgoing spool call files . My wave file starts playing before the person has answered the phone so the first part of the message is missed. Can the backgrounddetect app be used for this. I have tried but the message still plays before I answer. I generated 60 seconds wave file. [callprogress] exten => call_cell,1,Set(TIMEOUT(absolute)=55) exten => call_cell,n,backgroundDetect(silence_sixty_seconds,3000) exten => call_cell,n,hangup exten => talk,1,playback(demo-congrats) exten => t,1,playback(call-no-answered) exten => t,n,hangup This is what I was playing with and it still jumps to the talk priority before I answer. Am I missing something? Jerry
El Flynn
2006-Jun-14 18:53 UTC
[Asterisk-Users] analog call progress - can I use backgrounddetect
Jerry Geis wrote:> Hi, > > There seems to be no solution for call progress on analog lines > and using outgoing spool call files . My wave file starts playing before > the person has answered the phone so the first part of the message is > missed. > > Can the backgrounddetect app be used for this. I have tried but > the message still plays before I answer. > I generated 60 seconds wave file. >Some other approaches: 1. Have you tried setting callprogress=yes in zapata.conf? This will only work if you're in the US though, and your mileage may vary. 2. An "unelegant" approach without using backgrounddetect would be to set it up like so: - playback a prompt that asks user to press a key to accept the call - only deliver the audio payload once user has pressed a key You could also tinker with #2 to cater for scenarios where you've hit a voicemailbox, e.g. after two/three loops of the first prompt just deliver the message anyway and hope it gets recorded in the callee's mailbox. Flynn