Module: sip-router
Branch: master
Commit: a2d6730df7210084310d01c20b4ba2f3bcb883fb
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a2d6730…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Dec 22 13:07:33 2010 +0100
kex: updated pkg.stats documentation
---
modules_k/kex/README | 15 +++++++++++----
modules_k/kex/doc/kex_admin.xml | 31 +++++++++++++++++++++++++++----
2 files changed, 38 insertions(+), 8 deletions(-)
diff --git a/modules_k/kex/README b/modules_k/kex/README
index c04cdb2..f81977a 100644
--- a/modules_k/kex/README
+++ b/modules_k/kex/README
@@ -438,11 +438,18 @@ if(is_myself("$fu")) {
5.1. pkg.stats
- Print private memory (pkg) usage statistics per process. It can take an
- optinal parameter that specifies the pid of process to print statistics
- for. If pid parameter is not give, it prints statistics for all
+ Print private memory (pkg) usage statistics per process. It can take
+ optinally a filter to print statistics only for a specific process or
+ set of processes. If no filter is given, it prints statistics for all
processes.
+ The filter can be:
+ * pid value - print statistics for specific process pid.
+ * rank value - print statistics for specific process rank.
+ * index value - print statistics for specific index in process table.
+
Examples:
sercmd pkg.stats
- sercmd pkg.stats 1234
+ sercmd pkg.stats pid 1234
+ sercmd pkg.stats rank 1
+ sercmd pkg.stats index 10
diff --git a/modules_k/kex/doc/kex_admin.xml b/modules_k/kex/doc/kex_admin.xml
index da61349..6c65586 100644
--- a/modules_k/kex/doc/kex_admin.xml
+++ b/modules_k/kex/doc/kex_admin.xml
@@ -535,16 +535,39 @@ if(is_myself("$fu")) {
</title>
<para>
Print private memory (pkg) usage statistics per process. It
- can take an optinal parameter that specifies the pid of process
- to print statistics for. If pid parameter is not give, it prints
- statistics for all processes.
+ can take optinally a filter to print statistics only for a
+ specific process or set of processes. If no filter is given,
+ it prints statistics for all processes.
</para>
+ <para>The filter can be:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>pid value</emphasis> - print statistics for
+ specific process pid.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>rank value</emphasis> - print statistics for
+ specific process rank.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>index value</emphasis> - print statistics for
+ specific index in process table.
+ </para>
+ </listitem>
+ </itemizedlist>
<para>
Examples:
</para>
<programlisting format="linespecific">
sercmd pkg.stats
- sercmd pkg.stats 1234
+ sercmd pkg.stats pid 1234
+ sercmd pkg.stats rank 1
+ sercmd pkg.stats index 10
</programlisting>
</section>
</section>
Feature Requests item #1875757, was opened at 2008-01-20 14:01
Message generated for change (Comment added) made by aregr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1875757&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz Castillo (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add "Reason" header as tm parameter for CANCEL when forking
Initial Comment:
Hi, according to RFC 3326 [1] (Reason Header):
3.1 Call Completed Elsewhere
A proxy forks an INVITE request and one of the
branches returns a 200 (OK). The forking proxy
includes this status code in a Reason header
field in the CANCEL request that it sends to the
rest of the branches.
Reason: SIP ;cause=200 ;text="Call completed elsewhere"
With this behaviour, if an AoR is registered in two phones and one of them answers a call, that call will not appear as MISSED in the other phone (if the phone supports "Reason" headers).
This could be implemented as new "tm" parameters:
modparam("tm", "add_reason_200_flag", 26)
modparam("tm", "add_reason_200_text", "Call completed elsewhere") modparam("tm", "add_reason_200_text_avp", "$avp(i:26)")
The last parameter would be an AVP containing the text to send in CANCEL "Reason" header if the call has been replied with 200 in other branch. If not set, default value ("add_reason_200_text") would be used.
To add "Reason" header, flag(26) should be set before transaction creation:
lookup("location");
switch($rc) {
case 1:
setflag(26); # Add "Reason" header in CANCELLED branches.
$avp(i:26)="Call answered in other phone";
t_relay();
exit;
}
[1] RFC 3326 - The Reason Header Field: http://www.faqs.org/rfcs/rfc3326.html
----------------------------------------------------------------------
Comment By: aregr (aregr)
Date: 2010-12-22 12:23
Message:
This would be a very useful feature indeed for all those with forking
setups. Also seems that we have a steady growing number of phone
manufacturers supporting this feature as well.
Who could fix this? -Should not be too difficult to implement?
----------------------------------------------------------------------
Comment By: Olle E. Johansson (oej)
Date: 2008-06-30 22:09
Message:
Logged In: YES
user_id=7341
Originator: NO
I added this to Asterisk a short while ago. I think it would be very
useful in OpenSER too.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1875757&group_…
Module: sip-router
Branch: master
Commit: 70b2fe02a634ed2fd020eab27cbc8e7f676289bf
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=70b2fe0…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Dec 21 14:38:45 2010 +0100
core: fix ignored force_rport
The global force_rport config setting (not the force_rport()
script function), was ignored in some cases (e.g. tm & sl).
Reported-by: Tomas Mandys tomas.mandys iptel org
---
forward.h | 3 ++-
msg_translator.c | 3 ---
parser/msg_parser.c | 2 ++
parser/msg_parser.h | 7 +++++++
4 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/forward.h b/forward.h
index e5f1a38..7600535 100644
--- a/forward.h
+++ b/forward.h
@@ -98,7 +98,8 @@ int update_sock_struct_from_via( union sockaddr_union* to,
/* use src_ip, port=src_port if rport, via port if via port, 5060 otherwise */
#define update_sock_struct_from_ip( to, msg ) \
init_su((to), &(msg)->rcv.src_ip, \
- (((msg)->via1->rport)||((msg)->msg_flags&FL_FORCE_RPORT))? \
+ (((msg)->via1->rport)|| \
+ (((msg)->msg_flags|global_req_flags)&FL_FORCE_RPORT))? \
(msg)->rcv.src_port: \
((msg)->via1->port)?(msg)->via1->port: SIP_PORT )
diff --git a/msg_translator.c b/msg_translator.c
index c96d5b6..8b60fa7 100644
--- a/msg_translator.c
+++ b/msg_translator.c
@@ -156,9 +156,6 @@
extern char version[];
extern int version_len;
-/* global flags for build_req_from_sip_req */
-static unsigned int global_req_flags=0;
-
/** per process fixup function for global_req_flags.
diff --git a/parser/msg_parser.c b/parser/msg_parser.c
index a2a834e..f65cf85 100644
--- a/parser/msg_parser.c
+++ b/parser/msg_parser.c
@@ -82,6 +82,8 @@
/* number of via's encountered */
int via_cnt;
+/* global request flags */
+unsigned int global_req_flags = 0;
/* returns pointer to next header line, and fill hdr_f ;
* if at end of header returns pointer to the last crlf (always buf)*/
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index baf0cf1..8ef60ca 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -373,6 +373,13 @@ typedef struct sip_msg {
#define FAKED_REPLY ((struct sip_msg *) -1)
extern int via_cnt;
+/** global request flags.
+ * msg->msg_flags should be OR'ed with it before
+ * a flag value is checked, e.g.:
+ * if ((msg->msg_flags|global_req_flags) & FL_XXX) ...
+ */
+extern unsigned int global_req_flags;
+
int parse_msg(char* buf, unsigned int len, struct sip_msg* msg);
Hi!
When updating binaries of Kamailio (e.g. replacing a module) Kamailio
immediately shuts down, e.g.:
: <core> [pass_fd.c:293]: ERROR: receive_fd: EOF on 14
ALERT: <core> [main.c:741]: child process 15490 exited by a signal 11
When I update Asterisk I can replace the binaries and Asterisk keeps
still running. This is very convenient as the service disruption is much
shorter.
I wonder how Kamailio detects that the binaries were replaced. I suspect
it has something to do how the modules are loaded (seems like the fd is
still open). Is this a feature? Is it possible to change it (to be
similar to Asterisk)?
regards
Klaus
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#103 - $snd(name) pvar contains local instead of remote socket info
User who did this - Alex Hermann (axlh)
----------
I cherry-picked it into 3.1 and it seems to work fine, thanks.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=103#comment153
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.