SANGOMA

Sample Configuration of Sangoma card with other TDM Card

It’s possible to configure Sangoma card with another TDM card. Basically you can use wancfg_zaptel (setup-sangoma incase of Trixbox) and configure Sangoma hardware.Than manually hand edit /etc/zaptel.conf and /etc/asterisk/zapata.conf(zapata-auto.conf incase of Trixbox) for span/channel configuration for another card. And finally add modprobe < module name > in sangoma start script (/etc/wanpipe/script/start)

Here is sample configuration of Sangoma AFT series T1/E1 card configured as E1with Digium® 4 port Analog card 2 – FXO port 2 –FXS port

# cat /etc/zaptel.conf
-----------------------------------------------------------------------------------------------------
# Autogenerated by /usr/local/sbin/sangoma/setup-sangoma -- do not hand edit
# Zaptel Channels Configurations (zaptel.conf)
#
loadzone=us
defaultzone=us

#Sangoma A102 port 1 [slot:4 bus:4 span: 1]
span=1,0,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16

#Analog Card
fxoks=32-33
fxsks=34-35
-----------------------------------------------------------------------------------------------------
cat /etc/asterisk/zapata.conf

 

 # cat /etc/asterisk/zapata.conf
-----------------------------------------------------------------------------------------------------
;autogenerated by /usr/local/sbin/config-zaptel  do not hand edit
;Zaptel Channels Configurations (zapata.conf)
;
;For detailed zapata options, view /etc/asterisk/zapata.conf.orig

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1

immediate=no

;Sangoma A102 port 1 [slot:4 bus:4 span: 1]
switchtype=national
context=from-pstn
group=0
signalling=pri_cpe
channel => 1-15,17-31
context=analog
group=1
signalling=>fxo_ks
channel=>32-33
signalling=>fxs_ks
channel=>34-35

-----------------------------------------------------------------------------------------------------
Note: Context name and group number can be changed as desired.  

Start Script
-----------------------------------------------------------------------------------------------------
#!/bin/sh
#Make sure that udev/devfs zaptel device
#has come up.
cnt=0
max_delay=30
for ((i=0;i<$max_delay;i++))
do
    if [ -e /dev/zap ]; then
            break;
    fi

    echo "Waiting for zaptel device /dev/zap ($i/$max_delay)..."
    sleep 2
done

if [ ! -e /dev/zap ]; then
    echo
    echo "Error: Zaptel device failed to come up";
    echo "Possible Cause: UDEV not installed!";
    echo
    exit 1
fi

sleep 1
modprobe wctdm
ztcfg -vvvv  

exit 0
-----------------------------------------------------------------------------------------------------

 


Digium is a registered trademark of Digium Inc.

 

Site

Changes
Index
Search

 

User

 

Log In
Register

 
 

Last Modified 2/12/08 1:39 PM