[Asterisk-Users] Re: extensions.conf dial plan

Tony Mountifield tony at softins.clara.co.uk
Mon May 2 06:00:19 MST 2005


In article <1115034601.6858.11.camel at zaphod.cmosvision.com>,
Georg P. Israel <info at cmosvision.com> wrote:
> Dear Asterisk users,
> 
> I was wondering if anybody can tell me how to define a dial scheeme such
> that an incomming all first rings for e.g. 20 seconds on one set of
> phones and then after this time extends it's range onto a bigger set of
> phones.
> Basically, this is easy,
> 
> I can do this in the "extensions.con" with 
> 
> 
> [ISDN-in]
> exten=> 6201030,1,setcallerid("${CALLERID}" <${CALLERID}>|a)
> exten=> 6201030,2,dial,${UserGroup1}|20|t
> exten=> 6201030,3,dial,${UserGroup1&UserGroup2}|60|t
> exten=> 6201030,4,Voicemail2(u6201030)
> exten=> 6201030,5,hangup
> exten=> 6201030,302,Voicemail2(b6201030)
> 
> 
> But here is on major problem,
> 
> in step 2, after 20 seconds, the call on the phones in Group1 will be
> terminated and then restarted in the bigger group (Group1&Group2).
> The problem with this is, during the transition is a time gap of a view
> seconds on the phones from Group1. That means, if I lift up the head set
> during this gape, then I can loos the calls on those phones.
> 
> Hence, I was wondering if I can set the dial proceadure such, that I
> have the calls for 80 seconds on the phone Group1, and after 20 seconds
> additionally on the phone Group2 without any interruption of the ringing
> on the other phones.

I don't have a proven answer, but here is an idea to try:

[ISDN-in]
exten=> 6201030,1,SetCallerID("${CALLERID}" <${CALLERID}>|a)
exten=> 6201030,2,Dial(${UserGroup1}&Local/${EXTEN}@ISDN-in-delayed|80|t)
exten=> 6201030,3,Voicemail2(u6201030)
exten=> 6201030,4,Hangup
exten=> 6201030,302,Voicemail2(b6201030)

[ISDN-in-delayed]
exten=> 6201030,1,Wait(20)
exten=> 6201030,2,Dial(${UserGroup2}|60|t)

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list