[sr-dev] git:master:cb8304f1: Merge pull request #44 from adubovikov/master

Alexandr Dubovikov alexandr.dubovikov at gmail.com
Sat Jan 17 20:48:12 CET 2015


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

Author: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Committer: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Date: 2015-01-17T20:48:05+01:00

Merge pull request #44 from adubovikov/master

added bool to print error once

---

Modified: modules/sipcapture/hep.c

---

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

---

diff --git a/modules/sipcapture/hep.c b/modules/sipcapture/hep.c
index c1ff51c..a14fcd9 100644
--- a/modules/sipcapture/hep.c
+++ b/modules/sipcapture/hep.c
@@ -37,7 +37,7 @@
 #include "sipcapture.h"
 
 
-
+static int show_error = 0;
 static int count = 0;
 
 struct hep_timehdr* heptime;
@@ -58,7 +58,10 @@ int hep_msg_received(void *data)
         struct receive_info *ri;
 
         if(!hep_capture_on) {
-                LOG(L_ERR, "sipcapture:hep_msg_received HEP is not enabled\n");
+        	if(show_error == 0) {
+                	LOG(L_ERR, "sipcapture:hep_msg_received HEP is not enabled\n");
+                	show_error = 1;
+        	}
                 return -1;
         }
 




More information about the sr-dev mailing list