[asterisk-users] ael vs conf

2008-12-18 Thread David fire
hi
what i should use? ael or conf???
thanks
David

-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ael vs conf

2008-12-18 Thread RE Kushner List Account
David fire wrote:
 hi
 what i should use? ael or conf???

I think it's personal choice at this point, I recently switched 
everything to ael, it's easier to read and follow the flow and less 
typing of redundant stuff. I have found that ael finds more of my fat 
finger mistakes when it compiles in Asterisk, bombing out during ael 
load instead of a call bombing in unexpected ways if you have a syntax 
error in the .conf file.

Redoing extensions.conf into extensions.ael also allowed me to reduce 
the file several hundred lines due to optimization of a file that was 
out of control to begin with. The reduction in size was still achieved 
even though I had to add call queue functionality into the ael file due 
to AgentCallbackLogin being eliminated. This experience taught me I need 
to go back and review everything every few months to keep things from 
getting out of hand.

-Ron


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ael vs conf

2008-12-18 Thread Tzafrir Cohen
On Thu, Dec 18, 2008 at 10:48:03AM -0200, David fire wrote:
 hi
 what i should use? ael or conf??? 

lua ?

 thanks
 David

Silly (and untested) tip of the day:

Instead of using include, use templates:

If you have:


[a]
exten = _12X

[b]
include = a
exten = _1.


This won't work as planned, as [a] is included and checked after [b].
So:

[a]
exten = _12X

[b](a)
exten = _1.

Would result in [b] having:
exten = _12X
exten = _1.

What's the ael equivalent?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ael vs conf

2008-12-18 Thread David fire
???

2008/12/18 Tzafrir Cohen tzafrir.co...@xorcom.com

 On Thu, Dec 18, 2008 at 10:48:03AM -0200, David fire wrote:
  hi
  what i should use? ael or conf???

 lua ?

  thanks
  David

 Silly (and untested) tip of the day:

 Instead of using include, use templates:

 If you have:


 [a]
 exten = _12X

 [b]
 include = a
 exten = _1.


 This won't work as planned, as [a] is included and checked after [b].
 So:

 [a]
 exten = _12X

 [b](a)
 exten = _1.

 Would result in [b] having:
 exten = _12X
 exten = _1.

 What's the ael equivalent?

 --
   Tzafrir Cohen
 icq#16849755  
 jabber:tzafrir.co...@xorcom.comjabber%3atzafrir.co...@xorcom.com
 +972-50-7952406   mailto:tzafrir.co...@xorcom.com
 http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



???
-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ael vs conf

2008-12-18 Thread Steve Murphy
On Thu, 2008-12-18 at 15:36 +0200, Tzafrir Cohen wrote:
 On Thu, Dec 18, 2008 at 10:48:03AM -0200, David fire wrote:
  hi
  what i should use? ael or conf??? 
 
 lua ?
 
  thanks
  David
 
 Silly (and untested) tip of the day:
 
 Instead of using include, use templates:
 
 If you have:
 
 
 [a]
 exten = _12X
 
 [b]
 include = a
 exten = _1.
 
 
 This won't work as planned, as [a] is included and checked after [b].
 So:
 
 [a]
 exten = _12X
 
 [b](a)
 exten = _1.
 
 Would result in [b] having:
 exten = _12X
 exten = _1.
 
 What's the ael equivalent?

I guess, if you use the #include filename, you could save the exten =
_12X in a file snippet and include it where you want it.

I'll have to think about how AEL might support templates, tho.

murf


Steve Murphy
Digium, Inc. | Software Developer
57 Lane 17 –Cody, WY 82414 – USA
direct: +1 256-428-6002
mobile: +1 307-899-5535
fax/home: +1 307-754-5675
irc: codefreeze | jabber: m...@digium.com
Check us out at: www.digium.com www.asterisk.org




smime.p7s
Description: S/MIME cryptographic signature
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users