[asterisk-users] [SOLVED] Re: Soundcard necessary on an asterisk server to get output of playback()??

Steve Edwards asterisk.org at sedwards.com
Tue Dec 4 08:28:55 CST 2007


On Tue, 4 Dec 2007, Stefan Guenther wrote:

> For whatever reason I have to insert a WAIT(1) in front of every 
> application that returns an output. Well, now the context looks like 
> this and it works:
>
>        exten => 202,1,ANSWER()
>        exten => 202,2,WAIT(1)
>        exten => 202,3,PLAYBACK(tt-monkeys)
>        exten => 202,4,HANGUP()
>
> Does anyone have an explanation why I need the WAIT() ?

Wait can give the PSTN/TDM world a chance to settle before proceeding with 
your dialplan. Your wording implies that you need wait() as follows:

 	exten = 202,1,		answer
 	exten = 202,n,		wait(1)
 	exten = 202,n,		playback(tt-monkeys)
 	exten = 202,n,		wait(1)
 	exten = 202,n,		playback(demo-congrats)
 	exten = 202,n,		hangup

Which is probably not true. It's probably more accurate to say "I need 
wait() after every answer."

> BTW: As far as I can see, no one answered the question that I entered in
> the subject line: Do I need a sound card in the server, does it have any
> effect?

You only need a sound card if you are using Asterisk console commands like 
dial. Note this is different than "dialplan applications like dial."

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list