_____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicholas Blasgen
Sent: den 10 juli 2007 21:01
To: Asterisk Developers Mailing List
Subject: Re: [asterisk-dev] Dial() Staggering




Um, you can already do that by using the timeout parameter.

--
Tilghman

 
 
You mean WaitTime?  That will cause it to hang up the line after X seconds.
I want to keep all lines ringing but with a delay between each call.


You should be able to use Local channels to accomplish this by doing an
explicit wait before dialing... 
 
[dialwithwait]
exten => _.,1,Set(number=${CUT(${EXTEN},'-',1)})
exten => _.,n,Set(initwait=${CUT(${EXTEN},'-',2)})
exten => _.,n,Wait(${initwait})
exten => _.,n,Dial(SIP/${number})
exten => _.,n,Hangup
 
[dial_with_different_starttime]
exten => 333,1,Set(N1=SIP/5557626)
exten => 333,n,Set(N2=Local/[EMAIL PROTECTED])
exten => 333,n,Set(N3=Local/[EMAIL PROTECTED])
exten => 333,n,Dial(${N1}&${N2}&${N3},,30)
exten => 333,n,Hangup

Haven't tested this, but the outline should work... Some modifications may
be needed, but it can certainly be done using the existing applications... 
 
// Torbjörn
 
 
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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

Reply via email to