[Asterisk-Users] Dynamically setting up/tearing down extensions
Mark Spencer
markster at digium.com
Tue Jul 22 03:47:45 MST 2003
> Well, I'd certainly be willing to pick up the project from you. I think it
> should be done in the core, rather than in a module, but that's just my
> observation, and I've only taken a very cursory look at certain parts of
> the Asterisk source.
The "proper" way to link extensions from a database, LDAP, etc. would be
via the switch interface, where you implement canexist, exists, matchmore,
and exec for each channel. Note how the IAX and IAX2 switches work. The
problem with this and MySQL is letting MySQL understand Asterisk-style
pattern matching, although I suppose one could do something like:
for 6000:
select * from extens where exten='6000' or exten rlike '[6XN][0X][0X][0X]'
Anyway if anyone knows an easy fix that would be cool.
Mark
More information about the asterisk-users
mailing list