NAMI-CC
nami-cc 是一个 node 连接 asterisk 的 ami 库。 根据CC项目 Fork Nami
- 修改package.json, 重命名 nami-cc 发布到 NAM.
- 添加相关 action
- 删除冗余日志
安装
npm install nami-cc
-or- Download it from this repo :)
配置
Nami expects a configuration object, very much like this:
let namiConfig = host: "amihost" port: 5038 username: "admin" secret: "secret";
快速开始
mkdir testnami cd testnami npm install nami
var nami = new NaminamiConfig;nami;nami;nami;nami;process;nami;nami;
Adding variables to actions
Use the property 'variables' in the actions:
var action = ;actionvariables = 'var1': 'val1';nami;