Brian J. Murrell
2006-Feb-02 12:14 UTC
[Asterisk-Users] delaying "answer" for a number of rings or an amount of time
I want Asterisk to delay answering the POTS line via a Wildcard (a Zap channel) by some period of time, either a number of rings or just a number of seconds. I have tried this: [from-pots] exten => s,1,Wait(30) exten => s,n,Answer ... exten => s,n,Dial(SIP/brian&SIP/joe,10,H) exten => s,n,Voicemail(u2001) exten => s,n,Hangup exten => s,103,Voicemail(u2001) exten => s,104,Hangup exten => h,1,Hangup exten => i,1,Hangup but that doesn't work. It seems that as soon as the first or second ring is detected, Asterisk has decided it will answer the line, it just waits 30 seconds to do it. The problem I have is that the POTS line that Asterisk is on is shared by handsets, and if somebody picks up a handset soon enough, I don't want Asterisk to pick up the line. Yeah, Asterisk as an answering machine... until I can get at least one FXS interface, anyway. Any ideas? b. -- My other computer is your Microsoft Windows server. Brian J. Murrell -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060202/ea7bb88d/attachment.pgp
Bromont Quebec
2006-Feb-02 15:24 UTC
[Asterisk-Users] Re: delaying "answer" for a number of rings or an amount of time
You need to take that "Wait" and "Answer" out of there.... [from-pots] exten => s,1,Dial(SIP/brian&SIP/joe,30) exten => s,2,Voicemail(u2001) exten => s,3,Hangup exten => s,102,Voicemail(b2001) exten => s,103,Hangup exten => h,1,Hangup exten => i,1,Hangup>I want Asterisk to delay answering the POTS line >via a Wildcard (a Zap >channel) by some period of time, either a number of >rings or just a >number of seconds. > >I have tried this: > >[from-pots] >exten => s,1,Wait(30) >exten => s,n,Answer >... >exten => s,n,Dial(SIP/brian&SIP/joe,10,H) >exten => s,n,Voicemail(u2001) >exten => s,n,Hangup >exten => s,103,Voicemail(u2001) >exten => s,104,Hangup >exten => h,1,Hangup >exten => i,1,Hangup>but that doesn't work. It seems that as soon as >the first or second >ring is detected, Asterisk has decided it will >answer the line, it just >waits 30 seconds to do it. > >The problem I have is that the POTS line that >Asterisk is on is shared >by handsets, and if somebody picks up a handset >soon enough, I don't >want Asterisk to pick up the line. Yeah, Asterisk >as an answering >machine... until I can get at least one FXS >interface, anyway.>Any ideas?>b.
Seemingly Similar Threads
- Re: delaying "answer" for a number of rings or an amount
- Re: delaying "answer" for a number of ringsor an amount of time
- SV: delaying "answer" for a number of rings or anamount of time
- softphone has problem to call out via X100P card
- Asterisk on Linksys WRT54G