QueueMetrics > General Asterisk configuration
Setup Wizard - AsteriskRealtime PostgreSQL
bauair:
Hi Everyone,
I've got PostgreSQL on my Asterisk host and i'm trying to get the configuration from my DB with the Setup Wizard and the AsteriskRealtime mode.
I installed the JDBC Version for PostgreSQL and changed the configuration.properties
default.autoconf.realtimedrv=org.postgresql.Driver
default.autoconf.realtimeuri=jdbc:postgresql://192.168.0.6/asterisk?zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false&user=test&password=testpw
My queuemetrics host connects succesfully to the asterisk host, but i get an exception
--- Code: ---Errore DB: org.postgresql.util.PSQLException:Fetch size must be a value greater to or equal to 0.
--- End code ---
I write a java application to test it. it works fine
--- Code: ---Statement st = connection.createStatement();
st.setFetchSize(10);
ResultSet rs = st.executeQuery("SELECT * FROM ast_phone");
while (rs.next()) {
System.out.println(" a row was returned. ");
}
rs.close();
--- End code ---
but if i change st.setFetchSize(-1)
--- Code: ---Statement st = connection.createStatement();
st.setFetchSize(-1);
ResultSet rs = st.executeQuery("SELECT * FROM ast_phone");
while (rs.next()) {
System.out.println(" a row was returned. ");
}
rs.close();
--- End code ---
i've got exatly the exeption.
My questions are now:
can i fix it?
how can i fix it?
is that an error of my postgresql configuration?
is it possible to connect to a postgresql asterisk host with queuemetrics?
Thank you and regards,
Bauair
QueueMetrics:
We do not support Postgres as a back-end, so I fear there would be many a case where QM fails.
You should be using a MySQL instance for the back-end.
bauair:
Thank you for fast anwser.
I've got another Question, is it possible to configure queuemetrics with the manager interface with an external asterisk server?
where can i change the options for the "Single Mashine AMI" to connect on the AMI?
Greets Bauair
QueueMetrics:
Yes absolutely - see:
--- Code: ---callfile.dir=tcp:login:passw@10.10.3.27
--- End code ---
Thanks
bauair:
Thank you again,
it works well but only for the queues, is that possible to configure the agents like the queues?
Greetings
BauAir
Navigation
[0] Message Index
[#] Next page
Go to full version