[asterisk-users] func_odbc

Rafael dos Santos Saraiva rafaelsnsa at gmail.com
Thu Apr 3 20:45:48 CDT 2014

The default method to include is #include, follow my func_odbc.conf
#include /opt/ipbx/asterisk/func_odbc.conf

readsql=SELECT * FROM contacts ORDER BY code ASC

And the included file /opt/ipbx/asterisk/func_odbc.conf:
readsql=SELECT COUNT(*) AS count FROM blacklist WHERE
(calleridnum='${ARG1}' OR calleridnum = NULL) AND (dest='${ARG2}' OR dest =

*Rafael dos Santos Saraiva*

2014-04-03 20:32 GMT-03:00 Bryant Zimmerman <BryantZ at zktech.com>:

> Hi All
> Anyone know how to do include files with func_odbc.conf?
> I now have several pages of functions in my func_odbc.conf and it is
> getting harder to maintain it.
> I would like to break them up into files by category. The standard method
> of using the #include does not seem to work .
> Ideas are appreciated.
> Bryant
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140403/c10eb7f5/attachment.html>

More information about the asterisk-users mailing list