Prepare a computer with PCI slot
Consider the cost and compatibility, normally I will use Dell desktop or server.
Install telephony interface cards into your computer
Telephony interface cards are PCI or PCI Express expansion cards that connect computers running Asterisk directly to legacy phone lines, phones and phone systems. The cards convert the legacy signaling and media into Asterisk’s internal formats.
I chosen Digium cards, because Asterisk is provided by Digium. A lot of cheaper alternative cards, I just don’t want to facing compatible issue.
More details for telephony interface cards:
http://www.asterisk.org/products/telephony-interface-cards
Digium telephony interface cards products:
https://www.digium.com/products/telephony-cards
Download and install AsteriskNOW
Simple, just refer to this link:
https://wiki.asterisk.org/wiki/display/AST/Installing+AsteriskNOW
Configuration
- Login FreePBX Administration via http://<server-ip>
- Update Connectivity > DAHDi Config > Global Settings
- Select Language: <your preferred language>
- Enable Busy Detect: Yes
- Other Global Dahdi Settings: callprogress = yes
- Update Connectivity > DAHDi Config > System Settings
- Tone Region: <select your country or compatible>
- Update Connectivity > DAHDi Config > Modprobe Settings
- Opermode: enable, <select your country or compatible>
- Click save config and
Restart Dahai and asterisk
- Update Settings > Advanced Settings
- Country Indication Tones: <select your country or compatible>
Test Asterisk Manager
Default Asterisk Manager User: admin
Default Asterisk Manager Password: amp111
http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate
Dialplan for Asterisk Manager
File: /etc/asterisk/extensions_custom.conf
|
[macro-hangup]] include => ext-local exten => s,1,Answer() ;exten => s,n,Background("hello") ;exten => s,n,Wait(5) exten => s,n,HangUp() [macro-recording-10] include => ext-local ;exten => s,1,Answer() exten => s,1,MixMonitor(/var/www/html/autodial/recording_new/${CALLERID(num)}.wav,W(4)) ;exten => s,n,Record(autodial/%d.wav,0,10,q) ;exten => s,n,Playback(hello-world) exten => s,n,Wait(10) exten => s,n,HangUp() |