[Freeswitch-users] Problem with digium te220p

Krzysztof Zimnicki krzysiez at go2.pl
Mon Jan 19 02:05:14 PST 2009


Hi, 

We would like to configure our digium te220p card with freeswitch.

Configured OpenZap and install zaptel drivers, but card doesn't work with our freeswitch.

When freeswitch start put error on console: 

2009-01-17 19:41:06 [NOTICE] zap_io.c:2517 zap_global_init() Modules configured: 1
2009-01-17 19:41:06 [INFO] zap_io.c:2341 zap_load_module() Loading IO from /usr/local/freeswitch/mod/ozmod_zt.so
2009-01-17 19:41:06 [INFO] zap_io.c:2127 load_config() auto-loaded 'zt'
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 1 as OpenZAP device 1:1 fd:38
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 2 as OpenZAP device 1:2 fd:39
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 3 as OpenZAP device 1:3 fd:40
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 4 as OpenZAP device 1:4 fd:41
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 5 as OpenZAP device 1:5 fd:42
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 6 as OpenZAP device 1:6 fd:43
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 7 as OpenZAP device 1:7 fd:44
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 8 as OpenZAP device 1:8 fd:45
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 9 as OpenZAP device 1:9 fd:46
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 10 as OpenZAP device 1:10 fd:47
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 11 as OpenZAP device 1:11 fd:48
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 12 as OpenZAP device 1:12 fd:49
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 13 as OpenZAP device 1:13 fd:50
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 14 as OpenZAP device 1:14 fd:51
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 15 as OpenZAP device 1:15 fd:52
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 16 as OpenZAP device 1:16 fd:53
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 17 as OpenZAP device 1:17 fd:54
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 18 as OpenZAP device 1:18 fd:55
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 19 as OpenZAP device 1:19 fd:56
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 20 as OpenZAP device 1:20 fd:57
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 21 as OpenZAP device 1:21 fd:58
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 22 as OpenZAP device 1:22 fd:59
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 23 as OpenZAP device 1:23 fd:60
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 24 as OpenZAP device 1:24 fd:61
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 25 as OpenZAP device 1:25 fd:62
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 26 as OpenZAP device 1:26 fd:63
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 27 as OpenZAP device 1:27 fd:64
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 28 as OpenZAP device 1:28 fd:65
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 29 as OpenZAP device 1:29 fd:66
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 30 as OpenZAP device 1:30 fd:67
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 31 as OpenZAP device 1:31 fd:68
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 32 as OpenZAP device 2:1 fd:69
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 33 as OpenZAP device 2:2 fd:70
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 34 as OpenZAP device 2:3 fd:71
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 35 as OpenZAP device 2:4 fd:72
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 36 as OpenZAP device 2:5 fd:73
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 37 as OpenZAP device 2:6 fd:74
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 38 as OpenZAP device 2:7 fd:75
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 39 as OpenZAP device 2:8 fd:76
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 40 as OpenZAP device 2:9 fd:77
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 41 as OpenZAP device 2:10 fd:78
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 42 as OpenZAP device 2:11 fd:79
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 43 as OpenZAP device 2:12 fd:80
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 44 as OpenZAP device 2:13 fd:81
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 45 as OpenZAP device 2:14 fd:82
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 46 as OpenZAP device 2:15 fd:83
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 47 as OpenZAP device 2:16 fd:84
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 48 as OpenZAP device 2:17 fd:85
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 49 as OpenZAP device 2:18 fd:86
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 50 as OpenZAP device 2:19 fd:87
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 51 as OpenZAP device 2:20 fd:88
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 52 as OpenZAP device 2:21 fd:89
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 53 as OpenZAP device 2:22 fd:90
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 54 as OpenZAP device 2:23 fd:91
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 55 as OpenZAP device 2:24 fd:92
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 56 as OpenZAP device 2:25 fd:93
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 57 as OpenZAP device 2:26 fd:94
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 58 as OpenZAP device 2:27 fd:95
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 59 as OpenZAP device 2:28 fd:96
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 60 as OpenZAP device 2:29 fd:97
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 61 as OpenZAP device 2:30 fd:98
2009-01-17 19:41:06 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 62 as OpenZAP device 2:31 fd:99
2009-01-17 19:41:06 [INFO] zap_io.c:2265 load_config() Configured 62 channel(s)
2009-01-17 19:41:06 [INFO] zap_io.c:2358 zap_load_module() Loading SIG from /usr/local/freeswitch/mod/ozmod_analog.so
2009-01-17 19:41:06 [INFO] zap_io.c:2474 zap_configure_span() auto-loaded 'analog'
2009-01-17 19:41:06 [ERR] mod_openzap.c:1895 load_config() Error finding OpenZAP span id: name:PRI_1
2009-01-17 19:41:06 [ERR] mod_openzap.c:1895 load_config() Error finding OpenZAP span id: name:PRI_2
2009-01-17 19:41:06 [CONSOLE] switch_loadable_module.c:857 switch_loadable_module_load_file() Successfully Loaded [mod_openzap]
2009-01-17 19:41:06 [NOTICE] switch_loadable_module.c:141 switch_loadable_module_process() Adding Endpoint 'openzap'

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>
   <pri_spans>
     <span name="PRI_1">
       <!-- Log Levels: none, alert, crit, err, warning, notice, info, debug -->
       <param name="q921loglevel" value="alert"/>
       <param name="q931loglevel" value="alert"/>
       <param name="mode" value="user"/>
       <param name="dialect" value="dms"/>
       <param name="dialplan" value="XML"/>
       <param name="context" value="default"/>
     </span>
     <span name="PRI_2">
       <param name="q921loglevel" value="alert"/>
       <param name="q931loglevel" value="alert"/>
       <param name="mode" value="user"/>
       <param name="dialect" value="national"/>
       <param name="dialplan" value="XML"/>
       <param name="context" value="default"/>
     </span>
   </pri_spans>
  <!-- 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"/>
      <param name="enable-callerid" value="true"/>
      <!-- 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>

