Tải bản đầy đủ
2 Configure MySQL ODBC for Windows

2 Configure MySQL ODBC for Windows

Tải bản đầy đủ

Select the Uer DSN tab and click on the “Add” button.

Scroll to the bottom of the list, and select "MySQL ODBC 3.51 Driver" (see arrow), then
click the Finished button.
When following dialog box appears, fill in the following information:

TRIXBOX-2 Without Tears

Page 179 of 248

Data Source Name: TrixBox CDR
Description: Call Detail Reporting
Server: 192.168.1.100 (your server IP address)
User: reports (the username you created in phpMyAdmin previously)
Password: passw0rd (the password that we entered in phpadmin earlier)
Database: asteriskcdrdb
Once this is done, click "Test" to ensure that the connection is working

Click "Ok" to save and finish and “OK” again to close the ODBC dialog box.

42.3 CONNECTING USING MSACCESS
To connect to the CDR database using MSACCESS, you must first create a blank
database. Once the blank database has been created, the CDR table from MySQL can
then be linked to the MSACCESS database that you have created. Once doce, you can
start working on the data. Those familiar with Access can start creating a special
application for their use.
Create an empty ACCESS database. Call it reporting or whatever you like.

TRIXBOX-2 Without Tears

Page 180 of 248

Select Tables as illustrated by the arrow above.

Select and click on File (see red arrow). The next screen will appear.

TRIXBOX-2 Without Tears

Page 181 of 248

Select “Get External Data” and choose “Link Tables…” and click.
On the explorer’s screen that follows, click the drop down on the “Files of type” and select
“ODBC Database()” – see illustration below.

On the screen that follows, select the “Machine Data Source” tab and select Trixbox CDR
and click on “OK”.
When the following dialog box appears, select “cdr” and click “OK”

Click “OK” again when the following dialog box appears.

TRIXBOX-2 Without Tears

Page 182 of 248

When you press OK, the CDR table will be linked to the blank Access Database and you
can start looking at the data by clicking on the “cdr” table.

Now if you click on the “cdr” table and it will open and display the data in the table in
MSACCESS – see below.

View of CDR table through MSACCESS

TRIXBOX-2 Without Tears

Page 183 of 248

43 MY TRIXBOX® PBX NETWORK
The following is a representation of my network schematic on my Local Area Network with
my Asterisk box as I have done according to my narration above.

My VOIP Network

IBM

VOIP Service Provider

Internet

PSTN
8 Ports router
192.168.1.1
SPA3000
TALK / DATA
TALK

RS CS TR RD TD CD

Broadband Modem

192.168.1.10

1 2

6
9

8

#

*

Asterisk PC (IPBX)
192.168.1.101

3

4 5
7 8

C3010-2E
192.168.1.11

1
4

2
5

PC
192.168.1.21

3
6

7

8

9

*

8

#

C3010-2E
192.168.1.12
PC
192.168.1.22

PC using SoftPhone
(X-Ten)
192.168.1.20

1 2

3

4 5

6

7 8

9

8

#

*

C3010-2E
192.168.1.13
Through PSTN if network down

PSTN Traffic to/from PBX

VOIP Traffic

TRIXBOX-2 Without Tears

Network Server
192.168.1.100

PC
192.168.1.23

ALL IP Phones and ATA registered to Asterisk
Asterisk registered to VOIP Service Provider/s

Page 184 of 248

44 TROUBLE SHOOTING
With any installation, you will find some unexpected problems. Some are inherent issues
due to bugs or undocumented features, while others are unintentional mistakes.
We will endeavour to list troubleshooting tips as we experience them (or those suggested
by other users). These will be added progressively as we encounter them.

44.1 DEBUG MESSAGES AND LOG FILES ARE YOUR FRIENDS
Whenever problem strikes, there is always a reason for it. To assist you in locating the
problem, generally there are 2 places that you can have a look at – the Asterisk Log
Files, under TOOLS (which will give you the last 2000 entried in the log).

The other is to monitor the activities of your Trixbox using the following command at the
command line (which will give you the Asterisk CLI).
Asterisk –rvvvv (the “v” depends on the level of verbosity you need)

Studying the activities will give you an indication of what has gone wrong.

TRIXBOX-2 Without Tears

Page 185 of 248

44.2 UNABLE TO LOG ON TO PACKAGES?
From time to time, you may be having problem logging on to “Packages” to
install/uninstall or update Trixbox modules. This has happened to me a number of time
which made me post in the Trixbox forum thinking that I may have done something
wrong.
One such exampple is when I need to get the package that allow me to get tp PHPADMIN
through thr GUI. After a number of tries I resorted to installig it manually uing the
following command at the command line:
yum install tbm-phpmyadmin
This difficulty is due to the delay in connecting to the site (depending on how busy the site
is at the time) and you get connection time out. Trying again later may solve this problem
or you may use a hammer and fix it by changing an entry in the etc/php.ini file.
Change the max_execution_time from 30 to 60 may solve this problem. All it does is to
wait 60 seconds before reporting a time out.
You may additionally delete guidRegistered using the following command:
rm /var/www/html/maint/cache/guidRegistered
Reboot and you should be on your way.

44.3 ASTERISK FEATURE CODES NOT WORKING
If you are using ATAs such as the Sipura SPA3K, Linksys PAP2 etc., you will need to
delete all the Vertical Service Feature codes in the ATA, otherwise the Asterisk feature
codes such as *77, *99 etc may not work. This is caused by the ATA intercepting the
codes thinking that it is its own feature codes.
This also applies to all other ATAs, FXS devices such as the various routers with built-in
FXS ports and IP Phones that has their own feature codes built-in. Unless these feature
codes are disabled, they are likely to clash with Asterisk's feature codes and as such
Asterisk feature codes will not give you the desired results.

44.4 ASTERISK DROPS CALLS AFTER A FEW SECONDS
If Asterisk rings an extension but drops the calls too soon before it was answered,
chances are, you may have set the ‘Number of seconds to ring phones before sending callers
to voicemail:’ too short. This setting can be found in the General Setting under
Voicemail.

44.5 PENNYTEL ASTERISK PROBLEM
Pennytel, for some reason rejects user agent if it is Asterisk. To work around this, you
are required to introduce the following line in your sip.conf under [general]
useragent = My PABX ; required if you are with Pennytel
The user agent can be any string as long as it is not Asterisk.

44.6 UNABLE TO RECEIVE INCOMING CALLS
If you are unable to receive incoming calls, chances are that you may have missed setting
up the incoming call handling as suggested in the previous sections of this guide.

TRIXBOX-2 Without Tears

Page 186 of 248