Sunday 17 June 2012

Freepbx PIAF Atcom AX-100P install

I decided to purchase an atcom ax-100p for my home pbx as it was only £20.00 on ebay.
I decided on using Pbx in a Flash or PIAF. I inserted the card before i built the PIAF system.
AFter installing PIAF i ran the suggested genzaptelconf command which recognised the card.
I now went about configuring parameters for the card. Upon my first attempt i was able to get it working on incoming calls but not for outgoing it was coming up with stange results for the ztcfg -vvvv command saying i had 100 channels to configure so i new something was wrong.
So i decided to run the genzaptelconf command with options -s -d -v this then reconfigured the card but still it had an extra span in the zaptel.conf so i deleted that section and also the extra in zapata-channels.conf so there was only 1 span.
Rebooted made sure the zap channels DIDs was created in freepbx, and that i had a freephone number to dial using zap/go
and i was able to use my zap card.
Heres my working confs
Zaptel.conf
# Autogenerated by /usr/local/sbin/genzaptelconf — do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#
# It must be in the module loading order
# Span 1: WCFXO/0 “Wildcard X100P Board 1″ (MASTER)
fxsks=1
# Global data
loadzone    = uk
defaultzone    = uk
Zapata.conf
;
; Zapata telephony interface
;
; Configuration file
[trunkgroups]
[channels]
language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300        ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
usedistinctiveringdetection=yes
cidsignalling=v23 ; Added for UK CLI detection
cidstart=polarity ; Added for UK CLI detection
;callerid=asreceived ; propagate the CID received from BT
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
rxgain=6.0
txgain=4.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include genzaptelconf configs
#include zapata-channels.conf
;Include AMP configs
#include zapata_additional.conf
Zapata-channels.conf
; Autogenerated by /usr/local/sbin/genzaptelconf — do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
; Span 1: WCFXO/0 “Wildcard X100P Board 1″ (MASTER)
;;; line=”1 WCFXO/0/0 FXSKS (In use)”
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 1
context=default
After this i decided to have a bit of fun
so i created a dialout rule so if i dial 1471 it then passes to BT to get the last caller id
1472 as a feture code on freepbx for call trace for voip numbers.

No comments:

Post a Comment