QueueMetrics forum
QueueMetrics => General Asterisk configuration => Topic started by: bauair on September 15, 2010, 16:04:15
-
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
Errore DB: org.postgresql.util.PSQLException:Fetch size must be a value greater to or equal to 0.
I write a java application to test it. it works fine
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();
but if i change st.setFetchSize(-1)
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();
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
-
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.
-
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
-
Yes absolutely - see:
callfile.dir=tcp:login:passw@10.10.3.27
Thanks
-
Thank you again,
it works well but only for the queues, is that possible to configure the agents like the queues?
Greetings
BauAir
-
? Not sure I understand? You mean auto-config?
-
Yes,
if i choose "Single Mashine" at the AutoConfig, queuemetrics generate the queues from my asterisk host, but only the queues. is it possible that QM configure the agents too?
Greets Bauair
-
It should understand the agents as well - how do you set them up? because if you set up using e.g. ADDMEMBER there is no way for QM to guess who could they be.