[PATCH] osmo-bts[master]: LC15: common/rsl.c : Alarm - Failed to create IPAC RTP/RTCP ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Minh-Quang Nguyen gerrit-no-reply at lists.osmocom.org
Tue Jun 14 15:23:06 UTC 2016


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/262

to look at the new patch set (#2).

LC15: common/rsl.c : Alarm - Failed to create IPAC RTP/RTCP socket

Change-Id: I6426f7fcb1e2e25f8143c0b5835c24fedc8089be
---
M src/common/rsl.c
1 file changed, 14 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/62/262/2

diff --git a/src/common/rsl.c b/src/common/rsl.c
index e661b18..4fee48b 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1461,6 +1461,8 @@
 	int rc, inc_ip_port = 0, port;
 	char *name;
 	struct in_addr ia;
+	char log_msg[100];
+	struct gsm_failure_evt_rep failure_rep;
 
 	if (dch->c.msg_type == RSL_MT_IPAC_CRCX)
 		name = "CRCX";
@@ -1517,9 +1519,18 @@
 		lchan->abis_ip.rtp_socket = osmo_rtp_socket_create(lchan->ts->trx,
 								OSMO_RTP_F_POLL);
 		if (!lchan->abis_ip.rtp_socket) {
-			LOGP(DRSL, LOGL_ERROR,
-			     "%s IPAC Failed to create RTP/RTCP sockets\n",
-			     gsm_lchan_name(lchan));
+
+			snprintf(log_msg, 100, "%s IPAC Failed to create RTP/RTCP sockets\n", gsm_lchan_name(lchan));
+			LOGP(DRSL, LOGL_ERROR,"%s", log_msg);
+
+			failure_rep.event_type = NM_EVT_COMM_FAIL;
+			failure_rep.event_serverity = NM_SEVER_CRITICAL;
+			failure_rep.cause_type = NM_PCAUSE_T_MANUF;
+			failure_rep.event_cause = NM_MM_EVT_CRIT_RTP_TOUT;
+			failure_rep.add_text = (char *)&log_msg;
+
+			oml_tx_failure_event_rep(&lchan->ts->trx->mo, failure_rep);
+
 			return tx_ipac_XXcx_nack(lchan, RSL_ERR_RES_UNAVAIL,
 						 inc_ip_port, dch->c.msg_type);
 		}

-- 
To view, visit https://gerrit.osmocom.org/262
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6426f7fcb1e2e25f8143c0b5835c24fedc8089be
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list