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/
Metadata
Release files for freeswitch 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freeswitch-0.2.1.tar.gz | 6.6 kB | Without provenance | Details for freeswitch-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| freeswitch-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for freeswitch-0.2.1-py3-none-any.whl |
Total release size: 13.3 kB
Release files / freeswitch-0.2.1.tar.gz
| Download URL | freeswitch-0.2.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4b235e67734a75ac4d94896057d0e6d0b5cbc963045a69c8770d2996e49ba26
|
|
BLAKE2b-256 checksum How to use checksums |
8b9179033a37b5862a45ea1290ecd2f0c35ae52a8315c7dfa255d29e08adc352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / freeswitch-0.2.1-py3-none-any.whl
| Download URL | freeswitch-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4acffca098175566da7f341532330f5e25a74d2415bbf2580db2a2bf777c02f8
|
|
BLAKE2b-256 checksum How to use checksums |
cbe1fd0deefe953a1445b4dbdbed0daea3cc4b99b0aa4b0780d0882639bc01a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for freeswitch 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.