pespin has uploaded this change for review.
osmux: Match remote address in osmux_conn_lookup()
Change-Id: Ia717efa5f68e9412b86ef44a4c42a0715ff0e469
---
M src/libosmo-mgcp/mgcp_osmux.c
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/65/29565/1
diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c
index b8a1c4b..37ab193 100644
--- a/src/libosmo-mgcp/mgcp_osmux.c
+++ b/src/libosmo-mgcp/mgcp_osmux.c
@@ -251,7 +251,8 @@
{
struct mgcp_endpoint *endp;
struct mgcp_conn *conn = NULL;
- struct mgcp_conn_rtp * conn_rtp;
+ struct mgcp_conn_rtp *conn_rtp;
+ struct osmux_handle *h;
int i;
for (i = 0; i < trunk->number_endpoints; i++) {
@@ -266,7 +267,10 @@
if (!mgcp_conn_rtp_is_osmux(conn_rtp))
continue;
- /* FIXME: Match remote address! */
+ /* Match remote address :*/
+ h = conn_rtp->osmux.in->data;
+ if (osmo_sockaddr_cmp(&h->rem_addr, rem_addr) != 0)
+ continue;
if (conn_rtp->osmux.local_cid == local_cid)
return conn_rtp;
To view, visit change 29565. To unsubscribe, or for help writing mail filters, visit settings.