Skip to content

Instantly share code, notes, and snippets.

@happyj2me
Last active July 31, 2019 07:33
Show Gist options
  • Save happyj2me/487ba1c25a26626b185618de392557a7 to your computer and use it in GitHub Desktop.
Save happyj2me/487ba1c25a26626b185618de392557a7 to your computer and use it in GitHub Desktop.
1.获取会话id和hid
curl -X POST -H "Content-Type: application/json" -d '{"janus": "list_sessions", "transaction": "123", "admin_secret": "janusoverlord"}' http://localhost:7088/admin
curl -X POST -H "Content-Type: application/json" -d '{"janus": "list_sessions", "transaction": "123", "admin_secret": "janusoverlord"}' http://localhost:7088/admin
2.启动janus抓包和停止抓包,抓取rtp明文
curl -X POST -H "Content-Type: application/json" -d '{"janus": "start_pcap", "folder": "/tmp", "filename": "my-test2pcap-dump.pcap", "transaction": "123", "admin_secret": "janusoverlord"}' http://localhost:7088/admin/sessionId/handleId
curl -X POST -H "Content-Type: application/json" -d '{"janus": "stop_pcap", "transaction": "123", "admin_secret": "janusoverlord"}' http://localhost:7088/admin/sessionId/handleId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment