Skip to content

Instantly share code, notes, and snippets.

@tzuryby
Created December 16, 2009 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzuryby/257587 to your computer and use it in GitHub Desktop.
Save tzuryby/257587 to your computer and use it in GitHub Desktop.
## Get the source
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xzvf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8
### Install Sangoma Wanpipe drivers with TDM API support.
$ ./Setup install --protocol=AFT_TE1 –silent
### Get the latest LibPRI release and build it
$ cd ..
$ wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.tar.gz
$ tar xvzf libpri-1.4.10.tar.gz
$ cd libpri-1.4.10
$ make && make install
### Get the latest FreeSwitch release and build it
$ cd ..
$ wget http://files.freeswitch.org/freeswitch-1.0.4.tar.gz
$ tar xvzf freeswitch-1.0.4
$ cd freeswitch-1.0.4
### Uncomment the openzap module line (../../libs/openzap/mod_openzap)
$ vim modules.conf
$ ./configure
$ cd libs/openzap/
$ ./configure --with-libpri=/usr/include
$ cd ../../
$ make && make mod_openzap-install
2009-12-16 06:21:40.10498 [DEBUG] sofia.c:947 Starting thread for internal
2009-12-16 06:21:40.10572 [DEBUG] sofia.c:947 Starting thread for internal-ipv6
2009-12-16 06:21:41.686326 [NOTICE] switch_loadable_module.c:142 Adding Endpoint 'sofia'
2009-12-16 06:21:41.686387 [NOTICE] switch_loadable_module.c:270 Adding API Function 'sofia'
2009-12-16 06:21:41.686458 [NOTICE] switch_loadable_module.c:270 Adding API Function 'sofia_gateway_data'
2009-12-16 06:21:41.686513 [NOTICE] switch_loadable_module.c:270 Adding API Function 'sofia_contact'
2009-12-16 06:21:41.686567 [NOTICE] switch_loadable_module.c:375 Adding Chat interface 'sip'
2009-12-16 06:21:41.686619 [NOTICE] switch_loadable_module.c:419 Adding Management interface 'mod_sofia' OID[.1.3.6.1.4.1.27880.1]
2009-12-16 06:21:41.686890 [NOTICE] switch_loadable_module.c:142 Adding Endpoint 'loopback'
2009-12-16 06:21:41.687399 [DEBUG] zap_config.c:56 Configuration file is /usr/local/openzap/conf/modules.conf.
2009-12-16 06:21:41.693659 [NOTICE] zap_io.c:2630 Modules configured: 1
2009-12-16 06:21:41.693675 [DEBUG] zap_config.c:56 Configuration file is /usr/local/openzap/conf/openzap.conf.
2009-12-16 06:21:41.693705 [DEBUG] zap_io.c:2234 found config for span
2009-12-16 06:21:41.699432 [INFO] zap_io.c:2451 Loading IO from /usr/local/openzap/mod/ozmod_wanpipe.so [wanpipe]
2009-12-16 06:21:41.699459 [DEBUG] zap_config.c:56 Configuration file is /usr/local/openzap/conf/wanpipe.conf.
2009-12-16 06:21:41.705770 [INFO] zap_io.c:2251 auto-loaded 'wanpipe'
2009-12-16 06:21:41.705789 [DEBUG] zap_io.c:2272 created span 1 (span1) of type wanpipe
2009-12-16 06:21:41.705796 [DEBUG] zap_io.c:2285 span 1 [name]=[OpenZAP]
2009-12-16 06:21:41.705805 [DEBUG] zap_io.c:2285 span 1 [number]=[1]
2009-12-16 06:21:41.705820 [DEBUG] zap_io.c:2285 span 1 [fxs-channel]=[1:3-4]
2009-12-16 06:21:41.705833 [DEBUG] zap_io.c:2325 setting trunk type to 'FXS' start(KEWL)
2009-12-16 06:21:41.705864 [ERR] ozmod_wanpipe.c:291 failure configuring device s1c3
2009-12-16 06:21:41.705877 [ERR] ozmod_wanpipe.c:291 failure configuring device s1c4
2009-12-16 06:21:41.705885 [DEBUG] zap_io.c:2234 found config for span
2009-12-16 06:21:41.705920 [DEBUG] zap_io.c:2272 created span 2 (span2) of type wanpipe
2009-12-16 06:21:41.705932 [DEBUG] zap_io.c:2285 span 2 [fxo-channel]=[1:1-2]
2009-12-16 06:21:41.705937 [DEBUG] zap_io.c:2314 setting trunk type to 'FXO' start(KEWL)
2009-12-16 06:21:41.705950 [ERR] ozmod_wanpipe.c:291 failure configuring device s1c1
2009-12-16 06:21:41.705961 [ERR] ozmod_wanpipe.c:291 failure configuring device s1c2
2009-12-16 06:21:41.705968 [DEBUG] zap_io.c:2234 found config for span
2009-12-16 06:21:41.706111 [ERR] ozmod_zt.c:1147 No DAHDI or Zap control device found in /dev/
2009-12-16 06:21:41.706124 [ERR] zap_io.c:2449 Error loading /usr/local/openzap/mod/ozmod_zt.so
2009-12-16 06:21:41.706129 [ERR] zap_io.c:2494 Unloading /usr/local/openzap/mod/ozmod_zt.so
2009-12-16 06:21:41.706174 [CRIT] zap_io.c:2257 failure creating span, no such type 'zt'
2009-12-16 06:21:41.706192 [DEBUG] zap_io.c:2234 found config for span
2009-12-16 06:21:41.706332 [ERR] ozmod_zt.c:1147 No DAHDI or Zap control device found in /dev/
2009-12-16 06:21:41.706344 [ERR] zap_io.c:2449 Error loading /usr/local/openzap/mod/ozmod_zt.so
2009-12-16 06:21:41.706349 [ERR] zap_io.c:2494 Unloading /usr/local/openzap/mod/ozmod_zt.so
2009-12-16 06:21:41.706383 [CRIT] zap_io.c:2257 failure creating span, no such type 'zt'
2009-12-16 06:21:41.706414 [INFO] zap_io.c:2374 Configured 0 channel(s)
2009-12-16 06:21:41.706427 [ERR] zap_io.c:2637 No modules configured!
2009-12-16 06:21:41.706434 [ERR] mod_openzap.c:2484 Error loading OpenZAP
2009-12-16 06:21:41.706447 [CRIT] switch_loadable_module.c:871 Error Loading module /usr/local/freeswitch/mod/mod_openzap.so
**Module load routine returned an error**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment