[Freeswitch-users] Zap problems

Michael S Collins msc at freeswitch.org
Thu Dec 31 08:00:05 PST 2009


Actually DOWN simply means idle. Go ahead and make some calls - your  
config looks okay.

-MC
On Dec 31, 2009, at 12:45 AM, "Joseph L. Casale" <jcasale at activenetwerx.com 
 > wrote:

> I am trying to setup a TDM410P card nuder  
> freeswitch-1.0.5-20091230-0400
> and fs is reporting it as down?
>
> /etc/dahdi/system.conf as it was under Asterisk, so its correct (set  
> to fxs).
> /opt/freeswitch/conf/zt.conf is default.
>
> # cat /opt/freeswitch/conf/openzap.conf
> [span zt]
> name => OpenZAP
> number => 1
> fxo-channel => 1
>
> # cat /opt/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="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"/>
>    </span>
>  </analog_spans>
> </configuration>
>
> # dahdi_scan
> [1]
> active=yes
> alarms=OK
> description=Wildcard TDM410P Board 1
> name=WCTDM/0
> manufacturer=Digium
> devicetype=Wildcard TDM410P
> location=PCI Bus 10 Slot 02
> basechan=1
> totchans=4
> irq=233
> type=analog
> port=1,FXO
> port=2,none
> port=3,none
> port=4,none
>
> Yet fs_cli reports:
>
> freeswitch at 127.0.0.1@internal> oz list
> +OK
> span: 1 (span1)
> type: analog
> chan_count: 1
> dialplan: XML
> context: default
> dial_regex:
> fail_dial_regex:
> hold_music:
> analog_options 3way
>
> freeswitch at 127.0.0.1@internal> oz dump 1 1
> span_id: 1
> chan_id: 1
> physical_span_id: 1
> physical_chan_id: 1
> type: FXO
> state: DOWN
> last_state: DOWN
> cid_date:
> cid_name:
> cid_num:
> ani:
> aniII:
> dnis:
> rdnis:
> cause: NONE
>
> Any idea what I am missing? The udev rules are set to the user/group  
> fs runs under.
> Starting fs at the cli shows the following output, which looks fine?
>
> 2009-12-31 01:39:17.592736 [DEBUG] zap_config.c:56 Configuration  
> file is /opt/freeswitch/conf/openzap.conf.
> 2009-12-31 01:39:17.592803 [DEBUG] zap_io.c:2362 found config for span
> 2009-12-31 01:39:17.593066 [NOTICE] ozmod_zt.c:1166 Using DAHDI  
> control device
> 2009-12-31 01:39:17.593112 [INFO] zap_io.c:2579 Loading IO from /opt/ 
> freeswitch/mod/ozmod_zt.so [zt]
> 2009-12-31 01:39:17.593145 [DEBUG] zap_config.c:56 Configuration  
> file is /opt/freeswitch/conf/zt.conf.
> 2009-12-31 01:39:17.593258 [INFO] ozmod_zt.c:556 Setting rxgain val  
> to 0.000000
> 2009-12-31 01:39:17.593298 [INFO] ozmod_zt.c:565 Setting txgain val  
> to 0.000000
> 2009-12-31 01:39:17.593353 [INFO] zap_io.c:2379 auto-loaded 'zt'
> 2009-12-31 01:39:17.593399 [DEBUG] zap_io.c:2400 created span 1  
> (span1) of type zt
> 2009-12-31 01:39:17.593426 [DEBUG] zap_io.c:2413 span 1 [name]= 
> [OpenZAP]
> 2009-12-31 01:39:17.593457 [DEBUG] zap_io.c:2413 span 1 [number]=[1]
> 2009-12-31 01:39:17.593485 [DEBUG] zap_io.c:2413 span 1 [fxo-channel] 
> =[1]
> 2009-12-31 01:39:17.593513 [DEBUG] zap_io.c:2442 setting trunk type  
> to 'FXO' start(KEWL)
> 2009-12-31 01:39:17.593593 [INFO] ozmod_zt.c:385 configuring device / 
> dev/dahdi/channel channel 1 as OpenZAP device 1:1 fd:35
> 2009-12-31 01:39:17.593657 [INFO] zap_io.c:2502 Configured 1 channel 
> (s)
>
> although stopping fs yielded this:
>
> 2009-12-31 01:42:44.545768 [INFO] zap_io.c:269 Closing channel zt: 
> 1:1 fd:35
> 2009-12-31 01:42:44.574577 [ERR] ozmod_analog.c:953 Failure Polling  
> event! [no matching descriptor]
> 2009-12-31 01:42:45.546544 [INFO] zap_io.c:2694 Unloading /opt/ 
> freeswitch/mod/ozmod_analog.so
> 2009-12-31 01:42:45.546735 [INFO] zap_io.c:2679 Unloading IO zt
> 2009-12-31 01:42:45.546756 [INFO] zap_io.c:2694 Unloading /opt/ 
> freeswitch/mod/ozmod_zt.so
>
> Thanks!
> jlc
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- 
> users
> http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list