Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Generic Database plugin is configured by adding a crm- plugin section to the Noojee Answer xml configuration file:

...

linenumberstrue

...

.

...

Read more about configuring Noojee Answer 03. Configuration.

...

Code Block
linenumberstrue
<crm-plugin>
    <class>au.com.noojee.answerbar.server.plugin.JdbcPlugin</class>
        <params>
	    <jdbcUrl>jdbc"plugins": {
    "JdbcPlugin": {
       "params.jdbcUrl": "jdbc:mysql://127.0.0.1/asterisk?user=asterisk&password=fred
	    </jdbcUrl>
	    <driverClass>com",
       "params.driverClass": "com.mysql.jdbc.Driver</driverClass>
	    <query>callDriver",
       "params.query": "call getData(?,?,?,?,?,?,?,?)</query>
	    <channelVariable>account</channelVariable>
	    <channelVariable>country</channelVariable>
	</params>
	<filter>
	    <didPattern>410</didPattern>
	    <queue>test</queue>
	</filter>
</crm-plugin>",
       "channelVariables": ["account","country"]
    }
  },

Note: Escaping special charactersGeneric Database

...