Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Derek Whitten
Robert La Ferla wrote:
 How do I set up extensions.conf to wait for x rings (ringing all
 extensions) before answering?  I'm trying to mimic a regular answering
 machine on an multiple analog phone system.  Currently, Asterisk picks
 up after 1 ring and just tries to dial one extension.  I want all
 extensions to ring.
 
 [incoming]
 exten = s,1,Dial(SIP/myext,25,t,r)
 exten = s,2,Voicemail(myext)
 exten = s,3,Hangup()
 
 Also, I couldn't find documentation on the r option for Dial().
 
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[incoming]
exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
exten = s,2,Voicemail(myext)
exten = s,3,Hangup()
-- 
.


-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS/GIT d-@ s+:+ a? C+++ BLHIS$ U+++ P+ L+++ !E W+++$ N++ o+ K w--
PS+++ PE@ Y+ PGP++ t 5? X !R tv+ b- DI-- D G e+ h r+++ y
 --END GEEK CODE BLOCK--


.


signature.asc
Description: OpenPGP digital signature
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Robert La Ferla

Derek Whitten wrote:

[incoming]
exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
exten = s,2,Voicemail(myext)
exten = s,3,Hangup()
  
Thanks.  This will call/ring multiple extensions but what about waiting 
for X rings before going to voicemail?  How do I do that?



___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Kerry Garrison
Create a ring group, put all the extensions into the ring group, set your
dialplan to go to the ring group first and then failover to a voicemail
extension.
-Kerry
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek Whitten
Sent: Friday, December 09, 2005 8:20 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Wait for X rings before answering?

Robert La Ferla wrote:
 How do I set up extensions.conf to wait for x rings (ringing all
 extensions) before answering?  I'm trying to mimic a regular answering 
 machine on an multiple analog phone system.  Currently, Asterisk picks 
 up after 1 ring and just tries to dial one extension.  I want all 
 extensions to ring.
 
 [incoming]
 exten = s,1,Dial(SIP/myext,25,t,r)
 exten = s,2,Voicemail(myext)
 exten = s,3,Hangup()
 
 Also, I couldn't find documentation on the r option for Dial().
 
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[incoming]
exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
exten = s,2,Voicemail(myext)
exten = s,3,Hangup()
--
.


-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS/GIT d-@ s+:+ a? C+++ BLHIS$ U+++ P+ L+++ !E W+++$ N++ o+ K w--
PS+++ PE@ Y+ PGP++ t 5? X !R tv+ b- DI-- D G e+ h r+++ y
 --END GEEK CODE BLOCK--


.


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Dave Cotton
On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote:
 Derek Whitten wrote:
  [incoming]
  exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
  exten = s,2,Voicemail(myext)
  exten = s,3,Hangup()

 Thanks.  This will call/ring multiple extensions but what about waiting 
 for X rings before going to voicemail?  How do I do that?

What do you think the 25 does?

Maybe it's a time or something.

-- 
Dave Cotton [EMAIL PROTECTED]

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread José Luis Gómez
If you need more rings, increase 25 (that is in seconds, more or less).
Regards.

El vie, 09-12-2005 a las 11:41 -0500, Robert La Ferla escribió:
 Derek Whitten wrote:
  [incoming]
  exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
  exten = s,2,Voicemail(myext)
  exten = s,3,Hangup()

 Thanks.  This will call/ring multiple extensions but what about waiting 
 for X rings before going to voicemail?  How do I do that?
 
 
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-- 

José Luis Gómez
Qualis Information Technology
Av. Rivadavia 2553, PB Of. 43 EP
0342-4565684 int 102
Bs. As. 011-51990896
www.qualis.com.ar
Soporte 0810-8880022
Santa Fe - Argentina

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Robert La Ferla
I realize that it's a timeout but what's implicit in that is that 
Asterisk can't detect # of rings just the amount of time spent ringing?  
I have been looking at the reference manual on asteriskguru.com.  They 
say it's a timeout but they don't indicate the units.  Is it 
milliseconds, microseconds or seconds?



Dave Cotton wrote:

On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote:
  

Derek Whitten wrote:


[incoming]
exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
exten = s,2,Voicemail(myext)
exten = s,3,Hangup()
  
  
Thanks.  This will call/ring multiple extensions but what about waiting 
for X rings before going to voicemail?  How do I do that?



What do you think the 25 does?

Maybe it's a time or something.

  


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Derek Whitten
Robert La Ferla wrote:
 Derek Whitten wrote:
 
 [incoming]
 exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
 exten = s,2,Voicemail(myext)
 exten = s,3,Hangup()
   
 
 Thanks.  This will call/ring multiple extensions but what about waiting
 for X rings before going to voicemail?  How do I do that?
 
 
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

that's what the '25' is..

so currently your dialplan goes to VM after 25 sec..

you could also declare some variables too..

PHONE1=SIP/myext
PHONE2=SIP/myext1
PHONE3=SIP/myext2


;Timeout Variables
VERYSHORTTIMEOUT=10
SHORTTIMEOUT=20
DEFTIMEOUT=30
MEDTIMEOUT=40
LONGTIMEOUT=70

