Tải bản đầy đủ
4 Setting up an IAX Softphone

4 Setting up an IAX Softphone

Tải bản đầy đủ

The next option to take care of is the Account option. Apart from that, there is nothing
else critical to be done for you to use IDEFISK.

24.4.2 Accounts options
Next click on the Account Options and set up your account as per the image below.

The rest of the options are there for you to set up your sound preference and customize
your look and feel. They are pretty straightforward.
Now you are ready to go on the road with an Asterisk extension under your arm.

TRIXBOX-2 Without Tears

Page 123 of 248

25 CALLS RECORDINGS
There have been numerous discussions on the legality of recording telephone
conversations. Some say its OK while others say its illegal. If you are recording
conversation without the consent of all parties, you may be breaking the law – so be
warned.
For those who do record conversations, the recording are kept in the
/var/spool/asterisk/monitor directory or you can monitor the recording through the ARI
interface.

25.1 ARI INTERFACE
The ARI interface can be access either from the User Mode screen of Trixbox or freePBX
GUI.

Use mode interface of Trixbox

FreePBX GUI of Trixbox

If you want to monitor all the calls, you will need to log in as admin with the default
password of ari_password.

To monitor the calls for any individual extension, log in using the extension number and
the extension password.

TRIXBOX-2 Without Tears

Page 124 of 248

To play the recording, simply click on the Play link related to the extension that you want
to listen to, in the screen that follows (ensure that you have installed Quicktime and Adobe
Flash Player plugin for your browser on your local PC, otherwise it will not play the sound).

The configuration file for ARI is /var/www/html/recordings/includes/main.conf.php
There are 2 ways you can record your calls:

25.1 RECORD ALL CALLS BY DEFAULT
To record all calls, on a specific extensions or all extensions, this function has to be
enabled on the extension or extensions involved. This is done through the Extension
Options Record Incoming and Record Outgoing field by selecting “Always” from the
dropdown box for both fields.

25.2 RECORD CALLS ON DEMAND.
To record on demand, the caller or the receiver have to dial *1 when he/she need the
recording to start (Asterisk v1.2). This function will only work if the feature is enabled.
To enabled this feature, the following Dial Command Option must be enabled in freePBX
General settings Asterisk Dial command option and Asterisk Outbound Dial
command option fields by adding the following flag in the fields.
w: Allow the called user to start recording after pressing *1 (Asterisk v1.2)
W: Allow the calling user to start recording after pressing *1 (Asterisk v1.2)
Some users have noticed that the *1 need to be pressed very quickly for this feature to
work.
This can be remedied by adding the following line in the
features_general_custom.conf file under the general section.
featuredigittimeout = 1500 ;(the default is 500 which is too fast for an old guy like me

TRIXBOX-2 Without Tears

Page 125 of 248

26 STUN SERVERS
STUN (Simple Traversal of UDP through NAT - Network Address Translation) is a
protocol for assisting devices behind a NAT firewall or router with their packet routing
operates on TCP and UDP port 3478.
I never have the need to use STUN. The list below is provided for those who have the
need to use public STUN Servers. These are the servers that I am aware off - there may
be others.
stun.xten.com
stun.fwd.org
stun01.sipphone.com

stun1.noc.ams-ix.net
stun.voipbuster.com
stun.voxgratia.org

27 DIALING THROUGH MS OUTLOOK®
One way of keeping a little black book for all your telephone contacts is through
Microsoft™ Outlook® (for the windows users) address book. We can also use Outlook to
dial the phone numbers in the address book as Outlook® has a click-to-dial facility.
I was alerted of this facility in Outlook® and Asterisk® and asked to prove the application
and publish a simplified instruction in this guide.

27.1 DOWNLOAD ASTTAPI
Before you get started, you will need to download AstTapi, which is a Microsoft TAPI to
Asterisk Bridge. This little gem (still under further development at the moment but
functional) will make it possible to do click-to-dial from Microsoft™ Outlook and for that
matter from other TAPI compliant applications.
Download AstTapi from http://sourceforge.net/projects/asttapi/
To get started, you will need to edit manager_custom.conf file. The easiest is to use
freePBX Config Edit (the easiest way!)
SETUP -> Config Edit -> manager_custom.conf
On opening the manager_custom.conf file, you will notice the following, which you will
need to do a tiny weeny edit:
[phpconfig]
secret = php[onfig
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[phpagi]
secret = phpagi
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[AstTapi]
secret = AstTapi
deny=0.0.0.0/0.0.0.0

TRIXBOX-2 Without Tears

Page 126 of 248