mgcp_send: Use mgcp_conn_rtp_is_iuup() helper

Change-Id: I6988337f395168b88959876fe3827d8e67b8fc00
This commit is contained in:
Pau Espin 2022-10-19 19:18:50 +02:00
parent 0807771b9e
commit 01b812ea76
1 changed files with 1 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ int mgcp_send(struct mgcp_endpoint *endp, int is_rtp, struct osmo_sockaddr *addr
* course unable to patch the payload type. A situation like this
* should not occur if transcoding is consequently avoided. Until
* we have transcoding support in osmo-mgw we can not resolve this. */
if (is_rtp && conn_dst->type != MGCP_RTP_IUUP) {
if (is_rtp && !mgcp_conn_rtp_is_iuup(conn_dst)) {
rc = mgcp_patch_pt(conn_src, conn_dst, msg);
if (rc < 0) {
LOGPENDP(endp, DRTP, LOGL_DEBUG,