pespin has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/67/29567/1

diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c
index 652eea7..01a0c2d 100644
--- a/src/libosmo-mgcp/mgcp_osmux.c
+++ b/src/libosmo-mgcp/mgcp_osmux.c
@@ -287,12 +287,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 = conn->osmux.in->data;
        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: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to