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

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 Max, Jenkins Builder,

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

    https://gerrit.osmocom.org/263

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

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

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


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

diff --git a/src/common/rsl.c b/src/common/rsl.c
index 4fee48b..d9af705 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1557,9 +1557,17 @@
 		rc = osmo_rtp_socket_bind(lchan->abis_ip.rtp_socket,
 					  ipstr, -1);
 		if (rc < 0) {
-			LOGP(DRSL, LOGL_ERROR,
-			     "%s IPAC Failed to bind RTP/RTCP sockets\n",
-			     gsm_lchan_name(lchan));
+			snprintf(log_msg, 100, "%s IPAC Failed to bind 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);
+
 			osmo_rtp_socket_free(lchan->abis_ip.rtp_socket);
 			lchan->abis_ip.rtp_socket = NULL;
 			msgb_queue_flush(&lchan->dl_tch_queue);

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

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ief24e775dd186dbf2bb773afbc3e16d7037f179d
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
Gerrit-Reviewer: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list