[Asterisk-Users] Re: Asterisk at large

Eric "ManxPower" Wieling eric at fnords.org
Fri Mar 3 09:47:37 MST 2006


> On Thu, Mar 02, 2006 at 04:14:34PM -0700, Douglas Garstang wrote:
>> The best way to achieve maximum manageability is to design a MySQL database and develop AGI scripts (in your language of choice) that work to that design. I've found that it has been far easier to develop complex routing logic in python than it is in the horrible assembler-like Asterisk extensions.conf language. In a perfect world, there would be _ONE_ line in your extensions.conf, and it would be:
>>
>> exten => _.,1,AGI(routing_script)

I assume your routing script handles exten => h (which is called when 
the call disconnects), exten => i (which is handled when an invalid 
number is dialed), as well as extens "a", "o" and others?

Because the above pattern match also matches the extensions I just 
mentioned.  Perhaps you would condsider using exten => _X.  that will 
only match extensions that are all numbers AND are at least 2 digits long.



More information about the asterisk-users mailing list