Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] func_odbc


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
BryantZ at zktech.com
Guest





PostPosted: Thu Apr 03, 2014 6:32 pm    Post subject: [asterisk-users] func_odbc Reply with 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
Back to top
rafaelsnsa at gmail.com
Guest





PostPosted: Thu Apr 03, 2014 8:46 pm    Post subject: [asterisk-users] func_odbc Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services