[Asterisk-Dev] Wish List / Brain Storm from AstriCon

Thomas Horsten thomas at horsten.com
Tue Sep 28 16:01:00 MST 2004


On Tue, 28 Sep 2004, Robert Jackson wrote:

> exten => s,@,[Some App]
>
> And have it automatically run before going to priority #1.  This would
> be very helpful if you have to preform some macro or other procedure
> before everything else.  Currenlty to get the same functionality you
> have to renumber all the other priorities.
>
> I could be completely off with this one, but that is what I understood.

Something what would (IMHO) be more useful is "#" expansion, which
basically auto-assigns the next available priority in the order the lines
are encountered.. So you could do:

exten => s,#,Answer
exten => s,#,SomeApp
exten => s,#,SomeOtherApp

and when the config file is parsed, these are assigned 1,2,3 dynamically,
based on the order they are listed.

Would make it a lot easier to edit simple "exten" scripts.

Thomas




More information about the asterisk-dev mailing list