[sr-dev] git:master:111a63cf: tcpops: log message when execution kemi callback fails

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 11 10:33:04 CET 2019


Module: kamailio
Branch: master
Commit: 111a63cfdb6c392321fb7b8f5e6b760e1fc995b5
URL: https://github.com/kamailio/kamailio/commit/111a63cfdb6c392321fb7b8f5e6b760e1fc995b5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-03-11T10:32:27+01:00

tcpops: log message when execution kemi callback fails

---

Modified: src/modules/tcpops/tcpops.c

---

Diff:  https://github.com/kamailio/kamailio/commit/111a63cfdb6c392321fb7b8f5e6b760e1fc995b5.diff
Patch: https://github.com/kamailio/kamailio/commit/111a63cfdb6c392321fb7b8f5e6b760e1fc995b5.patch

---

diff --git a/src/modules/tcpops/tcpops.c b/src/modules/tcpops/tcpops.c
index cab215365c..9abf34af6e 100644
--- a/src/modules/tcpops/tcpops.c
+++ b/src/modules/tcpops/tcpops.c
@@ -260,7 +260,12 @@ static void tcpops_tcp_closed_run_route(tcp_closed_event_info_t *tev)
 		} else {
 			evname = &tcpops_evrt_closed;
 		}
-		sr_kemi_route(keng, fmsg, EVENT_ROUTE, &tcpops_event_callback, evname);
+		if(sr_kemi_route(keng, fmsg, EVENT_ROUTE, &tcpops_event_callback,
+					evname)<0) {
+			LM_ERR("error running event route kemi callback [%.*s - %.*s]\n",
+						tcpops_event_callback.len, tcpops_event_callback.s,
+						evname->len, evname->s);
+		}
 	}
 	set_route_type(backup_rt);
 }




More information about the sr-dev mailing list