Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - trymes

Pages: 1 2 3 [4] 5 6
46
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: November 16, 2010, 21:11:38 »
Can either of you confirm how the default and NULL items ought to be set? In the original bug report and Voip-Info report, IIRC, they had it set to NOT NULL and default '', while moa has his time clumn set to NULL = YES and defauly NULL.

I doubt it will make a difference, but....

Tom

47
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: November 09, 2010, 19:04:40 »
No news is bad news, I presume?

Come on, this is a published feature of the program, I can only presume that the devs had it working at some point?

Tom

48
MySQL storage and Qloaderd/Uniloader / Re: Realtime queue_log
« on: November 03, 2010, 21:54:53 »
I have been banging my head against this particular wall for a while now. See my thread in the installation forum here: http://forum.queuemetrics.com/index.php?topic=1061.0

If anyone has the Realtime queue_log up and working, please let me know. If you're looking for a solution yourself, check the other thread, once I find one I will update it.

Tom


49
Improving QueueMetrics / Automatic license Transfer
« on: November 03, 2010, 21:51:07 »
I am really sick of having to move my license into a new version of QM every time yum updates it. Why can't the license be stored in a Database or somewhere else that doesn't require manual intervention at every upgrade?

Just a thought,

Tom

50
QueueMetrics installation / Release notes for 1.6.2.1?
« on: November 03, 2010, 21:46:52 »
I see 1.6.2.1 is out, but I do not see any release notes. Where should I look?

Tom

51
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: November 03, 2010, 18:43:04 »
OK, so to clear things up, I tried the ALTER statement, and I get this error still. How, I do not know.

Code: [Select]
/var/log/asterisk/full:[Nov  3 13:37:57] VERBOSE[25801] config.c:   == Binding queue_log to mysql/general/queue_log
/var/log/asterisk/full:[Nov  3 13:37:57] WARNING[25801] res_config_mysql.c: Realtime table general@queue_log: column 'time' cannot be type 'int(10) unsigned' (need char)

So, I thought, let's just delete the whole table and start again. Which I did. I used this to create the table:

Code: [Select]
CREATE TABLE `queue_log` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `time` varchar(30) NOT NULL default '',
  `callid` varchar(32) NOT NULL default '',
  `queuename` varchar(32) NOT NULL default '',
  `agent` varchar(32) NOT NULL default '',
  `event` varchar(32) NOT NULL default '',
  `data` varchar(255) NOT NULL default '',
  PRIMARY KEY (`id`)
);

I still get the same error. Any ideas? I mean, I can only presume that you guys had this working at some point in order to implement the functionality on QM? Can you look at how the development machine was set up and tell me if it differs from what I am doing?

Tom

52
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: November 03, 2010, 17:34:16 »
OK, I haven't tried firing up the queue_log via MySQL again, but here is what happened when modifying my table. It seems as if no data was lost (not that I had much real data...).

Code: [Select]
mysql> use asterisk;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from queue_log;
+----+------------+------------------+-----------+------------------------+----------------+----------+
| id | time       | callid           | queuename | agent                  | event          | data     |
+----+------------+------------------+-----------+------------------------+----------------+----------+
|  1 | 1288362313 | NONE             | NONE      | NONE                   | CONFIGRELOAD   |          |
|  2 | 1288362334 | 1288362186.10990 | 400       | Local/127@from-queue/n | COMPLETECALLER | 11|132|2 |
+----+------------+------------------+-----------+------------------------+----------------+----------+
2 rows in set (0.01 sec)

mysql> ALTER TABLE `queue_log` CHANGE `time` `time` VARCHAR( 30 ) NOT NULL;
Query OK, 2 rows affected (0.03 sec)
Records: 2  Duplicates: 0  Warnings: 0

mysql> select * from queue_log;
+----+------------+------------------+-----------+------------------------+----------------+----------+
| id | time       | callid           | queuename | agent                  | event          | data     |
+----+------------+------------------+-----------+------------------------+----------------+----------+
|  1 | 1288362313 | NONE             | NONE      | NONE                   | CONFIGRELOAD   |          |
|  2 | 1288362334 | 1288362186.10990 | 400       | Local/127@from-queue/n | COMPLETECALLER | 11|132|2 |
+----+------------+------------------+-----------+------------------------+----------------+----------+
2 rows in set (0.00 sec)

I will test this once call volume is down.

Tom

53
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: November 01, 2010, 14:45:17 »
Any ideas out there?

54
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: October 29, 2010, 16:32:08 »
OK, so after Googling some more I found this post, and it was something stupid. The format of the extconfig.conf file has changed in asterisk 1.6, such that you reference the context in that file ("general" in my example) instead of the database name. I modified my extconfig.conf to point there, and it seemed to load up.

However, I now get this message:

Code: [Select]
[Oct 29 10:25:34] WARNING[9853] res_config_mysql.c: Realtime table general@queue_log: column 'time' cannot be type 'int(10) unsigned' (need char)
I double checked the table creation instructions from voip-info, and it shows this relevant piece:

Code: [Select]
`time` int(10) unsigned default NULL,
So, any ideas on how I need to modify my queue_log table?

Tom

EDIT: The only thing I found on google was this IRC log: http://ibot.rikers.org/%23asterisk/20090728.html.gz

The relevant snippet (it looks like he solved his own problem?):
Code: [Select]
16:23.41 cusco__ hi
16:23.43 cusco__ "require_mysql: Realtime table general@csr_queue: column 'time' cannot be type 'int(10) unsigned' (need char)"
16:23.48 cusco__ what type must it be?
16:25.44 cusco__ type char
16:25.45 cusco__ ok
16:25.46 cusco__ lol

