Module: sip-router
Branch: master
Commit: ceb69ce0949d3e2f6ece2467cbce90b0255e057a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ceb69ce…
Author: Elena-Ramona Modroiu <ramona(a)rosdev.ro>
Committer: Elena-Ramona Modroiu <ramona(a)rosdev.ro>
Date: Tue Feb 2 12:37:59 2010 +0100
mqueue: new module offering memory queues
- for usage in cfg file
- many queues can be defined
- one item in queue is a pair (key, value), both string
- functions to add and consume items in the queue
- fetching the oldest item makes it available to pseudo-variables
- example of usage: send tasks from SIP workers to a timer process
(e.g., defined by rtimer module) that consumes them. Can be some time
expensive operation, like email notification, etc.
---
modules/mqueue/Makefile | 12 +
modules/mqueue/README | 123 +++++++++++
modules/mqueue/doc/Makefile | 4 +
modules/mqueue/doc/mqueue.xml | 36 +++
modules/mqueue/doc/mqueue_admin.xml | 158 ++++++++++++++
modules/mqueue/mqueue_api.c | 408 +++++++++++++++++++++++++++++++++++
modules/mqueue/mqueue_api.h | 46 ++++
modules/mqueue/mqueue_mod.c | 208 ++++++++++++++++++
8 files changed, 995 insertions(+), 0 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=ceb…