Without Tears

http://creativecommons.org/licenses/by-nc-sa/2.1/au/

The Dumb-Me Guide

(Australianised for AU&NZ brethren)

 

Incorporating elements of versions 1.x and 2.x up to v2.7 using AMP

(From version 2.8 onwards, AMP has been replaced by FreePBX)

(Version 2.8 Draft 4c)

 

by

 

Ben Sharif

About the Author

Last updated on May 30, 2006

Please send comment or suggestions to me at the address below

mailto:bensharif@gmail.com

 

Please do not send questions directly to me. Instead post all questions in the Whirlpool Forum below so others may also benefit from it.

 

http://forums.whirlpool.net.au/forum-threads.cfm?f=107

 

 

 

 

First Published on 15th June 2005

 

This document is released under the Creative Commons By-Attrib Non-Commercial Share-Alike 2.1 licence.

 

 

h*g

 


Table of Content

 

Forward. 7

1  Introduction. 8

1.1  The Components. 8

1.1.1  The IP PBX. 8

1.1.2  Phones. 9

1.1.3  SIP Gateway. 9

1.1.4  Home Network. 9

1.1.5  VOIP Service Providers. 9

2  Is VOIP for You?. 10

2.1  What is it going to cost ?. 10

2.2  What will the Quality of the phone calls be?. 10

3  Installation. 11

3.1  Change default Settings. 12

3.1.1  To get Help. 12

3.1.2  Change Linux Password. 13

3.1.3  Change IP Address (set IP address to Static) 13

3.1.4  Set Time Zone. 14

3.2  Connect to AMP (or FreePBX)  from Web Browser 15

3.2.1  Log in to Asterisk Management Portal (AMP) 15

or FreePBX Administration. 15

3.3  General Settings. 18

3.3.1 General Settings for AAH 2.7 or Earlier 18

3.3.2 General Settings for AAH 2.8 or Later 19

3.3.3  Dial Command Options. 19

3.4  Extensions. 22

3.5  Follow Me (AAH 2.8 with freePBX) 24

3.6  Ring Groups. 25

3.6.1  Now it’s a good time to set up your softphone. 26

4  Incoming Calls Handling. 27

4.1  Incoming Calls (Prior to AAH 2.8 with FreePBX) 27

4.2  Incoming Calls (AAH 2.8 with FreePBX) 27

4.2.1  Time Conditionds. 28

5  Trunks And Routes. 29

5.1  What is a Dial Pattern?. 29

5.2  What is a Trunk?. 29

5.3  Let’s Create The Trunks. 30

5.3.1  Pennytel 30

5.3.2  Oztell (SIP) 32

5.3.3  Oztell (IAX) 33

5.3.4  Astratel 34

5.4  Create Outbound Routing. 37

5.4.1  What is an Outbound Route?. 37

5.4.2  How does it work?. 37

5.4.3  International 38

5.4.4  Domestic. 38

5.4.5  MobileAust 39

5.4.6  Oztellonly. 39

5.4.7  Astratelonly. 40

5.5  ENUM.. 41

5.5.1  Setting up ENUM Trunk. 41

5.5.2  Setting up ENUM Outbound Route. 42

5.6  Inbound Route (DID Routes A@H version 1.x) 44

5.6.1  Inbound Route (AAH version 2.7 with AMP and earlier) 44

5.6.2  Inbound Route (AAH version 2.8 with freePBX) 44

6  Digital Receptionist 46

6.1  Setting Up Digital Receptionist 46

6.2  Customising Individual Extension. 50

7  Get Under The Bonnet 51

7.1  Editing The .conf Files. 52

7.1.1  iax.conf 52

7.1.2  Indications.conf 52

7.1.3  enum.conf 52

7.1.4  extensions.conf 52

7.1.5  extensions_custom.conf 53

7.1.6  sip.conf 53

7.2  Port Forwarding – Routers. 54

7.3  QOS – Routers. 54

8  Check your System.. 56

8.1  System Status. 56

8.2  Asterisk Info. 57

9  Interfacing Asterisk to PSTN.. 58

9.1  Digium Wildcard X100P FXO PCI Card. 58

