Configuring PBXinaflash, my way
Setting up a PBXinaflash with a cheap Wildcard X100p card. A bit rough; for future reference.
Part 1: Initial setup and dahdi config
- Installed pbxinaflash (Bronze, Asterisk 1.6)
- set passwords using passwd-master script
- Enable ICMP ping in iptables.
- Run dahdi_genconf -v
- Run dahdi_cfg -v
- Add #include /etc/asterisk/dahdi-channels.conf
to /etc/asterisk/chan_dahdi.conf - At this point, asterisk should answer calls from the PSTN and play a “not in service” message.
- Next step is probably to edit /etc/asterisk/dahdi-channels.conf and set context to from-zaptel to be able to assign a DID using the FreePBX web GUI.
Part 2: Adding SIP trunk
- PEER Details:
username=14165551212
type=peer
secret=s3cr3t
host=voip.voipprovider.net
dtmfmode=auto - USER Details (not sure what’s necessary here, probably some of this shouldn’t be here)
username=14165551212
type=peer
secret=s3cr3t
qualify=no
promiscredir=yes
nat=yes
language=en
insecure=very
host=voip.voipprovider.net
fromuser=14165551212
fromdomain=voip.voipprovider.net
dtmfmode=auto
disallow=h263&h263p
context=from-trunk
canreinvite=no - In System Admin> Asterisk SIP settings page, change useragent and activate NAT/external IP options
Part 3: Fax Config
- Installed Fax Configuration module from “Module Admin”. Configure destination email.
- Installed Free Fax for asterisk using license obtained from Digium
- Add a “Misc destination” for System Fax to extension 666
- Enable Fax detection on inbound route. Set destination to Misc destination created in step 2
- Further reading: fax_for_asterisk_admin_manual, http://bestof.nerdvittles.com/applications/fax/ and http://nerdvittles.com/?p=237. Didn’t end up using the extension created by the script, but perhaps the rpms installed are necessary.
- Finally, Web fax for Asterisk : http://www.csrdu.org/nauman/2010/10/18/web-fax-for-asterisk/