Tải bản đầy đủ
33.2 To Restore a Backup

33.2 To Restore a Backup

Tải bản đầy đủ

34 SUGARCRM
SugarCRM is a contact management software that comes bundled with Trixbox.
To set up SugarCRM, first, you need to open the SugarCRM application
http:///crm using the default username of Admin and the
password of password.
For security reason you should change the Admin password. To do this, click on 'My
Account' in the upper right-hand corner, then click on the 'Change Password' button
underneath 'Users: Administrator (Admin) in the center-left of the screen.
Change it to a new password and confirm your new password and click 'Save.'
Now it's time to set up your contacts. I will start off setting up a couple of my internal
extensions.
Click on 'My Account' again and then click the 'Edit' button.
Change 'Asterisk Phone Extension' to your Asterisk extension. My extension is 2001.
While you are at it, change your time zone and date format as well.
Click 'Save' to save that information.
Let's add another one.
Click on the contacts tab and then select 'Create Contact' from the left hand Shortcuts
menu.
Add another extension, in my case I chose my daughter’s extension 2002:
Firstname: Norsurya
Last name: Sharif
Home: 2002
Click 'Save' to save that information.
Add another and another if you want to, using the method above.
At this point, you may find that you are unable to make a phone call through SugarCRM.
This is due to a little bug in the popup_picker.php (this bug may have been fixed by the
time you read this, but at the time of writing, this bug exists).
To fix this bug, you need to edit popup_picker.php by doing the following:
From your Linux CLI, log in as root.
cd /var/www/html/crm/modules/Contacts
nano Popup_picker.php
Browse down to line 121 and change it from:
$number =

preg_replace ( "/[^\d\*]/", "", $number );

To
$number =

preg_replace ( "/[^\d\*]/", "", $display_number );

TRIXBOX-2 Without Tears

Page 153 of 248

You should now be able to dial from SugarCRM to your other internal extensions and to
the outside world.

You can add multiple users who will each have their own settings/contacts etc.

TRIXBOX-2 Without Tears

Page 154 of 248

35 USB PHONE SUPPORT
Most USB Phones are pre-configured for use with Skype and as a result some USB
Phone users are experiencing difficulties using the USB phones dial pads to dial out using
providers other than Skype especially when using SIP. Special driver are usually
required.
The following are links, which may interest USB phone users, where appropriate drivers
may be found. Users may have to try different drivers to find a suitable one.
http://www.yealink.com/english/support.htm
http://www.packetizer.com/products/
http://www.sednacomputer.com/products/se-p1k.html
http://www.welltech.com/product_e_06.htm
http://www.waytec.com.au/download.htm
http://www.pc-telephone.com/free-phone.htm
http://www.sjlabs.com/usbphone/SJphoneDriverATCOM-AU-100.exe

TRIXBOX-2 Without Tears

Page 155 of 248

36 CODEC (CODER DECODER)
When making a call over the net, the software (soft-phone) or hardware needs to use a
codec so as to send/receive information in a certain format and convert it to what you
hear. What this means to you and me is that codecs compress data, allow you to transmit
the compressed data which is then uncompressed at the receiving end. If you compress
something with G729 and you don't have that installed, then you wont be able to
decompress it and vice versa.

g729 does not come preinstalled with Asterisk – you will need to purchase it.

Different codecs have different compression ratios resulting in different bandwidth
requirements. Generally the higher the compression the more CPU power required to
compress, and sometimes decompress.
In most cases this means:
• Higher compression = More CPU power = Lower Bandwidth
• Lower compression = Less CPU power = More Bandwidth
So the more bandwidth you have, the less need for a higher compression ratio and the
less powerful the CPU that will be needed.
Most VoIP providers/hardware/licensed software will support G711 and G729 (However
be sure to check this before purchasing hardware, or signing up with a VoIP provider!),
with G711 requiring almost 3 times as much bandwidth, and providing excellent quality
and the G729 providing quality similar to a good mobile call but using less bandwidth.
Below are the approximate bandwidth requirements for Several Common VoIP
Compression Algorithms using SIP. They vary slightly depending on the protocol used.
Codec
G.711
G.729
G.723.1
GSM
iLBC
G.723.1
G.726
G.726
G.728

Codec Bit Rate
(Kbps)
64
8
6.4
13.2
15.2
5.3
32
24
16

Nominal Ethernet
Bandwidth (Kbps)
87.2
31.2
21.9
28.7 approx
30.83 approx
20.8
55.2
47.2
31.5

