[asterisk-users] modifying a dialed exension before dialplan processing

Brian J. Murrell brian at interlinx.bc.ca
Sat Nov 17 10:28:20 CST 2007

On Sat, 2007-11-17 at 09:57 -0600, Tilghman Lesher wrote:
> func_odbc.conf
> 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.



More information about the asterisk-users mailing list