[Freeswitch-users] freeswitch and dahdi give an error: device /dev/zap/channel chan 1 fd 42 (Function not implemented)

jim cncrepair.com sales at cncrepair.com
Sun Dec 27 12:22:25 PST 2009


I am trying to get freeswitch to talk with a digium tdm400 card.  I am 
using ubuntu and the provided dahdi and freeswitch packages. 

I have configured /opt/freeswitch/conf/openzap.conf with the following:

`--# cat openzap.conf

     [span zt]
     name => OpenZAP
     number => 1
     fxo-channel => 1

     [span zt]
     name => OpenZAP
    number => 2
    fxo-channel => 2

     [span zt]
     name => OpenZAP
     number => 3
     fxo-channel => 3

dahdi's auto generated configuration is the following:

     `--# cat /etc/dahdi/system.conf

     # Span 2: WCTDM/4 "Wildcard TDM400P REV I Board 5"
     fxsks=1
     echocanceller=oslec,1
      fxsks=2
      echocanceller=oslec,2
      fxsks=3
      echocanceller=oslec,3
     # channel 4, WCTDM/4/3, no module.

     # Global data

     loadzone    = us
     defaultzone    = us

The Freeswitch log is the following:

`--# tail -n 900 freeswitch.log| grep zap
2009-12-27 10:05:01.620610 [DEBUG] zap_config.c:56 Configuration file is 
/opt/freeswitch/conf/modules.conf.
2009-12-27 10:05:01.620738 [NOTICE] zap_io.c:2758 Modules configured: 1
2009-12-27 10:05:01.620765 [DEBUG] zap_config.c:56 Configuration file is 
/opt/freeswitch/conf/openzap.conf.
2009-12-27 10:05:01.620816 [DEBUG] zap_io.c:2362 found config for span
2009-12-27 10:05:01.621076 [INFO] zap_io.c:2579 Loading IO from 
/opt/freeswitch/mod/ozmod_zt.so [zt]
2009-12-27 10:05:01.621099 [DEBUG] zap_config.c:56 Configuration file is 
/opt/freeswitch/conf/zt.conf.
2009-12-27 10:05:01.640363 [INFO] zap_io.c:2379 auto-loaded 'zt'
2009-12-27 10:05:01.651465 [DEBUG] zap_io.c:2400 created span 1 (span1) 
of type zt
2009-12-27 10:05:01.651607 [DEBUG] zap_io.c:2413 span 1 [name]=[OpenZAP]
2009-12-27 10:05:01.651635 [DEBUG] zap_io.c:2413 span 1 [number]=[1]
2009-12-27 10:05:01.651652 [DEBUG] zap_io.c:2413 span 1 [fxo-channel]=[1]
2009-12-27 10:05:01.651667 [DEBUG] zap_io.c:2442 setting trunk type to 
'FXO' start(KEWL)
2009-12-27 10:05:01.651847 [ERR] ozmod_zt.c:269 failure configuring 
device /dev/zap/channel chan 1 fd 42 (Function not implemented)
2009-12-27 10:05:01.651882 [DEBUG] zap_io.c:2362 found config for span
2009-12-27 10:05:01.651968 [DEBUG] zap_io.c:2400 created span 2 (span2) 
of type zt
2009-12-27 10:05:01.652022 [DEBUG] zap_io.c:2413 span 2 [name]=[OpenZAP]
2009-12-27 10:05:01.652041 [DEBUG] zap_io.c:2413 span 2 [number]=[2]
2009-12-27 10:05:01.652057 [DEBUG] zap_io.c:2413 span 2 [fxo-channel]=[2]
2009-12-27 10:05:01.652071 [DEBUG] zap_io.c:2442 setting trunk type to 
'FXO' start(KEWL)
2009-12-27 10:05:01.652180 [ERR] ozmod_zt.c:269 failure configuring 
device /dev/zap/channel chan 2 fd 42 (Function not implemented)
2009-12-27 10:05:01.652207 [DEBUG] zap_io.c:2362 found config for span
2009-12-27 10:05:01.652282 [DEBUG] zap_io.c:2400 created span 3 (span3) 
of type zt
2009-12-27 10:05:01.652299 [DEBUG] zap_io.c:2413 span 3 [name]=[OpenZAP]
2009-12-27 10:05:01.652315 [DEBUG] zap_io.c:2413 span 3 [number]=[3]
2009-12-27 10:05:01.652344 [DEBUG] zap_io.c:2413 span 3 [fxo-channel]=[3]
2009-12-27 10:05:01.652358 [DEBUG] zap_io.c:2442 setting trunk type to 
'FXO' start(KEWL)
2009-12-27 10:05:01.652483 [ERR] ozmod_zt.c:269 failure configuring 
device /dev/zap/channel chan 3 fd 42 (Function not implemented)
2009-12-27 10:05:01.652556 [INFO] zap_io.c:2502 Configured 0 channel(s)
2009-12-27 10:05:01.652573 [ERR] zap_io.c:2765 No modules configured!
2009-12-27 10:05:01.652589 [ERR] mod_openzap.c:2882 Error loading OpenZAP
2009-12-27 10:05:01.652605 [CRIT] switch_loadable_module.c:871 Error 
Loading module /opt/freeswitch/mod/mod_openzap.so

To get to this point.  I had to symbolically link /dev/zap to /dev/dahdi 
and change the permissions of /dev/dahdi.  I gave /dev/dhadi 777 
permissions.


I hope someone can advise us what to do next.  Thank you






More information about the FreeSWITCH-users mailing list