baresip-configurator
v1.0.6
Published
A NodeJS utility to edit BareSIP config and accounts files
Downloads
3
Readme
BareSIP Configurator
Install
$ npm install baresip-configurator
AccountsEditor
Usage
import { AccountsEditor } from 'baresip-configurator';
const editor = new AccountsEditor();
Methods
- add (settingLineString) adds a setting
- get (settingName) returns the setting value
- set(settingName, value) sets the setting value
- save (fileName, basePath) writes the editor data to the file
Settings
- username
- password
- server
- port
ConfigEditor
Usage
import { ConfigEditor } from 'baresip-configurator';
const editor = new ConfigEditor();
Methods
- add (settingLineString) adds a setting
- get (settingName) returns the setting value
- set (settingName, value) sets the setting value
- isCommented (settingName, valueBeginWith) returns true if the setting is commented
- uncomment (settingName, valueBeginWith) uncomments the setting
- save (fileName, basePath) writes the editor data to the file