send_dummy: Use proper condition to test if conn is osmux

Change-Id: I493e7afaf8e6edb5bf975b3097fab49986d064cf
This commit is contained in:
Pau Espin 2022-10-04 12:09:14 +02:00
parent 2dd2b33030
commit abb9d47c90
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ error:
* osmux connection, send the dummy packet via OSMUX */
static void send_dummy(struct mgcp_endpoint *endp, struct mgcp_conn_rtp *conn)
{
if (conn->osmux.state != OSMUX_STATE_DISABLED)
if (mgcp_conn_rtp_is_osmux(conn))
osmux_send_dummy(endp, conn);
else
mgcp_send_dummy(endp, conn);