asterisk: delay to answer

der.hans PLUGd at LuftHans.com
Sat Aug 4 03:11:32 MST 2007


moin moin,

trying to get Asterisk setup. I've got a card with a POTS line plugged
in.

I can get it to pick up almost immediated by setting s,1 to Answer, but I
want it to delay a few rings and give a chance to answer the phone.

Most of the documentation I'm seeing is saying to use the Wait() command.

http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Wait

exten => s,1,Wait(5)
exten => s,n,Answer( )

That results in Asterisk not answering the phone at all.

Hmm, there's a delay parameter for Answer(), which simplifies things a
little.

http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Answer

exten => s,1,Answer(50)

That also results in Asterisk not picking up.

Moving back to just s,1,Answer( ) gets a response after two rings.

Also, do the delimeters matter?

s,1,Wait(30)
s,1,Wait,30

s,n,Answer( )
s,n,Answer

s,n,Goto(fred,s,4)
s,n,Goto,fred|s|4

I've seen all 6 styles in the documentation tonight.

ciao,

der.hans
-- 
#  https://www.LuftHans.com/        http://www.CiscoLearning.org/
#  "If I want my children to work hard, I better be the hardest working
#  person they've ever met. If I want the children to be nice, I better
#  be the kindest human being they've ever met." -- Rafe Esquith


More information about the PLUG-discuss mailing list