Hi, in a module I'm writting I export a script function which gives
value to a new pseudo-variable. This pv is stored in a global variable
into each worker process.
I don't know how to solve this issue:
- A request is handled by worker-1.
- The script calls to the module function so the pv is filled (it's
value is stored in a global str within the process).
- Later in the script I can access to $new_pv (it reads the global str
in the pv_get_new_pv() function).
- The request processing ends (i.e: t_relay).
- After some time the same worker-1 receives a new request.
- If the script reads $new_pv (without calling the module function
before) it will get the value generated during the previous SIP
request.
Of course the script configuration shouldn't try to read $new_pv
without calling first to the exported function, but anyhow this could
happen (due to a bad script file). Is there an ellegant way to avoid
this? This is, I would like that when a process receives a request (or
a response) $new_pv gets automatically reseted (to NULL), prior to
executing the script logic. In this way accessing to $new_pv without
calling the module function would return an empty value.
Is it possible? how do other modules handle this case?
Thanks a lot.
--
Iñaki Baz Castillo
<ibc(a)aliax.net>
Module: sip-router
Branch: 3.1
Commit: 405fb620d1bba43c159012772175f533a40a3a77
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=405fb62…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Oct 7 15:57:27 2010 +0300
modules/auth: fixed comment in nonce_count example
---
modules/auth/README | 6 ++++--
modules/auth/doc/params.xml | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/auth/README b/modules/auth/README
index e70cf07..92e4641 100644
--- a/modules/auth/README
+++ b/modules/auth/README
@@ -194,8 +194,10 @@ modparam("auth", "qop", "auth") # enable qop=auth
route{
...
# go stateful and catch retransmissions
- if (!t_newtran())
- drop; # retransmission
+ if (!t_newtran()) {
+ xlog("L_NOTICE", "Failed to create new transaction\n");
+ drop;
+ };
if (method=="REGISTER"){
if (!www_authenticate("test", "credentials")){
# reply must be sent with t_reply because the
diff --git a/modules/auth/doc/params.xml b/modules/auth/doc/params.xml
index af44e2a..ad84251 100644
--- a/modules/auth/doc/params.xml
+++ b/modules/auth/doc/params.xml
@@ -194,8 +194,10 @@ modparam("auth", "qop", "auth") # enable qop=auth
route{
...
# go stateful and catch retransmissions
- if (!t_newtran())
- drop; # retransmission
+ if (!t_newtran()) {
+ xlog("L_NOTICE", "Failed to create new transaction\n");
+ drop;
+ };
if (method=="REGISTER"){
if (!www_authenticate("test", "credentials")){
# reply must be sent with t_reply because the
Module: sip-router
Branch: master
Commit: d5634f0e2e9f25395e312a98aa6814d78e39b16f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d5634f0…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Oct 7 15:57:27 2010 +0300
modules/auth: fixed comment in nonce_count example
---
modules/auth/README | 6 ++++--
modules/auth/doc/params.xml | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/auth/README b/modules/auth/README
index e70cf07..92e4641 100644
--- a/modules/auth/README
+++ b/modules/auth/README
@@ -194,8 +194,10 @@ modparam("auth", "qop", "auth") # enable qop=auth
route{
...
# go stateful and catch retransmissions
- if (!t_newtran())
- drop; # retransmission
+ if (!t_newtran()) {
+ xlog("L_NOTICE", "Failed to create new transaction\n");
+ drop;
+ };
if (method=="REGISTER"){
if (!www_authenticate("test", "credentials")){
# reply must be sent with t_reply because the
diff --git a/modules/auth/doc/params.xml b/modules/auth/doc/params.xml
index af44e2a..ad84251 100644
--- a/modules/auth/doc/params.xml
+++ b/modules/auth/doc/params.xml
@@ -194,8 +194,10 @@ modparam("auth", "qop", "auth") # enable qop=auth
route{
...
# go stateful and catch retransmissions
- if (!t_newtran())
- drop; # retransmission
+ if (!t_newtran()) {
+ xlog("L_NOTICE", "Failed to create new transaction\n");
+ drop;
+ };
if (method=="REGISTER"){
if (!www_authenticate("test", "credentials")){
# reply must be sent with t_reply because the
Feature Requests item #3082812, was opened at 2010-10-07 08:30
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=3082812&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: core
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: comment2, zolpidem, winston cigarette adatives, allopurinol
Initial Comment:
comment2, zolpidem, winston cigarette adatives, allopurinol without prescription, ultram, alprazolam, pall mall cigarettes, propranolol used, adult dating sites, breastfeed and metformin, reductil, boards cat prednisone, dunhill international cigarettes, baclofen side effects, christian dating website singles, dunhill menthol cigarettes, lipitor, book buy de fluoxetine guest site, female spray viagra,
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=3082812&group_…
when i start sr, i get this warning:
Oct 2 12:13:12 sip /usr/sbin/sip-proxy[10603]: WARNING: tls [tls_init.c:592]: init_tls_h(): tls: ser compiled without MALLOC_STATS support: the workaround for low mem. openssl bugs will _not_ work
if TLS is enabled when sr is build, would it be possible to
automatically compile it also with MALLOC_STATS support so that the
workaround would work?
-- juha
tls module README says:
Creating a server/client certificate
------------------------------------
1. create a certificate request (and its private key in privkey.pem)
openssl req -out ser1_cert_req.pem -new -nodes
WARNING: the organization name should be the same as in the ca
certificate.
why the warning? i followed the tuto and there they are not the same
and still tls works.
-- juha
Kamailio (OpenSER) v3.1.0 is out – major release with impressing
number of new features and improvements.
This release is a result of more than 8 months of development and
testing from the teams of Kamailio (OpenSER) and SIP Express Router
(SER) projects. Backed up by a solid development group, we are proud to
announce that this release brings a large set of features, many for
first time on the SIP server market, such as asynchronous TLS, UDP raw
sockets, embedded HTTP and XCAP servers, embedded Lua, configuration
file debugger. All together, there are over 15 new modules and countless
improvements to old components.
Since last major release (version 3.0.0, which was out in January 10,
2010), the two SIP servers, Kamailio and SER, are practically the same
application, the name making the difference regarding the database
structure and the extensions used for certain features, such as user
database based authentication or location service.
Therefore another development direction was towards smooth integration
of Kamailio and SER extensions, previously duplicated modules such as
auth, sl, ratelimit or sms were merged during this development cycle.
Continue reading the release notes at:
http://www.kamailio.org/w/kamailio-openser-v3.1.0-release-notes/
Many thanks to all developers and community members that made possible
this release.
--
Daniel-Constantin Mierla
http://www.asipto.com
Hi all
In the past I broke the repo because I erased a couple of folders and created
symlinks with the same name. That caused several problems to git.
Now, I want to do it again. I realized that symlinks where a mistake and want
to erase them and create the folders again. I need some assistance not to break
the repo :)
Would it be safe if I erase the symlinks and recreate the folders in two
different commits? Maybe the problem was doing so in the same commit/push?