Module: sip-router
Branch: mariusbucur/dmq
Commit: 7c81dea1c74b2359770c2e5c62088897fe2f9a42
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7c81dea…
Author: Marius Bucur <marius.bucur(a)1and1.ro>
Committer: Marius Bucur <marius.bucur(a)1and1.ro>
Date: Fri Apr 8 19:32:50 2011 +0300
added notification peer to the dmq module
---
modules_k/dmq/notification_peer.c | 17 +++++++++++++++++
modules_k/dmq/notification_peer.h | 4 ++++
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/modules_k/dmq/notification_peer.c b/modules_k/dmq/notification_peer.c
new file mode 100644
index 0000000..28fba07
--- /dev/null
+++ b/modules_k/dmq/notification_peer.c
@@ -0,0 +1,17 @@
+#include "notification_peer.h"
+
+int add_notification_peer() {
+ int ret;
+ dmq_notification_peer.callback = dmq_notification_callback;
+ dmq_notification_peer.description.s = "dmqpeer";
+ dmq_notification_peer.description.len = 7;
+ dmq_notification_peer.peer_id.s = "dmqpeer";
+ dmq_notification_peer.peer_id.len = 7;
+ ret = register_dmq_peer(&dmq_notification_peer);
+ return ret;
+}
+
+int dmq_notification_callback(struct sip_msg* msg) {
+ LM_ERR("dmq triggered from dmq_notification_callback\n");
+ return 0;
+}
\ No newline at end of file
diff --git a/modules_k/dmq/notification_peer.h b/modules_k/dmq/notification_peer.h
new file mode 100644
index 0000000..0e6121a
--- /dev/null
+++ b/modules_k/dmq/notification_peer.h
@@ -0,0 +1,4 @@
+#include "dmq.h"
+
+int add_notification_peer();
+int dmq_notification_callback(struct sip_msg* msg);
\ No newline at end of file