9.1.1  zapata.conf 58

9.1.2  zaptel.conf 59

9.1.3  modules.conf (modprobe.conf for AAH 2.x) 59

9.2  Digium TDM400P FXO/FXS Card. 59

9.2.1  zapata-auto.conf 59

9.2.2  modules.conf (modprobe.conf for AAH 2.x) 60

9.3  Rebuilding Zaptel Driver 61

9.4  Sipura SPA3000 as a PSTN Interface. 62

9.4.1  Log in to SPA3000. 62

9.4.2  Change the settings. 62

9.4.3  Add SIP Trunk. 64

9.4.4  SPA3000 as an outbound PSTN Trunk. 65

10  PSTN to VOIP Gateway. 66

11  DISA. 67

11.1  DISA prior to AAH version 2.8 using AMP.. 67

11.2  DISA – AAH version 2.8 using FreePBX. 68

12  Setting Up a Soft Phone. 69

Profile Tab. 69

Audio & Video Tab. 69

Network Tab. 70

STUN Tab. 70

Call Forward. 71

13  Flash Operator Panel (FOP) 72

13.1  Setting Up. 73

13.1.2  Setting the Admin Password. 73

13.1.3  Hang-up a Call 73

13.1.4  Transfer a Call 73

13.1.5  Initiate a Call 73

13.1.6  Barge in or Create a Conference. 73

13.1.7  Alternative Flash Operator Panel. 73

14  Call parking and transfer. 74

14.1  Call Transfer - Managed. 74

14.1.1  How is it done?. 74

14.2  Call Transfer – Blind. 75

14.3  Put a Call On Hold. 75

14.4  Call Pickup. 75

14.5  Filter Your Incoming Calls - Only Accept Known Calls. 76

15  MeetMe – Teleconference. 78

15.1   meetme.conf 78

15.2   meetme_additional.conf 78

15.3   extensions.conf 78

16  Voicemail Email Notification. 80

16.1  Installing sendmail 80

16.2  /etc/hosts. 81

17  Fax through AAH (fax to e-mail) 83

17.1  Installing Fax in AAH version 2.3/2.4. 83

17.2  Installing Fax in AAH version 2.8 with FreePBX. 86

18  Weather Forecast 88

18.1  Configure Weather Report – On Demand. 88

18.1.1  Create Extension codes. 89

18.2  Configure Weather Report – Background Method. 90

18.2.1  Create Extension codes. 90

18.3  Now put it in your Digital Receptionist 91

19  Remote Management 92

19.1  httpd.conf 92

20  How to set up a Remote Extension. 93

20.1  Create a new extension. 93

20.2  IAX.Conf 95

20.3  Sip_Nat.Conf 95

20.4  The correct softphone for IAX. 95

20.4.1  First the general options. 96

20.4.2  Accounts options. 96

21  Tools. 97

21.1  Webmin. 97

21.2  Putty. 97

21.3  WinSCP.. 97

22  STUN Servers. 98

23  Dialing through MS Outlook®.. 98

23.1  Download AstTapi 98

23.2  Install AstTapi 99

23.3  Configure Outlook Address Book. 99

24  Speed Dial 101

24.1  The Dumb-Me method. 101

24.2  Asterisk@Home’s method. 102

25  How to use Window Messenger® 5.x. 103

26  How to interconnect 2 boxes. 105

26.1  Method 1 - With the Peer Asterisk box as Extensions. 105

26.2  Method 2 - In a Peer/User Arrangement 106

27  Backup and restore. 108

27.1  Creating a Backup using the console. 108

27.2  Restoring a Backup using the console. 108

27.3  Maintaining multiple backups. 109

28  Customised Voice (prior to AAH 2.8 with freePBX) 110

28.1  Customised Voice Prompts. 110

28.2  Installing Other Languages. 111

29  My Asterisk® IP PBX Network. 112

30  Publications and References. 113

30.1  The future of Telephony by O’Reilly Publishing. 113

30.2  Voice over IP – Per call bandwidth consumption. 113

30.3  Other Asterisk@Home Forums, Tutorials and Wikis. 113

