2.1.0 • Published 12 years ago
travis-freeswitch v2.1.0
Travis-FreeSwitch
Enables you to start arbitrary FreeSwitch instances for test purposes.
Add as a development dependency
npm --save-dev install travis-freeswitchAdd it in your .travis.yml
before_script:
  - sudo ./node_modules/travis-freeswitch/install.shIn your test code
freeswitch = require('travis-freeswitch')
service = freeswitch.start '../test/freeswitch.xml'The service is a Node.js ChildProcess. It will be automatically cleaned up at the end of the Node.js process, but you might also manually rip it:
service.kill()To start multiple concurrent FreeSwitch process make sure the ports for the event socket, sofia SIP, etc. are all different.
What is provided
The core FreeSwitch application plus the following modules:
- commands
- event-socket
- dptools
- loopback
- dialplan-xml
- sofia
If you need additional modules please open an issue or a pull-request.