Module: kamailio Branch: master Commit: cb8304f1f6be1eca3f9bd982265d5c3bed528189 URL: https://github.com/kamailio/kamailio/commit/cb8304f1f6be1eca3f9bd982265d5c3b...
Author: Alexandr Dubovikov alexandr.dubovikov@gmail.com Committer: Alexandr Dubovikov alexandr.dubovikov@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/cb8304f1f6be1eca3f9bd982265d5c3b... Patch: https://github.com/kamailio/kamailio/commit/cb8304f1f6be1eca3f9bd982265d5c3b...
---
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; }