31  USB Phone Support 114

32  Bugs Reports. 115

32.1  Backup and Restore. 115

32.2  Conflict between ZAP Card and FAX Module. 115

32.3  Editing email notification message. 115

32.4  Endless Loop during Directory search (v2.0) 115

32.5  Flash Operator Panel (Bug Detected in version 1.3) 116

32.6  Max Channels Bug. 116

32.6.1  Corrected in version 2.8. 116

32.7  Ring Group Hunt Syntax Bug (v2.2 and v2.5) 117

32.7.1  Corrected in version 2.8. 117

32.8  Securing Asterisk@Home console Alt+F9. 117

32.9  Sound Directory Permission (v2.6) 117

32.10  WakeUp Calls (V2.2) 118

32.10.1  Corrected in version 2.4. 118

33  Touble Shooting. 119

33.1  Asterisk Feature Codes not working. 119

33.2  Asterisk Drops Calls after a few seconds. 119

33.3  Pennytel Asterisk Problem.. 119

33.4  Unable to receive Incoming Calls. 119

Appendix A. 120

A.1  Asterisk Feature Codes. 120

A.2  Asterisk CLI commands. 120

A.2.1  General commands. 120

A.2.2  AGI Commands. 121

A.2.3  Database Handling. 121

A.2.4  IAX Channel Commands. 122

A.2.5  SIP Channel commands. 122

A.2.6  Server management 122

A.3  Asterisk Special Extensions. 123

A.4  Asterisk Common Variables. 123

A.5  Codec (Coder Decoder) 124

Appendix B.. 125

B.1 – More trunks. 125

B.1.1  BBPglobal 125

B.1.2  Engin BYO.. 125

B.1.3  Faktortel (IAX) 126

B.1.4  FWD aka Pulver 126

B.1.5  iinet 126

B.1.6  iTalk (New Zealand) 127

B.1.7  Koala. 127

B.1.8  MyNetFone. 128

B.1.9  Nehos (IAX) 128

B.1.10  Nodephone. 128

B.1.11  SipBroker 129

B.1.12  SipMe. 129

B.1.13  SipPhone. 129

B.1.14  TelephoneGlobal 130

B.1.15  VOIP Buster 130

B.2  Related Links – (for vsp TRUNK settings) 131

B.2.1  Trunk and Route Settings. 131

B.2.2  MyFone settings. 131

B.2.3  Setting up FaktorTel for Asterisk@Home. 131

Appendix C.. 132

C.1  Voice for Asterisk Messages. 132

C.2  Australian Voice and Language Set for Asterisk. 133

C.3  More Australian Voice for Asterisk. 133

Appendix D (ATAs and Routers) 135

D.1  Alcatel SpeedTouch 510/530 ADSL Router 135

D.2  Billion 7402 VL. 135

D.3  Linksys PAP2 and Sipura SPA2000. 136

Appendix E (Users’ suggestions) 138

E.1  Suggestions for Dial Plan and configuration. 138

E.1.1  Astratel on Asterisk@Home. 138

E.1.2  Further .conf modifications by Colin. 139

E.2  MeetMe – Teleconferencing without Zaptel Card. 141

E.3  Multiple TDM400P Installation. 142

E.4  Eliminating Echo Problems in SPA-3000. 144

E.5  Immediate Answer of PSTN Calls. 146

E.6  RAID 1 and Asterisk@Home 2.6. 147

E.7  Rebuild Zaptel Driver  (Users’ Suggestions) 148

E.7.1  As experienced by marner – a Whirlpool Forum participant. 148

E.7.2  As suggested by Rob Thomas (the FreePBX guru) 148

E.8  Zaptel card configuration for Australia. 148

Notes. 151

A2Billing. 151

Setup A2Billing in Asterisk@home 2.2. 151

Dial 0 for Outside Line. 153

Using Zaptel Card Method. 153

Using SPA3K Method. 153

Delete Call Records from CDR.. 154

Extension Numbers to avoid using. 154

Genzaptelconf 155

Giving Priority to Emergency Numbers (E.g. 000) 155

MOH (Music On Hold) 155

sip_nat.conf 156