Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
terion-name opened this issue Nov 21, 2024 · 0 comments

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

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

No branches or pull requests

1 participant