[incoming]
exten = s,1,Dial(SIP/${PHONE1}${PHONE2}${PHONE3},${MEDTIMEOUT},Ttr)
exten = s,2,Voicemail(u)
exten = s,102,Voicemail(b)

-- 
.


-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS/GIT d-@ s+:+ a? C+++ BLHIS$ U+++ P+ L+++ !E W+++$ N++ o+ K w--
PS+++ PE@ Y+ PGP++ t 5? X !R tv+ b- DI-- D G e+ h r+++ y
 --END GEEK CODE BLOCK--


.


signature.asc
Description: OpenPGP digital signature
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Derek Whitten
Robert La Ferla wrote:
 Derek Whitten wrote:
 
 [incoming]
 exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
 exten = s,2,Voicemail(myext)
 exten = s,3,Hangup()
   
 
 Thanks.  This will call/ring multiple extensions but what about waiting
 for X rings before going to voicemail?  How do I do that?
 
 
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

that's what the '25' is..

so currently your dialplan goes to VM after 25 sec..

you could also declare some variables too..

PHONE1=SIP/myext
PHONE2=SIP/myext1
PHONE3=SIP/myext2


;Timeout Variables
VERYSHORTTIMEOUT=10
SHORTTIMEOUT=20
DEFTIMEOUT=30
MEDTIMEOUT=40
LONGTIMEOUT=70

[incoming]
exten = s,1,Dial(SIP/${PHONE1}${PHONE2}${PHONE3},${MEDTIMEOUT},Ttr)
exten = s,2,Voicemail(u)
exten = s,102,Voicemail(b)

-- 
.


-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS/GIT d-@ s+:+ a? C+++ BLHIS$ U+++ P+ L+++ !E W+++$ N++ o+ K w--
PS+++ PE@ Y+ PGP++ t 5? X !R tv+ b- DI-- D G e+ h r+++ y
 --END GEEK CODE BLOCK--


.


signature.asc
Description: OpenPGP digital signature
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread burke
seconds

 I realize that it's a timeout but what's implicit in that is that
 Asterisk can't detect # of rings just the amount of time spent ringing?
 I have been looking at the reference manual on asteriskguru.com.  They
 say it's a timeout but they don't indicate the units.  Is it
 milliseconds, microseconds or seconds?


 Dave Cotton wrote:
 On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote:

 Derek Whitten wrote:

 [incoming]
 exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
 exten = s,2,Voicemail(myext)
 exten = s,3,Hangup()


 Thanks.  This will call/ring multiple extensions but what about waiting
 for X rings before going to voicemail?  How do I do that?


 What do you think the 25 does?

 Maybe it's a time or something.



 ___
 --Bandwidth and Colocation provided by Easynews.com --

 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Dave Cotton
On Fri, 2005-12-09 at 12:54 -0500, Robert La Ferla wrote:
 I realize that it's a timeout but what's implicit in that is that 
 Asterisk can't detect # of rings just the amount of time spent ringing?

Is there really a difference? 

 I have been looking at the reference manual on asteriskguru.com.  They 
 say it's a timeout but they don't indicate the units.  Is it 
 milliseconds, microseconds or seconds?

Please engage brain, milliseconds microseconds?

Ring the f.. extension and see what happens.

(Critch where are you?)
 
-- 
Dave Cotton [EMAIL PROTECTED]

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread C Stephens
That's seconds. To get a certain number of rings, just find out the total cycle time for the ring cadence you're using, then multiply by the number of rings you want.

For example, the US ring cadence is 2 on, 4 off[, repeat]. So the total time is 6 seconds per ring. For 4 rings, use 4x6=24.
On 12/9/05, Robert La Ferla [EMAIL PROTECTED] wrote:
I realize that it's a timeout but what's implicit in that is thatAsterisk can't detect # of rings just the amount of time spent ringing?
I have been looking at the reference manual on asteriskguru.com.Theysay it's a timeout but they don't indicate the units.Is itmilliseconds, microseconds or seconds?
Dave Cotton wrote: On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote: Derek Whitten wrote: [incoming] exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
 exten = s,2,Voicemail(myext) exten = s,3,Hangup() Thanks.This will call/ring multiple extensions but what about waiting for X rings before going to voicemail?How do I do that?
 What do you think the 25 does? Maybe it's a time or something.___--Bandwidth and Colocation provided by 
Easynews.com --Asterisk-Users mailing listTo UNSUBSCRIBE or update options visit:http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Time Bandit
  I have been looking at the reference manual on asteriskguru.com.  They
  say it's a timeout but they don't indicate the units.  Is it
  milliseconds, microseconds or seconds?
Just for the lazy one, here is the link to the DIAL command
http://www.voip-info.org/wiki-Asterisk+cmd+dial

and extracted from it about the timeout
The timeout parameter is optional. If not specifed, the Dial command
will wait indefinitely, exiting only when the originating channel
hangs up, or all the dialed channels return a busy or error condition.
Otherwise it specifies a maximum time, in seconds, that the Dial
command is to wait for a channel to answer.

 (Critch where are you?)
Yes !  I'm missing the great answers to people that don't bother
reading the fn manual.