Approx. MBytes
usage per hour
39.24
14.04
9.86
12.92 approx
13.87 approx
9.36
24.84
21.24
14.18

Codecs used by TRIXBOX reside in the /usr/lib/asterisk/modules directory.
The following links will give you some indications of the bandwidth usage of the various
codecs that you may be using or contemplating on using.
http://www.asteriskguru.com/tools/bandwidth_calculator.php
http://www.cisco.com/en/US/tech/tk652/tk698/technologies_tech_note09186a0080094ae2.shtml
http://www.voip-calculator.com/calculator/lipb/
http://www.connect802.com/voip_bandwidth.php
http://www.newport-networks.com/pages/voip-bandwidth-calculator.html
There are others. All you have to do is Google for them ☺

TRIXBOX-2 Without Tears

Page 156 of 248

36.1 INSTALLING G729 AND G723 CODECS
If you have the licence for the g729 codec and found that the digium version of g729
is a little problematic and would like to try the free version, following is the method of
installing it as described by David Klaverstyn – thanks David.

DISCLAIMER:
You might have to pay royalty fees to the G.729/723 patent holders for using their
algorithm.
Before downloading the codec module you need to verify what your processor type is,
as to get a compatible compiled codec.
From the Linux command type in:
# cat /proc/cpuinfo
Look specifically at the model name and the flags. The following is an example of the
process that I am using.
Process:
0
vendor_id:
GenuineIntel
cpu family:
6
model:
8
model name:
Pentium III (Coppermine)
stepping:
3
cpu MHz:
648.110
cache size:
256 KB
fdiv_bug:
no
hlt_bug:
no
f00f_bug:
no
coma_bug:
no
fpu:
yes
fpu_exception:
yes
cpuid level:
2
wp:
yes
flags:
fpu vme de pse tsc msr pae mce cx8 mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips:
1297.41

From this information we can see that it is a Pentium III processor and it is using sse.
This is the 2 bits of required information that we need. If you don’t see sse in your
flag then the file you need must contain the words no-sse.
Now go to http://kvin.lv/pub/Linux/Asterisk/ and select wither Asterisk version 1.2 or 1.4
depending on the version you are using.
The files are named as codec_g72x-???-pentiumx.so
So from the information above to obtain the G729 codec we need to get the file
codec_g729-gcc-pentium3.so and for the G723 codec we need to get the file g723gcc-pentium3.so
The gcc represents the way the module was compiled. This is your most likely
choice. To view the different type of compiled version look at this file
http://kvin.lv/pub/Linux/Asterisk/README
Now that we know what file we need you can now download the appropriate file.
Change folders to /usr/lib/asterisk/modules
# cd /usr/lib/asterisk/modules

TRIXBOX-2 Without Tears

Page 157 of 248

Download the required file(s)

For the G729 codec
For Pentium III
# wget http://kvin.lv/pub/Linux/Asterisk/codec_g729-ast14-gcc4-

glibc-pentium3.so
For Pentium IV
# wget http://kvin.lv/pub/Linux/Asterisk/codec_g729-ast14-gcc4-

glibc-pentium4.so
For the G723 codec
For Pentium III
# wget http://kvin.lv/pub/Linux/Asterisk/codec_g723-ast14-gcc4-

glibc-pentium3.so
For Pentium IV
# http://kvin.lv/pub/Linux/Asterisk/ codec_g723-ast14-gcc4-glibc-

pentium4.so
Rename those files to codec_g729.so or codec_g723.so accordingly.
Restart asterisk and you are done.
If Asterisk does not start then you may need to try icc files instead of gcc.

36.2 TO INSTALL CODECS ON PIAF
All processors EXPERIMENTAL and please ensure that this script is only used on
PiaF or the codecs may not work. (unfortunately celeron processors are not supported).









Log onto PBX in a Flash via the CLI (Command Line Interface) as user root
cd /root
wget http://www.pbxinaflash.org/scripts/install-codecs.x.gz
gunzip install-codecs.x.gz
chmod +x install-codecs.x
./install-codecs.x
In the program you will have to agree to the license before the install can
continue
you will then be prompted to choose the type of processor you have. You
must choose the correct processor or else Asterisk will stop working!
rm -f install-codecs.x

To check if the codecs has been properly installed, at the Asterisk CLI type the
following:
core show translation

TRIXBOX-2 Without Tears

Page 158 of 248