Bromont Quebec
2006-Feb-03 07:37 UTC
[Asterisk-Users] Re: delaying "answer" for a number of rings or an amount
Well in my setup I have a few IP phones connected to Asterisk as well as POTS phones on my analog line. When a call for my daughter comes in on the analog line (determined from callerID) I send it to her own voicemail after 20 seconds of ringing. It all works quite well. Here's a step-by-step of what happens below: 1 - a call comes in and Asterisk rings SIP/Brian and SIP/joe for 30 seconds. 2 - After 30 seconds if the line is still ringing (nobody picked up POTS phone or SIP phones) * answers the line and sends to Voicemail. Asterisk never picks up the call until the 30 seconds are up. [from-pots] exten => s,1,Dial(SIP/brian&SIP/joe,30) exten => s,2,Voicemail(u2001) exten => s,3,Hangup>Right. My original question was about making >Asterisk wait a number or >rings (or amount of time) before picking up a Zap >line. If the >rings/time were not reached while the line is still >ringing, do nothing. > >This allows a handset *on the same POTS line* as >Asterisk to pick up and >Asterisk does nothing. But if nobody picks up the >POTS line (that >asterisk is on too) then it picks up. > >I essentially want Asterisk to be an answering >machine on the line. > >b.
Brian J. Murrell
2006-Feb-03 10:50 UTC
[Asterisk-Users] Re: delaying "answer" for a number of rings or an amount
On Fri, 2006-02-03 at 07:37 -0700, Bromont Quebec wrote:> Well in my setup I have a few IP phones connected to Asterisk as well as POTS phones on my analog line.Ahhh. So we share the latter at least.> When a call for my daughter comes in on the analog line (determined from callerID) I send it to her own voicemail after 20 seconds of ringing. It all works quite well.Hrm. Yeah, this is what I'm trying to do.> Here's a step-by-step of what happens below: > 1 - a call comes in and Asterisk rings SIP/Brian and SIP/joe for 30 seconds.So you don't want Asterisk to wait and see if the POTS line is picked up before ringing the SIP phones? Interesting.> 2 - After 30 seconds if the line is still ringing (nobody picked up POTS phone or SIP phones) * answers the line and sends to Voicemail. Asterisk never picks up the call until the 30 seconds are up.What seems to be happening here is that even if somebody picks up the POTS line within a few seconds, after the 30 seconds (Wait() in my case, but I'd imagine the same will happen after ringing the SIP lines for 30s) is up Asterisk is also on the POTS line (with the callee who picked up the POTS phone) doing the voicemail intro and recording the conversation.> [from-pots] > exten => s,1,Dial(SIP/brian&SIP/joe,30) > exten => s,2,Voicemail(u2001) > exten => s,3,HangupI will try this exactly and see if it works any better. 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/20060203/866c5180/attachment.pgp
Reasonably Related Threads
- delaying "answer" for a number of rings or an amount of time
- Re: delaying "answer" for a number of ringsor an amount of time
- SV: delaying "answer" for a number of rings or anamount of time
- SV: SV: delaying "answer" for a number of ringsor anamount of time
- softphone has problem to call out via X100P card