pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/29567 )

Change subject: osmux: Fill in from_addr in struct osmo_rtp_msg_ctx
......................................................................

osmux: Fill in from_addr in struct osmo_rtp_msg_ctx

Change-Id: I9783978e295b964ca914f8d90d73effa8785f10d
---
M src/libosmo-mgcp/mgcp_osmux.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  osmith: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



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);

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/29567
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I9783978e295b964ca914f8d90d73effa8785f10d
Gerrit-Change-Number: 29567
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to