[Asterisk-Users] AEL #include

Douglas Garstang dgarstang at oneeighty.com
Tue May 30 20:13:41 MST 2006


Michael,
 
Well.... I don't know if I am missing something or not, but we have various loops and other things in there. So, we need to use the good old ugly goto().
How would goto work if all the priorities where n?
 
Doug.

	-----Original Message----- 
	From: Michael Collins [mailto:mcollins at fcnetwork.com] 
	Sent: Tue 5/30/2006 4:01 PM 
	To: Asterisk Users Mailing List - Non-Commercial Discussion 
	Cc: 
	Subject: RE: [Asterisk-Users] AEL #include
	
	

	> 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
	
	_______________________________________________
	--Bandwidth and Colocation provided by Easynews.com --
	
	Asterisk-Users mailing list
	To UNSUBSCRIBE or update options visit:
	   http://lists.digium.com/mailman/listinfo/asterisk-users
	



More information about the asterisk-users mailing list