Asterisk Support - Inspired by Asterisk Pro Installers.( API )
IndexAsterisk Hardware
Suppliers
The Installers
zaptel.conf
zapata.conf
sip.conf
iax.conf
extensions.conf
Problem Solving
Asterisk Hardware
On the Trunk side :
Analogue Trunks
Diguim TDM cards with Digium or Openvox FXO modules
PRO's : Inexpensive , High-density cards are available.
CON's : Watch out for the cards without Echo-cancellation!...cancel%$on...can#&%..
Openvox TDM cards with Openvox or Digium FXO modules
PRO/CON's : Same as above - try to buy the cards made-up , buying modules loose get's expensive.Try to get the high-density cards if you are planning to grow in the future.
FXO Gateways from Micronet,Planet,Sipura etc
PRO's : Don't need available PCI slots and can be used where 2U 19" rack mounted systems can not accomodate TDM cards. Also uses SIP.
CON's : Generally more expensive and a network overhead
Digital Trunks (ISDN)
ISDN Basic Rate ( BRI )
BRI cards from Junghanns - up to 8 BRI's on 1 PCI card
PRO's : These cards really work well with EURO ISDN !. Use the bri-stuff drivers.
CON's : Can't use 2 Quad cards for 8 BRI's! So watch out if you are planning for growth!
BRI modems from Duxbury for a single BRI
PRO's : At under R300 who can say no.
CON's : Sticky but works with mISDN/vISDN/ZAP-HFC.
ISDN Primary rate ( PRI ) or E1
PRI cards from Sangoma - up to 4 PRI's on 1 PCI card
PRO's : These cards really work well with EURO ISDN !. Use Wanrouter drivers.
CON's : Like I said they really work well.
PRI cards from Digium
PRO's : They are avilable.
On the Extension side :
VOIP Handsets from Linksys,SNOM,Sipura and Aastra.
PRO's : Feature rich , LCD display , programmable keys , hey it's the way all phones will be made someday.
CON's : The bottom line remains - expect to get what you pay for!
VOIP ATA (Analogue Gateways) from Linksys,Sipura and Digium.
PRO's : Get 2 channels for the price of one.External so no PC limitations.
CON's : No callerid , NO LCD display no programmable keys ... You can get aound these problems with FOP or YAACID for example , but it's not the same.
TDM cards with FXS modules from Digium and/or Openvox.
PRO's : Easy to install , relatively inexpensive compared with VOIP handsets.
CON's : Same problems as far as features and info is concerned.Uses PC resources.
Index
Evenflow
Evenflow is great to work with and sells everything from TDM cards to VOIP phones.
Dow Networks
Dow Networks supports IAX2 Trunking and is therefore our ITSP of choice
Scoop Distribution
Scoop's support is great and does the Atcom Range - TDM cards and VOIP phones.
Connection Telecom
Connection Telecoms is the Official Channel partner for Digium in South Africa.
Patton
Voipmagic sells the Patton range of VOIP products.
Index
Delegates attending the course range from Entrepreneurs to Call Centre Managers to
the Sales force of PBX companies - the Feedback is extremely positive and we are
proud to say that we have contribited in a big way to the understanding of asterisk.
These are very special , forward thinking individuals and I believe the companies and businesses that employ or support them are very lucky indeed !
Index
Simply put the following in your zaptel.conf :
fxsks = 1 ; assuming you have 1 FXO moduel installed on the 1st port.
What you are looking at is the very basics of zaptel's configuration , alot can be added to streamline and clean the performance of your hardware , but this should get you started.
The config files will look very different when using ISDN !
* AN IMPORTANT NOTE : DO NOT PLUG A LIVE TRUNK INTO A FXS PORT - YOU MIGHT CAUSE IRRIVERSABLE DAMAGE TO THE HARDWARE !!!
Index
[channels]
signalling = fxs_ks ; correspond with zaptel.conf , notice the underscore!
channel => 1 ; correspond with zaptel.conf
context = incoming ; has to exist in your dialplan!
Index
Now program your SIP phone via it's web-interface to match these settings and point to your asterisk server as it's sip-server
Simply put the following in sip.conf
[general]
bindport=5060
[100] ; make username/account 100 on your sip phone
context = internal ; must exist in your dialplan!
secret = 100 ; match password in phone
disallow = all ; start by disallowing all codecs
allow = ulaw ; ulaw = G711a
allow = alaw ; alaw = G711u
dtmfmode = info ; Set default dtmfmode for sending DTMF.
host = dynamic ; Accept all ip addresses
type = friend ; Options : friend/user/peer
mailbox = 100@default ; Add user 100 in voicemail.conf
Index
Remember to do the neccesary port forwarding ! ( port 4569 with iax ) on the router
Simply put the following in iax.conf
[general]
bind port = 4569
disallow = all
allow = ulaw
allow = gsm
[local_server]
type = user
auth = md5
host = dynamic
secret = password for remote server
context = internal ; must exist in your dialplan!
[remote_server]
type = peer
auth = md5
host = ipaddress of remote server.
secret = this password MUST match the remote server USER password.
Index
To test your extension , you can use the Echo() Application - this will simply echo whatever you say - hence the "Echo"
Simply add this to your extensions.conf
[internal]
exten => 123,1,Answer()
exten => 123,2,Echo()
Now when you dial 123 , asterisk will answer and echo your words !
You are going to create extension 100 in order for users to dial SIP-Phone-User 100
Simply add this to your extensions.conf under your existing code
exten => 100,1,Dial(SIP/100)
exten => 100,2,Congestion()
And now create extension 101 in order for users to dial SIP-Phone-User 101
Simply add this to your extensions.conf under your existing code
exten => 101,1,Dial(SIP/101)
exten => 101,2,Congestion()
Now send all incmoing calls from the PSTN (connected to zaptel hardware) to your SIP phone
Add these line to your extensions.conf under your existing code
[incoming]
exten => s,1,Dial(SIP/100)
exten => s,2,Busy()
Index
COMMON PROBLEMS & HICKUPS :
The 3 most common mistakes are 1) Typo's 2) Typo's and 3) YES Typo's !!! -so go and look for spelling and syntax mistakes 1st.
;For Cape Town Exchanges
busydetect = yes
busycount = 4
busypattern = 500,500
callprogress = no
;For the Rest of the country's Exchanges
busydetect = yes
busycount = 2
busypattern = 2500,500
callprogress = no
Also change this setting : country = za in indications.conf and comment/uncomment for the correct exchange under the [za] context.
Modify /etc/asterisk/zaptel-*.*/zconfig.h as follow :
You need to edit the zconfig.h source file and comment out the line #define ECHO_CAN_KB1 and uncomment #define ECHO_CAN_MARK2 on about line 52. You also need to enable aggressive echo cancellation by uncommeting #define AGGRESSIVE_SUPPRESSOR
Modify /etc/modprobe.conf as follow:
install wctdm /sbin/modprobe –ignore-install wctdm opermode=SOUTHAFRICA && /sbin/ztcfg
You need to edit the zaptel.conf file : Change defaultzone=us, loadzone=us to defaultzone=za, loadzone=za