【文件属性】:
文件名称:baresip-wrapper:用于BareSIP的NodeJS包装器
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-01 07:44:15
sip baresip sip-client JavaScript
BareSIP NodeJS包装器
要求
在BareSIP配置中必须取消注释httpd模块
安装
$ npm install baresip-wrapper
用法
import Baresip from 'baresip-wrapper' ;
const baresip = new Baresip ( 'command to start baresip' ) ;
baresip . connect ( ) ;
方法
accept()接受来电
拨打(phoneNumber)拨打电话号码
hangUp()挂断
kill()杀死生成的进程。
on(事件,回调)以设置事件处理程序
reload()以重新创建生成的进程(这是必需的,例如,一旦更改帐户文件)
toggleCallMuted()使当前通话的麦克风静音或取消静音
大事记
准备好BareSIP已初始化
serverConnected B
【文件预览】:
baresip-wrapper-master
----.gitignore(57B)
----package.json(568B)
----index.js(2KB)
----scripts()
--------demo.js(617B)
----README.md(1KB)