asterisk: delay to answer
Mike Schwartz
mike.l.schwartz at gmail.com
Mon Aug 6 12:14:37 MST 2007
On 8/4/07, der.hans <PLUGd at lufthans.com> wrote:
>
> 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/
> # [...]
> ---------------------------------------------------
> PLUG-discuss mailing list -[...]
> exten => s,1,Answer(50)
shouldn't that be more like
s,1,Answer(20000)?
The doc (at the URL you gave),
> http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Answer
said that the units were in milliseconds...
Just my 0:00:002,
--
Mike Schwartz
Glendale AZ
schwartz at acm.org
Mike.L.Schwartz at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20070806/aa5a3aa7/attachment.htm
More information about the PLUG-discuss
mailing list