travis-freeswitch

2.1.0 • Public • Published

Travis-FreeSwitch

Enables you to start arbitrary FreeSwitch instances for test purposes.

Add as a development dependency

npm --save-dev install travis-freeswitch

Add it in your .travis.yml

before_script:
  - sudo ./node_modules/travis-freeswitch/install.sh

In 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.

Dependents (0)

Package Sidebar

Install

npm i travis-freeswitch

Weekly Downloads

1

Version

2.1.0

License

unlicense

Last publish

Collaborators

  • shimaore