[Asterisk-Users] AEL #include

Michael Collins mcollins at fcnetwork.com
Tue May 30 15:01:56 MST 2006


> Is it going to be sticking around? I sure hope so, because the
> extensions.conf language is a management nightmare. Every time you add
> logic, you have to renumber everything, and hope you don't make
mistakes
> in re-setting all the dependant goto's. It ain't exactly easy to read
> later on either.

Doug,

This may be a dumb question but I wanted to make sure: are you using the
'n' priority in your number plans?  (If not, could you let us know why?
Very curious here.)  Same question regarding the giving of names to 'n'
priorities.

Example from one of my dial plans:

exten => talk,1,ForkCDR
exten => talk,n,Set(NUMTRIES=1)
exten => talk,n,GotoIf($[${NUMTRIES} = 1]?first)
exten => talk,n(repeat),Background(Initial-greeting)
exten => talk,n(first),Wait(.1)
exten => talk,n,Festival(${fname})
exten => talk,n,Festival(${lname})
exten => talk,n,Background(If-person1)
exten => talk,n,GotoIf($[${NUMTRIES} < 2]?repeat)
exten => talk,n,Set(NUMTRIES=$[${NUMTRIES}+1])
exten => talk,n,Goto(t,1)


I know you have specific needs for your application and none of this may
apply, but I figure it's better to be certain.

Thanks for your input!
-MC




More information about the asterisk-users mailing list