Before I go messing about with MySQL, can someone confirm, maybe provide a little handholding on how to modify my existing table and/or delete the existing table and properly create a new one?

Loway, maybe y'all could test this out and provide a working config, considering this is a published feature of the software? I am, by no means, an experience MySQL user.

55
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: October 29, 2010, 16:20:41 »
OK, some more results:

Code: [Select]
vox*CLI> core show config mappings
Config Engine: pgsql
Config Engine: odbc
Config Engine: mysql
Config Engine: curl

Code: [Select]
vox*CLI> module show like mysql
Module                         Description                              Use Count
app_cbmysql.so                 CBMysql conference scheduling            0       
res_config_mysql.so            MySQL RealTime Configuration Driver      0       
app_addon_sql_mysql.so         Simple Mysql Interface                   0       
cdr_addon_mysql.so             MySQL CDR Backend                        0       
4 modules loaded

But this is what the problem is in my mind:

Code: [Select]
[Oct 29 10:17:22] VERBOSE[9785] config.c:   == Binding queue_log to mysql/asterisk/queue_log
[Oct 29 10:17:22] WARNING[9785] res_config_mysql.c: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf

Something is wrong with res_mysql.conf such that Asterisk cannot find the MySQL database named "asterisk", even though it is there, and the user "asteriskuser" as defined in res_mysql.conf can access it.

Tom

56
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: October 28, 2010, 19:01:55 »
I'll give those options a try. I do know that MySQL is indeed loaded and functional, as Elastix uses it for CDRs.

Tom

57
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: October 27, 2010, 00:07:26 »
OK, I got impatient and just changed /etc/asterisk/res_mysql.conf, given that I could see no harm. After doing that and restarting asterisk, I now get this in the full log:

Code: [Select]
[Oct 26 17:07:50] WARNING[25195] config.c: Realtime mapping for 'queue_log' found to engine 'mysql', but the engine is not available
It seems that the logger is starting before the mysql engine is loaded. If I reload asterisk, I then get this error again:

Code: [Select]
[Oct 26 17:47:41] VERBOSE[12854] config.c:   == Binding queue_log to mysql/asterisk/queue_log
[Oct 26 17:47:41] WARNING[12854] res_config_mysql.c: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf)

This is my res_mysql.conf file:

Code: [Select]
;
; Sample configuration for res_config_mysql.c
;
; The value of dbhost may be either a hostname or an IP address.
; If dbhost is commented out or the string "localhost", a connection
; to the local host is assumed and dbsock is used instead of TCP/IP
; to connect to the server.
;
; Modified "dbname" to "asterisk" from "asteriskrealtime" as part of enabling
; realtime storage of queue_log. - Tom Rymes 10-26-10
[general]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = asteriskuser
dbpass = eLaStIx.asteriskuser.2oo7
;dbport = 3306
;dbsock = /var/lib/mysql/mysql.sock

I don't think that permissions issues are the problem here, as I can connect to the database from the command line:
Code: [Select]
[root@vox ~]# mysql -u asteriskuser -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2293
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use asterisk;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from queue_log;
Empty set (0.00 sec)

mysql>
So, I am stumped here. Going to switch back to the old method until someone can point me in the right direction....

Tom


58
I would also agree that having the sound active other than when the call is waiting would be annoying at the least. That call could go on for 10+ minutes!

Can y'all confirm what the proper method is to disable the "ding-dong" on page reload? Should I comment out the line for yellow alarm, or is that sound file also played on some other occasion?

Tom

59
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: October 26, 2010, 17:23:43 »
Sure enough, it was there. Don't know how I missed it the first time....

Code: [Select]
[Oct 25 14:48:43] VERBOSE[28356] config.c:   == Binding queue_log to mysql/asterisk/queue_log
[Oct 25 14:48:43] WARNING[28356] res_config_mysql.c: MySQL RealTime: Invalid database specified: 'asterisk' (check res_mysql.conf)
[Oct 25 14:48:43] VERBOSE[28356] logger.c:  Asterisk Queue Logger restarted
[

So, I checked my res_mysql.conf and found:

Code: [Select]
;
; Sample configuration for res_config_mysql.c
;
; The value of dbhost may be either a hostname or an IP address.
; If dbhost is commented out or the string "localhost", a connection
; to the local host is assumed and dbsock is used instead of TCP/IP
; to connect to the server.
;
[general]
dbhost = 127.0.0.1
dbname = asteriskrealtime
dbuser = asteriskuser
dbpass = eLaStIx.asteriskuser.2oo7
;dbport = 3306
;dbsock = /tmp/mysql.sock

I checked MySQL and found this:
Code: [Select]
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| asterisk           |
| asteriskcdrdb      |
| meetme             |
| mya2billing        |
| mysql              |
| queuemetrics       |
| roundcubedb        |
| test               |
| vtigercrm510       |
+--------------------+
10 rows in set (0.01 sec)

You'll notice that there is no "asteriskrealtime" database as specified in the res_mysql.conf file. Before I just modify the file, does anyone have some pointers? Keep in mind that this is an Elastix 2.0 box running FreePBX.

Tom

60
QueueMetrics installation / Re: QM 1.6 and realtime queue_log
« on: October 26, 2010, 14:15:03 »
I did not see anything, but I'll go back and scour it.

Pages: 1 2 3 [4] 5 6