Module: sip-router
Branch: master
Commit: 8958a14e8ef86986168f4d555435fe561bb7cb3e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8958a14…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Aug 17 11:29:41 2011 +0200
core: added test if SREV_NET_DGRAM_IN callback is set
- patch by Alexandr Dubovikov
---
events.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/events.c b/events.c
index 048cb45..0b78df8 100644
--- a/events.c
+++ b/events.c
@@ -188,6 +188,8 @@ int sr_event_enabled(int type)
return (_sr_events_list.pkg_set_used!=0)?1:0;
case SREV_PKG_SET_REAL_USED:
return (_sr_events_list.pkg_set_real_used!=0)?1:0;
+ case SREV_NET_DGRAM_IN:
+ return (_sr_events_list.net_dgram_in!=0)?1:0;
}
return 0;
}