osmux: Fill in from_addr in struct osmo_rtp_msg_ctx
Change-Id: I9783978e295b964ca914f8d90d73effa8785f10d
diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c
index 9187007..8b12533 100644
--- a/src/libosmo-mgcp/mgcp_osmux.c
+++ b/src/libosmo-mgcp/mgcp_osmux.c
@@ -295,12 +295,12 @@
{
struct mgcp_conn_rtp *conn = data;
struct mgcp_endpoint *endp = conn->conn->endp;
- struct osmo_sockaddr addr = { /* FIXME: do we know the source address?? */ };
+ struct osmux_handle *h = osmux_xfrm_input_get_deliver_cb_data(conn->osmux.in);
struct osmo_rtp_msg_ctx *mc = OSMO_RTP_MSG_CTX(msg);
*mc = (struct osmo_rtp_msg_ctx){
.proto = MGCP_PROTO_RTP,
.conn_src = conn,
- .from_addr = &addr,
+ .from_addr = &h->rem_addr,
};
endp->type->dispatch_rtp_cb(msg);