Hi,
Thanks for responding.
Tried that. I assume you are looking for traffic arriving at the db server?
Either way, this filter shows nothing at the source end and and nothing at the destination either when completing a call.
I have added some log entries to track what was happening.
Here are the errors with the dsn set up as normal...
Loading...
2015-02-23 16:32:21.693244 [CONSOLE] switch_loadable_module.c:1935 Stopping: mod_nibblebill
2015-02-23 16:32:21.693244 [CONSOLE] switch_loadable_module.c:1955 mod_nibblebill unloaded.
2015-02-23 16:32:21.693244 [ERR] mod_nibblebill.c:147 Handle using: [freeswitch:opensips:opensipsrw] Global: [freeswitch:opensips:opensipsrw]
2015-02-23 16:32:21.693244 [CRIT] switch_core_sqldb.c:482 Failure! ODBC NOT AVAILABLE! Can't connect to DSN freeswitch
2015-02-23 16:32:21.693244 [CRIT] mod_nibblebill.c:294 Cannot Open ODBC Database!
2015-02-23 16:32:21.693244 [CONSOLE] switch_loadable_module.c:1465 Successfully Loaded [mod_nibblebill]
Call end...
2015-02-23 16:45:38.933258 [ERR] mod_nibblebill.c:147 Handle using: [freeswitch:opensips:opensipsrw] Global: [freeswitch:opensips:opensipsrw]
2015-02-23 16:45:38.933258 [CRIT] switch_core_sqldb.c:482 Failure! ODBC NOT AVAILABLE! Can't connect to DSN freeswitch
2015-02-23 16:45:38.933258 [ERR] mod_nibblebill.c:202 Unable to retrieve handle2: [freeswitch:opensips:opensipsrw]
2015-02-23 16:45:38.933258 [CRIT] mod_nibblebill.c:584 Failed to log to database!
2015-02-23 16:45:38.933258 [ERR] mod_nibblebill.c:147 Handle using: [freeswitch:opensips:opensipsrw] Global: [freeswitch:opensips:opensipsrw]
2015-02-23 16:45:38.933258 [CRIT] switch_core_sqldb.c:482 Failure! ODBC NOT AVAILABLE! Can't connect to DSN freeswitch
2015-02-23 16:45:38.933258 [ERR] mod_nibblebill.c:183 Unable to retrieve handle1: [freeswitch:opensips:opensipsrw]
2015-02-23 16:45:38.933258 [ERR] mod_nibblebill.c:429 Error running this query: [SELECT balance AS nibble_balance FROM accounts WHERE billingid='1204' and plan='0']
And just with the dsn name...
Loading...
2015-02-23 16:33:37.473239 [CONSOLE] switch_loadable_module.c:1935 Stopping: mod_nibblebill
2015-02-23 16:33:37.473239 [CONSOLE] switch_loadable_module.c:1955 mod_nibblebill unloaded.
2015-02-23 16:33:37.473239 [ERR] mod_nibblebill.c:147 Handle using: [freeswitch] Global: [freeswitch]
2015-02-23 16:33:37.473239 [CONSOLE] switch_loadable_module.c:1465 Successfully Loaded [mod_nibblebill]
Call end...
2015-02-23 16:34:10.793251 [ERR] mod_nibblebill.c:147 Handle using: [freeswitch] Global: [freeswitch]
2015-02-23 16:34:10.793251 [ERR] mod_nibblebill.c:195 Reached here okay2: [freeswitch]
2015-02-23 16:34:10.793251 [ERR] switch_core_sqldb.c:586 NATIVE SQL ERR [no such table: accounts]
UPDATE accounts SET balance=balance-round(0.030000+0.0004,3) WHERE billingid='1204' and plan='0'
2015-02-23 16:34:10.793251 [CRIT] mod_nibblebill.c:584 Failed to log to database!
2015-02-23 16:34:10.793251 [ERR] mod_nibblebill.c:147 Handle using: [freeswitch] Global: [freeswitch]
2015-02-23 16:34:10.793251 [ERR] mod_nibblebill.c:176 Reached here okay1: [freeswitch]
2015-02-23 16:34:10.793251 [ERR] switch_core_sqldb.c:1196 SQL ERR: [SELECT balance AS nibble_balance FROM accounts WHERE billingid='1204' and plan='0'] no such table: accounts
2015-02-23 16:34:10.793251 [ERR] mod_nibblebill.c:429 Error running this query: [SELECT balance AS nibble_balance FROM accounts WHERE billingid='1204' and plan='0']
Here is the isql output.
This is with USER and PASSWORD set in odbc.ini but the above errors are the same whether they are set or not in the ini file.
[root@GC007MS ~]# isql freeswitch
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> ^C
Regards
Chris
From: freeswitch-users-bounces@lists.freeswitch.org <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Sergey Safarov <s.safarov@gmail.com>
Sent: 23 February 2015 16:00
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Nibblebill issues on centos 6?
Can you save tcpdump of mysql connection and parce it in wireshark?
tcpdump -ni eth0 port 3306 -s 65535 -w /tmp/mysql.pcap
I think FS has compiled with version of mysql lib is different then used server on CentOS 5