On Sat, 2007-11-17 at 09:57 -0600, Tilghman Lesher wrote:
> 
> func_odbc.conf
> 
> [ISLOCAL]
> dsn=foo
> read=SELECT COUNT(*) FROM localexchanges WHERE prefix='${ARG1:0:6}'
> 
> extensions.conf
> 
> exten => _011-1-NXX-NXX-XXXX,1,GotoIf(${ODBC_ISLOCAL(${EXTEN:4})}?
> ${EXTEN:4},1:${EXTEN:3},1)

Very cool.  Can I do this with the asterisk database just as easily?
I've never used it before.  Maybe I need to go digging on how to use it.

Thanx!

b.



_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to