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

Derek Whitten derek at kfuq.net
Fri Dec 9 11:17:03 MST 2005


Robert La Ferla wrote:
> Derek Whitten wrote:
> 
>> [incoming]
>> exten => s,1,Dial(SIP/myext&SIP/myext1&SIP/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(uXXXX)
exten => s,102,Voicemail(bXXXX)

-- 
.


-----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------


.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051209/fcebb439/signature.pgp


More information about the asterisk-users mailing list