<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-dev-bounces@lists.digium.com
[mailto:asterisk-dev-bounces@lists.digium.com] <B>On Behalf Of </B>Nicholas
Blasgen<BR><B>Sent:</B> den 10 juli 2007 21:01<BR><B>To:</B> Asterisk
Developers Mailing List<BR><B>Subject:</B> Re: [asterisk-dev] Dial()
Staggering<BR></FONT><BR></DIV>
<DIV></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><FONT
face=Arial color=#0000ff size=2></FONT><BR>Um, you can already do that by
using the timeout parameter.<BR><BR>--<BR>Tilghman</BLOCKQUOTE>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>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.</DIV></BLOCKQUOTE><FONT face=Arial color=#0000ff size=2></FONT>
<DIV dir=ltr><BR><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2>You should be able to use Local channels to accomplish this by
doing an explicit wait before dialing... </FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2>[dialwithwait]<BR>exten =>
_.,1,Set(number=${CUT(${EXTEN},'-',1)})<BR>exten =>
_.,n,Set(initwait=${CUT(${EXTEN},'-',2)})<BR>exten =>
_.,n,Wait(${initwait})<BR>exten => _.,n,Dial(SIP/${number})<BR>exten =>
_.,n,Hangup</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2>[dial_with_different_starttime]<BR>exten =>
333,1,Set(N1=SIP/5557626)<BR>exten => 333,n,Set(<A
href="mailto:N2=Local/5551212-2@dialwithwait">N2=Local/5551212-2@dialwithwait</A>)<BR>exten
=> 333,n,Set(<A
href="mailto:N3=Local/5559898-6@dialwithwait">N3=Local/5559898-6@dialwithwait</A>)<BR>exten
=> 333,n,Dial(${N1}&${N2}&${N3},,30)<BR>exten =>
333,n,Hangup<BR></FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2>Haven't tested this, but the outline should work... Some modifications
may be needed, but it can certainly be done using the existing applications...
</FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2>// Torbjörn</FONT></SPAN></DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr><SPAN class=406473719-10072007><FONT face=Arial color=#0000ff
size=2> </DIV></FONT></SPAN></BODY></HTML>