Module: sip-router
Branch: master
Commit: f7fd425060a5b4d76fca787ba5938d2658f0e64a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f7fd425…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Tue Mar 6 17:58:05 2012 +0000
modules_k/statistics: update_stat() can now be called from ANY_ROUTE
---
modules_k/statistics/README | 3 +--
modules_k/statistics/doc/statistics_admin.xml | 3 +--
modules_k/statistics/statistics.c | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules_k/statistics/README b/modules_k/statistics/README
index 1bb8659..0554add 100644
--- a/modules_k/statistics/README
+++ b/modules_k/statistics/README
@@ -109,8 +109,7 @@ modparam("statistics", "variable", "active_calls/no_reset")
pseudovariable);
* value - value to update with; it may be also negative.
- This function can be used from REQUEST_ROUTE, BRANCH_ROUTE,
- FAILURE_ROUTE and ONREPLY_ROUTE.
+ This function can be used from ANY_ROUTE.
Example 1.2. update_stat usage
...
diff --git a/modules_k/statistics/doc/statistics_admin.xml b/modules_k/statistics/doc/statistics_admin.xml
index ffbe622..fb003f6 100644
--- a/modules_k/statistics/doc/statistics_admin.xml
+++ b/modules_k/statistics/doc/statistics_admin.xml
@@ -105,8 +105,7 @@ modparam("statistics", "variable", "active_calls/no_reset")
</listitem>
</itemizedlist>
<para>
- This function can be used from REQUEST_ROUTE, BRANCH_ROUTE,
- FAILURE_ROUTE and ONREPLY_ROUTE.
+ This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>update_stat</function> usage</title>
diff --git a/modules_k/statistics/statistics.c b/modules_k/statistics/statistics.c
index 9cf0bcb..7aabe50 100644
--- a/modules_k/statistics/statistics.c
+++ b/modules_k/statistics/statistics.c
@@ -56,7 +56,7 @@ struct stat_or_pv {
static cmd_export_t cmds[]={
{"update_stat", (cmd_function)w_update_stat, 2, fixup_stat, 0,
- REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"reset_stat", (cmd_function)w_reset_stat, 1, fixup_stat, 0,
REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|LOCAL_ROUTE},
{0,0,0,0,0,0}
Hi All,
Was wondering if there was a mechanism to internally (ie via another
module) trigger notifies on a particular presentity? Looking at presence
module I see there is only a handle_publish (called from cfg file on
PUBLISH request). I would imagine it would be useful to add to the presence
API a mechanism to update a presentity from within Kamailio as opposed to
relying on a publish. I understand there is the PUA modules but from what I
can see these explicitly send a PUBLISH to a presence server and is not
what I am looking for.
My scenario:
I need to implicitly register a user and send notifies to all subscribed
watchers (from another module).
Cheers
Jason
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#197 - pua_dialoginfo: set PUBLISH R-URIs via AVPs
User who did this - Jasmin Schnatterbeck (jasmin)
----------
Thanks for your suggestions!
I have updated the patch - now there is a module parameter available for setting a flag that indicates whether to send PUBLISH requests or not.
If the flag has not been set, the default behaviour is to check if the PUBLISH R-URI is local or not.
It does not depend on the R-URI via AVP functionality.
Regarding the SHM OPs I see 2 possibilities
- first determine how much memory we need, then reserve that amount of SHM memory in one OP and write on it (that means searching the AVP lists 2 times).
- reserve and write in PKG MEM, then reserve and copy to SHM MEM, then delete PKG MEM
What would you prefer?
I plan to integrate functionality for individualizing the xml target elements (for Call pickup). The idea is, that the script writer then has the option to set a proxy, that should receive the INVITE of the new call, that aims to pick up the ringing call - because then the new call can be monitored by pua_dialoginfo on that proxy.
This could be done by putting the desired proxy in the target uri and to set the "real" target-URI (as obtained from the Contact-Header e.g. of the orig INVITE) as URI-Param.
Are there other suggestions/ideas on how to realize that?
Jasmin
----------
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=197#comment504
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.