diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-18 23:59:43 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-18 23:59:43 +0800 |
commit | cdad4de33033c463cc5cf67ace13fda3103d8203 (patch) | |
tree | 9dd5d688dbd46fa8e9cac958c78c52136c62991d /src/mgcp_ss7.c | |
parent | b988caa1603baaa14c5d03b47a53eb834a4768f7 (diff) |
mgcp: Only if this node is supposed to send data send a dummy packet
In case the gateway is configured as recvonly, do not send a dummy
load as this is against the policy.
Diffstat (limited to 'src/mgcp_ss7.c')
-rw-r--r-- | src/mgcp_ss7.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c index 799efa2..015c14c 100644 --- a/src/mgcp_ss7.c +++ b/src/mgcp_ss7.c @@ -436,7 +436,9 @@ static int ss7_modify_endpoint(struct mgcp_ss7 *ss7, int endp_no, struct mgcp_ss * this is a bad assumption of the network. We assume * to have the remote addr now. */ - mgcp_send_dummy(mg_endp); + if (mg_endp->conn_mode == MGCP_CONN_SEND_ONLY || + mg_endp->conn_mode == MGCP_CONN_RECV_SEND) + mgcp_send_dummy(mg_endp); /* update the remote end */ return MGCP_POLICY_CONT; |