THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#296 - tm:branch-failure event_route is not executed on all branch failures
User who did this - Daniel-Constantin Mierla (miconda)
----------
Just checked a bit and variants can be:
1) execute branch failure route immediately it is discovered a tcp connection is not available, but this means kind of blocking to execute the actions from the branch failure route and then the next branch will be generated
2) add the branch in a dummy timer mode that will trigger a timeout event - there will be no attempt to send it, the branch will be put in a "suspended" state, the rest of the branches will be generated and the timer will end up firing at some point
The 2nd is more like what would happen if the request is sent over udp, from the point of view of timings. This option might be easier to do and should also end up in failure_route execution if all branches fail.
Again, just few thought on quick check, it may need more than that, though.
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=296#comment867
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.
i asked on dev irc meeting if mysql driver now (4.0 or master) supports
the features needed by presence notifier processes. this was discussed
in march on thread:
http://lists.sip-router.org/pipermail/sr-dev/2013-March/018946.html
i'm also a bit puzzled, why there is no DB_CAPABILITY that would tell if
the required features are implemented by the underlying db driver. now
it seems to be possible to have notifier_processes > 0 even if the
underlying db driver cannot handle them properly.
does anyone know what the current status of this is?
-- juha
Hello,
it's probably the time to have a IRC development meeting to set the
targets for the next major release as well as discuss what is needed
these days around the project.
I proposed next week on Thursday, May 16, at 14:00GMT (16:00 Berlin
time). I created a page to collect the topics, only few from my list
being added for now:
* http://www.kamailio.org/wiki/devel/irc-meetings/2013a
Feel free to add topics there.
Also, I would be available on Tuesday at the same time if proves to be
more convenient for more people. If none of these dates suit for
majority, we can look for other alternatives -- just propose and we can
start a poll.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
* http://asipto.com/u/katu *
Module: sip-router
Branch: master
Commit: 251c0218e7d5e09f43a2b834a5450c20bb4f6d60
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=251c021…
Author: Vicente Hernando <vhernando(a)systemonenoc.com>
Committer: Vicente Hernando <vhernando(a)systemonenoc.com>
Date: Thu May 16 12:06:55 2013 +0200
modules/uac: avoid adding double quotes in uac_replace_* functions
- updated uac doc with a note and examples.
---
modules/uac/doc/uac_admin.xml | 14 +++++++++-
modules/uac/uac.c | 50 +---------------------------------------
2 files changed, 14 insertions(+), 50 deletions(-)
diff --git a/modules/uac/doc/uac_admin.xml b/modules/uac/doc/uac_admin.xml
index 3610f12..05dc713 100644
--- a/modules/uac/doc/uac_admin.xml
+++ b/modules/uac/doc/uac_admin.xml
@@ -484,6 +484,10 @@ modparam("uac", "reg_contact_addr", "192.168.1.2:5080")
<para>
This function can be used from REQUEST_ROUTE and from BRANCH_ROUTE.
</para>
+ <para>NOTE: Previous versions of this function added double quotes automatically to
+ display variable. That is no longer the case, if you expect that behavior, you will
+ have to add the quotes by yourself.
+ </para>
<para>
If you set restore_mode to AUTO, the URI will be modified automatically in
all subsequent requests and replies in that dialog.
@@ -512,7 +516,8 @@ modparam("uac", "reg_contact_addr", "192.168.1.2:5080")
# replace both display and uri
uac_replace_from("$avp(s:display)","$avp(s:uri)");
# replace only display and do not touch uri
-uac_replace_from("batman","");
+uac_replace_from("batman",""); # display is replaced with: batman
+uac_replace_from("\"batman\"",""); # display is replaced with: "batman"
# remove display and replace uri
uac_replace_from("","sip:robin@gotham.org");
# remove display and do not touch uri
@@ -580,6 +585,10 @@ uac_restore_from();
<para>
This function can be used from REQUEST_ROUTE and from BRANCH_ROUTE.
</para>
+ <para>NOTE: Previous versions of this function added double quotes automatically to
+ display variable. That is no longer the case, if you expect that behavior, you will
+ have to add the quotes by yourself.
+ </para>
<example>
<title><function>uac_replace_to</function> usage</title>
<programlisting format="linespecific">
@@ -587,7 +596,8 @@ uac_restore_from();
# replace both display and uri
uac_replace_to("$avp(display)","$avp(uri)");
# replace only display and do not touch uri
-uac_replace_to("batman","");
+uac_replace_to("batman",""); # display is replaced with: batman
+uac_replace_to("\"batman\"",""); # display is replaced with: "batman"
# remove display and replace uri
uac_replace_to("","sip:robin@gotham.org");
# remove display and do not touch uri
diff --git a/modules/uac/uac.c b/modules/uac/uac.c
index a7cd414..5142e03 100644
--- a/modules/uac/uac.c
+++ b/modules/uac/uac.c
@@ -98,7 +98,6 @@ static int w_uac_auth(struct sip_msg* msg, char* str, char* str2);
static int w_uac_reg_lookup(struct sip_msg* msg, char* src, char* dst);
static int w_uac_reg_request_to(struct sip_msg* msg, char* src, char* mode_s);
static int fixup_replace_uri(void** param, int param_no);
-static int fixup_replace_disp_uri(void** param, int param_no);
static int mod_init(void);
static void mod_destroy(void);
static int child_init(int rank);
@@ -114,13 +113,13 @@ static pv_export_t mod_pvs[] = {
/* Exported functions */
static cmd_export_t cmds[]={
- {"uac_replace_from", (cmd_function)w_replace_from, 2, fixup_replace_disp_uri, 0,
+ {"uac_replace_from", (cmd_function)w_replace_from, 2, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
{"uac_replace_from", (cmd_function)w_replace_from, 1, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
{"uac_restore_from", (cmd_function)w_restore_from, 0, 0, 0,
REQUEST_ROUTE },
- {"uac_replace_to", (cmd_function)w_replace_to, 2, fixup_replace_disp_uri, 0,
+ {"uac_replace_to", (cmd_function)w_replace_to, 2, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
{"uac_replace_to", (cmd_function)w_replace_to, 1, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
@@ -415,51 +414,6 @@ static int fixup_replace_uri(void** param, int param_no)
return 0;
}
-
-static int fixup_replace_disp_uri(void** param, int param_no)
-{
- pv_elem_t *model;
- char *p;
- str s;
-
- /* convert to str */
- s.s = (char*)*param;
- s.len = strlen(s.s);
-
- model=NULL;
- if (param_no==1)
- {
- if (s.len)
- {
- /* put " around display name */
- p = (char*)pkg_malloc(s.len+3);
- if (p==0)
- {
- LM_CRIT("no more pkg mem\n");
- return E_OUT_OF_MEM;
- }
- p[0] = '\"';
- memcpy(p+1, s.s, s.len);
- p[s.len+1] = '\"';
- p[s.len+2] = '\0';
- pkg_free(s.s);
- s.s = p;
- s.len += 2;
- }
- }
- if(pv_parse_format(&s ,&model)<0)
- {
- LM_ERR("wrong format [%s] for param no %d!\n", s.s, param_no);
- pkg_free(s.s);
- return E_UNSPEC;
- }
- *param = (void*)model;
-
- return 0;
-}
-
-
-
/************************** wrapper functions ******************************/
static int w_restore_from(struct sip_msg *msg)
Hello,
already suggested on the irc channels, I plan to redirect #sip-router to
#kamailio to group in a single place and have consistency with the name
of the project.
That means making #sip-router an invite-only channel and automatically
redirecting those that want to join to #kamailio.
Hope is ok with everyone, invite-only flag can be removed later.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
* http://asipto.com/u/katu *