[Asterisk-Users] TDM01B

Rich Adamson radamson at routers.com
Mon Mar 28 05:03:08 MST 2005


> Does someone have a working config file they could send me?
> 

In /etc/zaptel.conf put something like this:
 defaultzone=us
 fxsks=1
 loadzone=us
where "=1" is the fxo module for the pstn line. (I don't recall for 
sure, but if the fxo module is in module position #4, then I think
you'll need fxsks=4 in the above.)

If you are running cvs-head, then
 modprobe wctdm
 ztcfg -vvv

You can run 'zttool' to see the card/module at this point.

Once you have success (as indicated by the output of ztcfg), then:

in /etc/asterisk/zapata.conf you'll need an entry something like:
 context=inbound-bus
 signalling=fxs_ks                                                              
 echocancel=yes
 echotraining=800
 echocancelwhenbridged=no
 rxgain=0.0
 txgain=0.0
 immediate=no
 callprogress=no
 channel => 1
where channel => 1 must match the "=1" number used in the /etc/zaptel.conf
file.

If you make any changes to /etc/asterisk/zapata.conf, you will need to
stop asterisk and restart it; don't use the CLI reload.

If you get to this point, then incoming calls on that fxo port will
be sent to the "inbound-bus" context in your /etc/asterisk/extensions.conf
file. An entry in that file something like:
 [inbound-bus]                          
 exten => s,1,Dial(SIP/3000,15)
 exten => s,2,Hangup
will cause the sip phone at extension 3000 to ring for 15 seconds.

If the zaptel/wctdm drivers are loaded, then 'cat /proc/interrupts'
should show something like this:
           CPU0
  0:  430422405          XT-PIC  timer
  1:        389          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:          0          XT-PIC  usb-uhci
  7:    8801048          XT-PIC  wctdm
  8:          1          XT-PIC  rtc
  9:   18589687          XT-PIC  ehci-hcd, eth0
where wctdm is on an interrupt by itself. If it is not, then move
the TDM card to another slot on the motherboard to get it onto an
unshared interrupt.

If you run 'lsmod', you should see something like:
 Module                  Size  Used by    Not tainted
 wcusb                  20096   0  (unused)
 wctdm                  38144   4 
 zaptel                179168  12  [wcusb wctdm]
indicating both zaptel and wctdm are loaded, and zaptel is Used By
the wctdm module.

I don't use the stable version of asterisk. I recall someone posting
something about the wctdm driver is actually wcfxo in stable. So, if
the 'modprobe wctdm' complains, try 'modprobe wcfxo'.

If you're in a non-US country, you may need to add the 'opermode='
parameter to config the driver for your country pstn standards.





More information about the asterisk-users mailing list