Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MTX_CONN_TYPE in webhooks contains simply word "conn" instead of connection type (rtmp, rtsp, etc) #3967

Closed
terion-name opened this issue Nov 21, 2024 · 1 comment · Fixed by #4075

Comments

@terion-name
Copy link

Which version are you using?

1.9.3

Which operating system are you using?

Linux amd64 Docker

Describe how to replicate the issue

config:

# Command to run when a client connects to the server.
# This is terminated with SIGINT when a client disconnects from the server.
# The following environment variables are available:
# * RTSP_PORT: RTSP server port
# * MTX_CONN_TYPE: connection type
# * MTX_CONN_ID: connection ID
runOnConnect: 'curl -X POST http://mtx-viewer:8080/start -H "Content-Type: application/x-www-form-urlencoded" -d "id=${MTX_CONN_ID}&ctype=${MTX_CONN_TYPE}"'
# Restart the command if it exits.
runOnConnectRestart: no
# Command to run when a client disconnects from the server.
# Environment variables are the same of runOnConnect.
runOnDisconnect: 'curl -X POST http://mtx-viewer:8080/stop -H "Content-Type: application/x-www-form-urlencoded" -d "id=${MTX_CONN_ID}&ctype=${MTX_CONN_TYPE}"'

connecting with rtmp or rtsp — and callbacks receive only word "conn" in payloads

Server logs

No response

Network dump

No response

Copy link
Contributor

github-actions bot commented Jan 3, 2025

This issue is mentioned in release v1.11.0 🚀
Check out the entire changelog by clicking here

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant