We need to implement the following: Call comes in, ring ZAP/1 (6 rings) For the last two rings, also ring ZAP/2 I have the following (which works as expected): [incoming] exten => s,1,DIAL(Local/123@test1 & Local/124@test1,18) [test1] exten => 123,1,Dial(ZAP/1) exten => 124,1,Wait(12) exten => 124,2,Dial(ZAP/2) I can't figure out how to back this into a macro. I would like to use the setup below, but it seems impossible to pass variables down into the local channel. Can anyone confirm this, or suggest some alternative? (I've tried the /n on the chan_local, with no success) [macro-standard-extension-coverage] exten => s,1,SetVar(PrimaryChannel=${ARG1}) exten => s,2,SetVar(DelayedChannel=${ARG2}) exten => s,3,Dial(Local/1@delayed & Local/2@delayed,18) [delayed] exten => 1,1,Dial(${PrimaryChannel}) exten => 2,1,Wait(12) exten => 2,2,Dial(${DelayedChannel}) ___________________________________________________________ Steve Creel screel@turbs.com
Hi!> We need to implement the following: > Call comes in, ring ZAP/1 (6 rings) > For the last two rings, also ring ZAP/2 > > [incoming] > exten => s,1,DIAL(Local/123@test1 & Local/124@test1,18) > > [test1] > exten => 123,1,Dial(ZAP/1) > exten => 124,1,Wait(12) > exten => 124,2,Dial(ZAP/2)Why not simply use this instead: [incoming] exten => s,1,DIAL(ZAP/1,12) exten => s,2,DIAL(ZAP/1&ZAP/2,6) Philipp
On Sat, 14 Feb 2004, Philipp von Klitzing wrote:>Hi! > >> We need to implement the following: >> Call comes in, ring ZAP/1 (6 rings) >> For the last two rings, also ring ZAP/2 >> >> [incoming] >> exten => s,1,DIAL(Local/123@test1 & Local/124@test1,18) >> >> [test1] >> exten => 123,1,Dial(ZAP/1) >> exten => 124,1,Wait(12) >> exten => 124,2,Dial(ZAP/2) > >Why not simply use this instead: > >[incoming] >exten => s,1,DIAL(ZAP/1,12) >exten => s,2,DIAL(ZAP/1&ZAP/2,6) > >PhilippFor SIP phones (and analog phones w/ callerid), that would show two missed calls on ZAP/1 for every incoming call. Steve