View previous topic :: View next topic |
Author |
Message |
BryantZ at zktech.com Guest
|
Posted: Thu Apr 03, 2014 6:32 pm Post subject: [asterisk-users] func_odbc |
|
|
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 |
|
Back to top |
|
|
rafaelsnsa at gmail.com Guest
|
Posted: Thu Apr 03, 2014 8:46 pm Post subject: [asterisk-users] func_odbc |
|
|
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
[/url]
2014-04-03 20:32 GMT-03:00 Bryant Zimmerman <BryantZ@zktech.com (BryantZ@zktech.com)>:
Quote: | 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 [url=http://www.api-digital.com]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
|
|
|
Back to top |
|
|
|