Re: [Asterisk-Users] chan_local and variables

2004-02-14 Thread Philipp von Klitzing
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/[EMAIL PROTECTED]  Local/[EMAIL PROTECTED],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/1ZAP/2,6)

Philipp


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] chan_local and variables

2004-02-14 Thread Steve Creel
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/[EMAIL PROTECTED]  Local/[EMAIL PROTECTED],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/1ZAP/2,6)

Philipp

For SIP phones (and analog phones w/ callerid), that would show two missed
calls on ZAP/1 for every incoming call.

Steve
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] chan_local and variables

2004-02-13 Thread Steve Creel
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/[EMAIL PROTECTED]  Local/[EMAIL PROTECTED],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/[EMAIL PROTECTED]  Local/[EMAIL PROTECTED],18)

[delayed]
exten = 1,1,Dial(${PrimaryChannel})
exten = 2,1,Wait(12)
exten = 2,2,Dial(${DelayedChannel})



___
Steve Creel[EMAIL PROTECTED]


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users