freeswitch user administrator
Project description
freeswitch 用户管理
安装依赖
pip install freeswitch -i https://pypi.tuna.tsinghua.edu.cn/simple
帮助信息
[root@netkiller ~]# sip -h
usage: sip [-h] [-a ] [-p ] [-r 1000] [-c ] [-l] [-s 1000] [--simple] [--strength] [-e contacts.csv] [-d] [-b]
FreeSWITCH 用户管理工具
options:
-h, --help show this help message and exit
-a, --add <number> <callsign> <callgroup> 添加用户
-p, --passwd 指定密码
-r, --remove 1000 删除用户
-c, --change <number> <callsign> <callgroup> 修改用户
-l, --list 列出用户
-s, --show 1000 查看用户
--simple 密码强度(8位数字)
--strength 密码强度(16位字母加数字)
-e, --export contacts.csv
导出联系人
-d, --debug 调试模式
-b, --backup 备份 XML 配置文件
Author: netkiller - https://www.netkiller.cn/linux/voip/
添加用户
PS D:\GitHub\freeswitch> python.exe .\freeswitch.py -a 1000 BG7NYT admin
查看用于
PS D:\GitHub\freeswitch> python.exe .\freeswitch.py -s 1000
<include>
<user id="1000">
<params>
<param name="password" value="B5AbNCYj"/>
<param name="vm-password" value="1000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1000"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="BG7NYT"/>
<variable name="effective_caller_id_number" value="1000"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="admin"/>
</variables>
</user>
</include>
列出所有用户
PS D:\GitHub\freeswitch> python.exe .\freeswitch.py -l
+----------+--------+----------+----------+--------+
| 电话号码 | 呼号 | 密码 | 语音信箱 | 呼叫组 |
+==========+========+==========+==========+========+
| 1000 | BG7NYT | HbM3imgb | 2031 | admin |
+----------+--------+----------+----------+--------+
| 1003 | BG7NYT | 1u3Fc6t4 | 5927 | 33333 |
+----------+--------+----------+----------+--------+
删除用户
PS D:\GitHub\freeswitch> python.exe .\freeswitch.py -r 1000
编译包
(.venv) neo@Neo-Mac-mini-M4 freeswitch % pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
(.venv) neo@Neo-Mac-mini-M4 freeswitch % python3 -m build
(.venv) neo@Neo-Mac-mini-M4 freeswitch % pip install dist/freeswitch-0.0.1-py3-none-any.whl --force-reinstall
(.venv) neo@Neo-Mac-mini-M4 freeswitch % sip
usage: sip [-h] [-a ] [-p ] [-r 1000] [-c ] [-l] [-s 1000] [--simple] [--strength] [-e contacts.csv] [-d] [-b]
FreeSWITCH 用户管理工具
options:
-h, --help show this help message and exit
-a, --add <number> <callsign> 添加用户
-p, --passwd 指定密码
-r, --remove 1000 删除用户
-c, --change <number> <callsign> 修改用户
-l, --list 列出用户
-s, --show 1000 查看用户
--simple 密码强度(8位数字)
--strength 密码强度(16位字母加数字)
-e, --export contacts.csv
导出联系人
-d, --debug 调试模式
-b, --backup 备份 XML 配置文件
Author: netkiller - https://www.netkiller.cn/linux/voip/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
freeswitch-0.2.1.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freeswitch-0.2.1.tar.gz.
File metadata
- Download URL: freeswitch-0.2.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4b235e67734a75ac4d94896057d0e6d0b5cbc963045a69c8770d2996e49ba26
|
|
| MD5 |
5956b865e9548faf04f0f7532a994d13
|
|
| BLAKE2b-256 |
8b9179033a37b5862a45ea1290ecd2f0c35ae52a8315c7dfa255d29e08adc352
|
File details
Details for the file freeswitch-0.2.1-py3-none-any.whl.
File metadata
- Download URL: freeswitch-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4acffca098175566da7f341532330f5e25a74d2415bbf2580db2a2bf777c02f8
|
|
| MD5 |
978496f69fe7f60cb7fe02920aa0ef3c
|
|
| BLAKE2b-256 |
cbe1fd0deefe953a1445b4dbdbed0daea3cc4b99b0aa4b0780d0882639bc01a6
|