The default method to include is #include, follow my func_odbc.conf
#include /opt/ipbx/asterisk/func_odbc.conf
[AGENDA]
dsn=asterisk
readsql=SELECT * FROM contacts ORDER BY code ASC
mode=multirow
And the included file /opt/ipbx/asterisk/func_odbc.conf:
[BLACKLIST]
dsn=asterisk
readsql=SELECT COUNT(*) AS count FROM blacklist WHERE
(calleridnum='${ARG1}' OR calleridnum = NULL) AND
(dest='${ARG2}' OR dest NULL)
Att,
*Rafael dos Santos Saraiva*
<http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>
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>