[asterisk-dev] Dial() Staggering
Torbjörn Abrahamsson
torbjorn.abrahamsson at gmail.com
Tue Jul 10 14:43:07 CDT 2007
_____
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] 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/5551212-2 at dialwithwait)
exten => 333,n,Set(N3=Local/5559898-6 at dialwithwait)
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070710/9770669a/attachment-0001.htm
More information about the asterisk-dev
mailing list