Func_odbc

Home » Asterisk Users » Func_odbc
Asterisk Users 1 Comment

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

One thought on - 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*
    <http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>

    2014-04-03 20:32 GMT-03:00 Bryant Zimmerman :