zaptel.conf: 

span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16

span = 2,0,0,ccs,hdb3,crc4
bchan = 32-46,48-62
dchan = 47

loadzone = ru
defaultzone=ru


freeswitch.log: 
2009-01-17 18:26:57 [DEBUG] zap_config.c:56 zap_config_open_file() Configuration file is /usr/local/freeswitch/conf/modules.conf.
2009-01-17 18:26:57 [NOTICE] zap_io.c:2517 zap_global_init() Modules configured: 1
2009-01-17 18:26:57 [DEBUG] zap_config.c:56 zap_config_open_file() Configuration file is /usr/local/freeswitch/conf/openzap.conf.
2009-01-17 18:26:57 [DEBUG] zap_io.c:2110 load_config() found config for span
2009-01-17 18:26:57 [INFO] zap_io.c:2341 zap_load_module() Loading IO from /usr/local/freeswitch/mod/ozmod_wanpipe.so
2009-01-17 18:26:57 [DEBUG] zap_config.c:56 zap_config_open_file() Configuration file is /usr/local/freeswitch/conf/wanpipe.conf.
2009-01-17 18:26:57 [INFO] zap_io.c:2127 load_config() auto-loaded 'wanpipe'
2009-01-17 18:26:57 [DEBUG] zap_io.c:2163 load_config() created span 1 (span1) of type wanpipe
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 1 [name]=[OpenZAP]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 1 [number]=[1]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 1 [fxs-channel]=[1:3-4]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2216 load_config() setting trunk type to 'FXS' start(KEWL)
2009-01-17 18:26:57 [ERR] ozmod_wanpipe.c:440 wp_open_range() failure configuring device s1c3
2009-01-17 18:26:57 [ERR] ozmod_wanpipe.c:440 wp_open_range() failure configuring device s1c4
2009-01-17 18:26:57 [DEBUG] zap_io.c:2110 load_config() found config for span
2009-01-17 18:26:57 [DEBUG] zap_io.c:2163 load_config() created span 2 (span2) of type wanpipe
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 2 [fxo-channel]=[1:1-2]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2205 load_config() setting trunk type to 'FXO' start(KEWL)
2009-01-17 18:26:57 [ERR] ozmod_wanpipe.c:440 wp_open_range() failure configuring device s1c1
2009-01-17 18:26:57 [ERR] ozmod_wanpipe.c:440 wp_open_range() failure configuring device s1c2
2009-01-17 18:26:57 [DEBUG] zap_io.c:2110 load_config() found config for span
2009-01-17 18:26:57 [INFO] zap_io.c:2341 zap_load_module() Loading IO from /usr/local/freeswitch/mod/ozmod_zt.so
2009-01-17 18:26:57 [DEBUG] zap_config.c:56 zap_config_open_file() Configuration file is /usr/local/freeswitch/conf/zt.conf.
2009-01-17 18:26:57 [INFO] zap_io.c:2127 load_config() auto-loaded 'zt'
2009-01-17 18:26:57 [DEBUG] zap_io.c:2163 load_config() created span 3 (span3) of type zt
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 3 [name]=[OpenZAP]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 3 [number]=[2]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 3 [fxs-channel]=[1]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2216 load_config() setting trunk type to 'FXS' start(KEWL)
2009-01-17 18:26:57 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 1 as OpenZAP device 3:1 fd:40
2009-01-17 18:26:57 [DEBUG] zap_io.c:2110 load_config() found config for span
2009-01-17 18:26:57 [DEBUG] zap_io.c:2163 load_config() created span 4 (span4) of type zt
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 4 [name]=[OpenZAP]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 4 [number]=[2]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2176 load_config() span 4 [fxo-channel]=[3]
2009-01-17 18:26:57 [DEBUG] zap_io.c:2205 load_config() setting trunk type to 'FXO' start(KEWL)
2009-01-17 18:26:57 [INFO] ozmod_zt.c:186 zt_open_range() configuring device /dev/zap/channel channel 3 as OpenZAP device 4:1 fd:41
2009-01-17 18:26:57 [INFO] zap_io.c:2265 load_config() Configured 2 channel(s)
2009-01-17 18:26:57 [INFO] zap_io.c:2358 zap_load_module() Loading SIG from /usr/local/freeswitch/mod/ozmod_analog.so
2009-01-17 18:26:57 [INFO] zap_io.c:2474 zap_configure_span() auto-loaded 'analog'
2009-01-17 18:26:57 [DEBUG] zap_config.c:56 zap_config_open_file() Configuration file is /usr/local/freeswitch/conf/tones.conf.
2009-01-17 18:26:57 [DEBUG] zap_io.c:411 zap_span_load_tones() added tone generation [dial] = [v=-7;%(1000,0,350,440)]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [dial] = [350,440]
2009-01-17 18:26:57 [DEBUG] zap_io.c:411 zap_span_load_tones() added tone generation [ring] = [v=-7;%(2000,4000,440,480)]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [ring] = [440,480]
2009-01-17 18:26:57 [DEBUG] zap_io.c:411 zap_span_load_tones() added tone generation [busy] = [v=-7;%(500,500,480,620)]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [busy] = [480,620]
2009-01-17 18:26:57 [DEBUG] zap_io.c:411 zap_span_load_tones() added tone generation [attn] = [v=0;%(100,100,1400,2060,2450,2600)]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [attn] = [1400,2060,2450,2600]
2009-01-17 18:26:57 [DEBUG] zap_io.c:411 zap_span_load_tones() added tone generation [callwaiting-sas] = [v=0;%(300,0,440)]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [callwaiting-sas] = [440]
2009-01-17 18:26:57 [DEBUG] zap_io.c:411 zap_span_load_tones() added tone generation [callwaiting-cas] = [v=0;%(80,0,2750,2130)]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [callwaiting-cas] = [2750,2130]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [fail1] = [913.8]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [fail2] = [1370.6]
2009-01-17 18:26:57 [DEBUG] zap_io.c:409 zap_span_load_tones() added tone detect [fail3] = [776.7]
2009-01-17 18:26:57 [ERR] mod_openzap.c:1895 load_config() Error finding OpenZAP span id: name:PRI_1
2009-01-17 18:26:57 [ERR] mod_openzap.c:1895 load_config() Error finding OpenZAP span id: name:PRI_2
2009-01-17 18:26:57 [NOTICE] switch_loadable_module.c:141 switch_loadable_module_process() Adding Endpoint 'openzap'
2009-01-17 18:26:57 [NOTICE] switch_loadable_module.c:239 switch_loadable_module_process() Adding Application 'disable_ec'
2009-01-17 18:26:57 [NOTICE] switch_loadable_module.c:259 switch_loadable_module_process() Adding API Function 'oz'
2009-01-17 18:26:57 [DEBUG] ozmod_analog.c:875 zap_analog_run() ANALOG thread starting.


freeswitch command line:

freeswitch at voipgw> oz list
API CALL [oz(list)] output:
+OK
span: 1 (span1)
type: analog
chan_count: 31
dialplan: XML
context: default
dial_regex:
fail_dial_regex:
hold_music:
analog_options none




freeswitch at voipgw> oz dump 1 1
API CALL [oz(dump 1 1)] output:
span_id: 1
chan_id: 1
physical_span_id: 1
physical_chan_id: 1
type: B
state: DOWN
last_state: DOWN
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE


Any idee where is the problem ? 






More information about the FreeSWITCH-users mailing list