The
configuration depends on whether wanpipe is configured to use Zaptel TDM Voice,
or the Sangoma standalone TDM Voice API. This is determined in the installation
and configuration of the Sangoma wanpipe software.
If
wanpipe is using Zaptel, you need to configure openzap.conf with [span zt]
entries. For example, if ports 1 and 2 are FXS (e.g. configured to accept
analog phone connections), and ports 3 and 4 are FXO (e.g. configured to accept
PSTN analog lines) you will need:
/usr/local/freeswitch/conf/openzap.conf:
[span zt FXO]name => OpenZAPnumber => 3001fxo-channel => 1number => 3002fxo-channel => 2 [span zt FXS]name => OpenZAPnumber => 4165551111fxs-channel => 3number => 4165552222fxs-channel => 4
If
wanpipe is standalone, you need to configure openzap.conf with [span wanpipe]
entries. For the same example as above this would be:
/usr/local/freeswitch/conf/openzap.conf:
[span wanpipe FXS]# This is the value of the callerid_name variable that is raised in the dialplanname => Analog Phone 1# This is the value of the callerid_number variable that is raised in the dialplannumber => 3001fxo-channel => 1:1name => Analog Phone 2number => 3002fxo-channel => 1:2 [span wanpipe FXO]# the chan_name variable will raised as "OpenZAP/2:1/4165551111" in dialplan when an incoming call arrives on this portname => PSTN line 1number => 4165551111fxs-channel => 1:3name => PSTN line 2number => 4165552222fxs-channel => 1:4