[Freeswitch-users] config help: openzap and T1 A102u

dalechase at yahoo.com dalechase at yahoo.com
Thu Dec 11 16:51:30 PST 2008


I am stuck trying to bring up freeswitch with openzap on a Sangoma A102u T1 card.
Works fine with asterisk.

Please point out where I am failing to configure properly.

Running Linux version 2.6.9-34.ELsmp on a Dell Celeron

% wanrouter hwprobe verbose

-----------------------------------------
| Wanpipe Hardware Probe Info (verbose) |
-----------------------------------------
1 . AFT-A102u  : SLOT=1 : BUS=2 : IRQ=145 : CPU=A : PORT=PRI : V=25
+01:PMC4351:PCI
2 . AFT-A102u  : SLOT=1 : BUS=2 : IRQ=145 : CPU=B : PORT=PRI : V=25
+01:PMC4351:PCI

Card Cnt: S508=0  S514X=0  S518=0  A101-2=1  A104=0  A300=0  A200=0  A108=0

% cat /usr/local/freeswitch/conf/autoload_configs/open
openmrcp.conf.xml  openzap.conf.xml
[root at pbxtra1466 freeswitch]# cat /usr/local/freeswitch/conf/autoload_configs/openzap.conf.xml
<configuration name="openzap.conf" description="OpenZAP Configuration">
  <settings>
    <param name="debug" value="0"/>
    <!--<param name="hold-music" value="$${moh_uri}"/>-->
    <!--<param name="enable-analog-option" value="call-swap"/>-->
    <!--<param name="enable-analog-option" value="3-way"/>-->
  </settings>
  <!-- one entry here per openzap span -->
  <analog_spans>
    <span id="1">
      <!--<param name="hold-music" value="$${moh_uri}"/>-->
      <!--<param name="enable-analog-option" value="call-swap"/>-->
      <!--<param name="enable-analog-option" value="3-way"/>-->
      <param name="tonegroup" value="us"/>
      <param name="digit-timeout" value="2000"/>
      <param name="max-digits" value="11"/>
      <param name="dialplan" value="XML"/>
      <param name="context" value="default"/>
      <!-- regex to stop dialing when it matches -->
      <!--<param name="dial-regex" value="5555"/>-->
      <!-- regex to stop dialing when it does not match -->
      <!--<param name="fail-dial-regex" value="^5"/>-->
    </span>
    <span id="2">
      <!--<param name="hold-music" value="$${moh_uri}"/>-->
      <!--<param name="enable-analog-option" value="call-swap"/>-->
      <!--<param name="enable-analog-option" value="3-way"/>-->
      <param name="tonegroup" value="us"/>
      <param name="digit-timeout" value="2000"/>
      <param name="max-digits" value="11"/>
      <param name="dialplan" value="XML"/>
      <param name="context" value="default"/>
      <!-- regex to stop dialing when it matches -->
      <!--<param name="dial-regex" value="5555"/>-->
      <!-- regex to stop dialing when it does not match -->
      <!--<param name="fail-dial-regex" value="^5"/>-->
    </span>
  </analog_spans>

</configuration>

% cat /etc/openzap/openzap.conf
[span wanpipe]
trunk_type => t1
b-channel => 1:1-23
d-channel=> 1:24

[span wanpipe]
trunk_type => t1
b-channel => 2:25-47
d-channel=> 2:48

% cat /etc/openzap/wanpipe.conf
[defaults]
codec_ms => 20
wink_ms => 150
flash_ms => 750

% cat /etc/wanpipe/wanpipe1.conf
#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Tue Dec 12 16:21:45 UTC 2006
#
# Note: This file was generated automatically
#       by /usr/sbin/wancfg program.
#
#       If you want to edit this file, it is
#       recommended that you use wancfg program
#       to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe1 = WAN_AFT, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE       = AFT
S514CPU         = A
CommPort        = PRI
AUTO_PCISLOT    = NO
PCISLOT         = 1
PCIBUS          = 2
FE_MEDIA        = T1
FE_LCODE        = B8ZS
FE_FRAME        = ESF
FE_LINE         = 1
TE_CLOCK        = NORMAL
TE_REF_CLOCK    = 0
TE_SIG_MODE     = CCS
TE_HIGHIMPEDANCE        = NO
LBO             = 0DB
FE_TXTRISTATE   = NO
MTU             = 1500
UDPPORT         = 9000
TTL             = 255
IGNORE_FRONT_END = NO
TDMV_SPAN       = 1
TDMV_DCHAN      = 24

[w1g1]
ACTIVE_CH       = ALL
TDMV_ECHO_OFF   = NO
TDMV_HWEC       = NO

% cat /etc/wanpipe/wanpipe2.conf
#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Tue Dec 12 16:21:45 UTC 2006
#
# Note: This file was generated automatically
#       by /usr/sbin/wancfg program.
#
#       If you want to edit this file, it is
#       recommended that you use wancfg program
#       to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe2 = WAN_AFT, Comment

[interfaces]
w2g1 = wanpipe2, , TDM_VOICE, Comment

[wanpipe2]
CARD_TYPE       = AFT
S514CPU         = B
CommPort        = PRI
AUTO_PCISLOT    = NO
PCISLOT         = 1
PCIBUS          = 2
FE_MEDIA        = T1
FE_LCODE        = B8ZS
FE_FRAME        = ESF
FE_LINE         = 1
TE_CLOCK        = NORMAL
TE_REF_CLOCK    = 0
TE_SIG_MODE     = CCS
TE_HIGHIMPEDANCE        = NO
LBO             = 0DB
FE_TXTRISTATE   = NO
MTU             = 1500
UDPPORT         = 9000
TTL             = 255
IGNORE_FRONT_END = NO
TDMV_SPAN       = 2
TDMV_DCHAN      = 24

[w2g1]
ACTIVE_CH       = ALL
TDMV_ECHO_OFF   = NO
TDMV_HWEC       = NO

freeswitch at hostname-elided> load mod_openzap
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c1
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c2
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c3
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c4
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c5
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c6
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c7
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c8
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c9
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c10
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c11
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c12
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c13
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c14
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c15
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c16
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c17
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c18
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c19
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c20
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c21
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c22
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c23
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s1c24
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c25
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c26
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c27
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c28
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c29
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c30
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c31
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c32
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c33
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c34
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c35
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c36
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c37
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c38
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c39
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c40
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c41
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c42
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c43
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c44
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c45
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c46
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c47
2008-12-11 16:23:08 [ERR] zap_wanpipe.c:414 wp_open_range() failure configuring device s2c48
2008-12-11 16:23:08 [INFO] zap_io.c:2068 load_config() Configured 0 channel(s)
2008-12-11 16:23:08 [ERR] zap_io.c:2161 zap_global_init() No modules configured!
2008-12-11 16:23:08 [ERR] mod_openzap.c:1861 mod_openzap_load() Error loading OpenZAP
2008-12-11 16:23:08 [CRIT] switch_loadable_module.c:756 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_openzap.so
**Module load routine returned an error**


      




More information about the FreeSWITCH-users mailing list