Critch, we are really missing you, please come back ! :)
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Eric \ManxPower\ Wieling

Robert La Ferla wrote:

Derek Whitten wrote:

[incoming]
exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
exten = s,2,Voicemail(myext)
exten = s,3,Hangup()
  
Thanks.  This will call/ring multiple extensions but what about waiting 
for X rings before going to voicemail?  How do I do that?


NEVER EVER put commas between the dial opts.  Honestly, I don't trust 
anyone that puts r on the Dial line.


exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25)

The above will wait for 25 seconds before going to the next priority.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Eric \ManxPower\ Wieling
show application dial is your friend.  Love it, hold it, buy it 
flowers, but READ it.


Robert La Ferla wrote:
I realize that it's a timeout but what's implicit in that is that 
Asterisk can't detect # of rings just the amount of time spent ringing?  
I have been looking at the reference manual on asteriskguru.com.  They 
say it's a timeout but they don't indicate the units.  Is it 
milliseconds, microseconds or seconds?



Dave Cotton wrote:

On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote:
 

Derek Whitten wrote:
   

[incoming]
exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
exten = s,2,Voicemail(myext)
exten = s,3,Hangup()

Thanks.  This will call/ring multiple extensions but what about 
waiting for X rings before going to voicemail?  How do I do that?



What do you think the 25 does?

Maybe it's a time or something.

  


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Eric \ManxPower\ Wieling
This information is outdated or wrong for some versions of Asterisk.  Be 
smart, read the output of show application dial in the asterisk server 
you are using and see what it tells you.


Time Bandit wrote:

I have been looking at the reference manual on asteriskguru.com.  They
say it's a timeout but they don't indicate the units.  Is it
milliseconds, microseconds or seconds?

Just for the lazy one, here is the link to the DIAL command
http://www.voip-info.org/wiki-Asterisk+cmd+dial

and extracted from it about the timeout
The timeout parameter is optional. If not specifed, the Dial command
will wait indefinitely, exiting only when the originating channel
hangs up, or all the dialed channels return a busy or error condition.
Otherwise it specifies a maximum time, in seconds, that the Dial
command is to wait for a channel to answer.


(Critch where are you?)

Yes !  I'm missing the great answers to people that don't bother
reading the fn manual.

Critch, we are really missing you, please come back ! :)
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread pdhales

We found that different phones and even different rings on the same phone had 
different timimgs.

For example, one phone would ring every 2 seconds and another would ring every 
3.

PaulH 

 Robert La Ferla [EMAIL PROTECTED] wrote:
 
 I realize that it's a timeout but what's implicit in that is that 
 Asterisk can't detect # of rings just the amount of time spent ringing?  
 
 I have been looking at the reference manual on asteriskguru.com.  They 
 say it's a timeout but they don't indicate the units.  Is it 
 milliseconds, microseconds or seconds?
 
 
 Dave Cotton wrote:
  On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote:

  Derek Whitten wrote:
  
  [incoming]
  exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
  exten = s,2,Voicemail(myext)
  exten = s,3,Hangup()


  Thanks.  This will call/ring multiple extensions but what about 
 waiting 
  for X rings before going to voicemail?  How do I do that?
  
 
  What do you think the 25 does?
 
  Maybe it's a time or something.
 

 
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: Re: [Asterisk-Users] Wait for X rings before answering?

2005-12-09 Thread Rich Adamson
Most telcos (and I assume this is true in AU as well) have a standard
right cycle in the CO. In the US, its something like 6 seconds.

What a telephone instrument does in terms of ringing has nothing to do
with it. It can play songs, show a video, or whatever.

If you have callerid configured, then asterisk will consume one ring
cycle looking for the callerid _before_ it jumps to extensions.conf
context. But, from a user perspective, they still hear ringback even
though you don't have any phones ringing as yet. Calculate accordingly.


 
 We found that different phones and even different rings on the same phone had 
different timimgs.
 
 For example, one phone would ring every 2 seconds and another would ring 
 every 3.
 
 PaulH 
 
  Robert La Ferla [EMAIL PROTECTED] wrote:
  
  I realize that it's a timeout but what's implicit in that is that 
  Asterisk can't detect # of rings just the amount of time spent ringing?  
  
  I have been looking at the reference manual on asteriskguru.com.  They 
  say it's a timeout but they don't indicate the units.  Is it 
  milliseconds, microseconds or seconds?
  
  
  Dave Cotton wrote:
   On Fri, 2005-12-09 at 11:41 -0500, Robert La Ferla wrote:
 
   Derek Whitten wrote:
   
   [incoming]
   exten = s,1,Dial(SIP/myextSIP/myext1SIP/myext2,25,t,r)
   exten = s,2,Voicemail(myext)
   exten = s,3,Hangup()
 
 
   Thanks.  This will call/ring multiple extensions but what about 
  waiting 
   for X rings before going to voicemail?  How do I do that?
   
  
   What do you think the 25 does?
  
   Maybe it's a time or something.
  
 
  
  ___
  --Bandwidth and Colocation provided by Easynews.com --
  
  Asterisk-Users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 

---End of Original Message-


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users