To make Asterisk at home(AAH) or trixbox detect and config A1200P automaticly, you should do following works:
Firstly, you should download and install A1200P driver into it. you can get the driver code from
www.openvox.com.cn/members_downloads_sav...ction=download&id=14
, and installation guide from
www.openvox.com.cn/members_downloads_sav...ction=download&id=12
after you maked and installed the driver, you can continue the following steps to patch the scripts of aah to make it detect and config the A1200P driver automaticly.
Edit /etc/init.d/zaptel, add following code in it(red color is new added)
....
if [ -z "${MODULES}" ]; then
# Populate defaults if not present
MODULES="tor2 wct4xxp wct1xxp wcte11xp wcfxo wctdm
opvxa1200 ztdummy"
fi
MODULES="tor2 wct4xxp wct1xxp wcte11xp wcfxo wctdm opvxa1200 ztdummy"
....
Edit /usr/local/sbin/genzaptelconf (red color is new added)
......
do
# in case this is a real channel.
chan_num=`echo $line |awk '{print $1}'`
case "$line" in
*WCT1/*) # we're yet to detect when a channel is active
echo "$rem_char channel $chan_num, WCT1, unhandled for now"
;;
*WCTDM/*)
# this can be either FXS or FXO
check_tdm_sigtype $chan_num fxs $mode || \
check_tdm_sigtype $chan_num fxo $mode || \
echo "$rem_char channel $chan_num, WCTDM, inactive."
;;
*OPVXA1200/*)
# this can be either FXS or FXO
check_tdm_sigtype $chan_num fxs $mode || \
check_tdm_sigtype $chan_num fxo $mode || \
echo "$rem_char channel $chan_num, OPVXA1200, inactive."
;;
*WCFXO/*)
check_tdm_sigtype $chan_num fxo $mode || \
echo "$rem_char channel $chan_num, WCFXO, inactive."
;;
......
tested on AAH2.1 to 2.5 and trixbox 1.1