{"id":28546450,"url":"https://github.com/netkiller/freeswitch","last_synced_at":"2026-03-11T15:13:37.829Z","repository":{"id":287114974,"uuid":"963015486","full_name":"netkiller/freeswitch","owner":"netkiller","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-25T07:48:17.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T09:26:46.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netkiller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-09T03:02:18.000Z","updated_at":"2025-07-25T07:48:21.000Z","dependencies_parsed_at":"2025-07-07T06:33:11.422Z","dependency_job_id":"af4ec00d-486f-4cc6-977e-6276e8b66c8f","html_url":"https://github.com/netkiller/freeswitch","commit_stats":null,"previous_names":["netkiller/freeswitch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/netkiller/freeswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Ffreeswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Ffreeswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Ffreeswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Ffreeswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netkiller","download_url":"https://codeload.github.com/netkiller/freeswitch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Ffreeswitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30385370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T23:39:31.141Z","updated_at":"2026-03-11T15:13:37.823Z","avatar_url":"https://github.com/netkiller.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# freeswitch 用户管理\n\n## 安装依赖\n\npip install freeswitch -i https://pypi.tuna.tsinghua.edu.cn/simple\n\n## 帮助信息\n\n```shell\n[root@netkiller ~]# sip -h\nusage: sip [-h] [-a  ] [-p ] [-r 1000] [-c   ] [-l] [-s 1000] [--simple] [--strength] [-e contacts.csv] [-d] [-b]\n\nFreeSWITCH 用户管理工具\n\noptions:\n  -h, --help            show this help message and exit\n  -a, --add             \u003cnumber\u003e \u003ccallsign\u003e \u003ccallgroup\u003e 添加用户\n  -p, --passwd          指定密码\n  -r, --remove 1000     删除用户\n  -c, --change          \u003cnumber\u003e \u003ccallsign\u003e \u003ccallgroup\u003e 修改用户\n  -l, --list            列出用户\n  -s, --show 1000       查看用户\n  --simple              密码强度（8位数字）\n  --strength            密码强度（16位字母加数字）\n  -e, --export contacts.csv\n                        导出联系人\n  -d, --debug           调试模式\n  -b, --backup          备份 XML 配置文件\n\nAuthor: netkiller - https://www.netkiller.cn/linux/voip/\n\n\n```\n\n## 添加用户\n\n```shell\nPS D:\\GitHub\\freeswitch\u003e python.exe .\\freeswitch.py -a 1000 BG7NYT admin \n```\n\n## 查看用于\n\n```shell\nPS D:\\GitHub\\freeswitch\u003e python.exe .\\freeswitch.py -s 1000             \n\u003cinclude\u003e\n        \u003cuser id=\"1000\"\u003e\n                \u003cparams\u003e\n                        \u003cparam name=\"password\" value=\"B5AbNCYj\"/\u003e\n                        \u003cparam name=\"vm-password\" value=\"1000\"/\u003e\n                \u003c/params\u003e\n                \u003cvariables\u003e\n                        \u003cvariable name=\"toll_allow\" value=\"domestic,international,local\"/\u003e\n                        \u003cvariable name=\"accountcode\" value=\"1000\"/\u003e\n                        \u003cvariable name=\"user_context\" value=\"default\"/\u003e\n                        \u003cvariable name=\"effective_caller_id_name\" value=\"BG7NYT\"/\u003e\n                        \u003cvariable name=\"effective_caller_id_number\" value=\"1000\"/\u003e\n                        \u003cvariable name=\"outbound_caller_id_name\" value=\"$${outbound_caller_name}\"/\u003e\n                        \u003cvariable name=\"outbound_caller_id_number\" value=\"$${outbound_caller_id}\"/\u003e\n                        \u003cvariable name=\"callgroup\" value=\"admin\"/\u003e\n                \u003c/variables\u003e\n        \u003c/user\u003e\n\u003c/include\u003e\n```\n\n## 列出所有用户\n\n```shell\nPS D:\\GitHub\\freeswitch\u003e python.exe .\\freeswitch.py -l                  \n+----------+--------+----------+----------+--------+\n| 电话号码 |  呼号  |   密码   | 语音信箱 | 呼叫组 |\n+==========+========+==========+==========+========+\n| 1000     | BG7NYT | HbM3imgb | 2031     | admin  |\n+----------+--------+----------+----------+--------+\n| 1003     | BG7NYT | 1u3Fc6t4 | 5927     | 33333  |\n+----------+--------+----------+----------+--------+\n\n```\n\n## 删除用户\n\n```shell\nPS D:\\GitHub\\freeswitch\u003e python.exe .\\freeswitch.py -r 1000\n```\n\n## 编译包\n\n```shell\n(.venv) neo@Neo-Mac-mini-M4 freeswitch % pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple\n(.venv) neo@Neo-Mac-mini-M4 freeswitch % python3 -m build \n(.venv) neo@Neo-Mac-mini-M4 freeswitch % pip install dist/freeswitch-0.0.1-py3-none-any.whl --force-reinstall \n\n(.venv) neo@Neo-Mac-mini-M4 freeswitch % sip \nusage: sip [-h] [-a   ] [-p ] [-r 1000] [-c   ] [-l] [-s 1000] [--simple] [--strength] [-e contacts.csv] [-d] [-b]\n\nFreeSWITCH 用户管理工具\n\noptions:\n  -h, --help            show this help message and exit\n  -a, --add             \u003cnumber\u003e \u003ccallsign\u003e 添加用户\n  -p, --passwd          指定密码\n  -r, --remove 1000     删除用户\n  -c, --change          \u003cnumber\u003e \u003ccallsign\u003e 修改用户\n  -l, --list            列出用户\n  -s, --show 1000       查看用户\n  --simple              密码强度（8位数字）\n  --strength            密码强度（16位字母加数字）\n  -e, --export contacts.csv\n                        导出联系人\n  -d, --debug           调试模式\n  -b, --backup          备份 XML 配置文件\n\nAuthor: netkiller - https://www.netkiller.cn/linux/voip/\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Ffreeswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetkiller%2Ffreeswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Ffreeswitch/lists"}