aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-18 19:36:50 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-18 19:37:32 +0200
commite3abeb1400cba9598691d3fa4c1549c89ee7ef96 (patch)
tree92c95e7411d42c342965bef467debe747db2f67f
parent5d930f8745ae6ecbe995cc353217d50c542d9b9f (diff)
mgcp: Assume that on a MDCX all data is present...
Send a dummy packet on each MDCX message. This assumes that the remote address is available by then and this should fix not hearing the ringtone as the NAT didn't know to which port to forward the data.
-rw-r--r--src/mgcp_ss7.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c
index 015c14c..e0e61e3 100644
--- a/src/mgcp_ss7.c
+++ b/src/mgcp_ss7.c
@@ -433,12 +433,9 @@ static int ss7_modify_endpoint(struct mgcp_ss7 *ss7, int endp_no, struct mgcp_ss
mgcp_ss7_exec(ss7, MGCP_SS7_MUTE_STATUS, endp_no, mg_endp->conn_mode);
/*
- * this is a bad assumption of the network. We assume
- * to have the remote addr now.
+ * Just assume that we have the data now.
*/
- if (mg_endp->conn_mode == MGCP_CONN_SEND_ONLY ||
- mg_endp->conn_mode == MGCP_CONN_RECV_SEND)
- mgcp_send_dummy(mg_endp);
+ mgcp_send_dummy(mg_endp);
/* update the remote end */
return MGCP_POLICY_CONT;