THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#190 - async_sleep() does not work
User who did this - Daniel-Constantin Mierla (miconda)
----------
I removed the flags that allowed using async functions in branch_route -- in this routing block is processed the outgoing branch, practically is too late to suspend processing of the request as a network send command was issued (e.g., t_relay()).
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=190#comment455
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.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
Daniel-Constantin Mierla has taken ownership of the following task:
FS#190 - async_sleep() does not work
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=190
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.
Module: sip-router
Branch: master
Commit: 22278ed608d598ac353b32cd44517e961faa41b3
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=22278ed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Dec 11 00:02:14 2011 +0100
async: cfg functions cannot be used in branch_route
- that routing block is processing outgoing brnaches, not requests
- reported by Jasmin Schnatterbeck, FS#190
---
modules/async/async_mod.c | 4 ++--
modules/async/doc/async_admin.xml | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/async/async_mod.c b/modules/async/async_mod.c
index 17c7179..26e94b7 100644
--- a/modules/async/async_mod.c
+++ b/modules/async/async_mod.c
@@ -56,9 +56,9 @@ struct tm_binds tmb;
static cmd_export_t cmds[]={
{"async_route", (cmd_function)w_async_route, 2, fixup_async_route,
- 0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
+ 0, REQUEST_ROUTE|FAILURE_ROUTE},
{"async_sleep", (cmd_function)w_async_sleep, 1, fixup_async_sleep,
- 0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
+ 0, REQUEST_ROUTE|FAILURE_ROUTE},
{0, 0, 0, 0, 0, 0}
};
diff --git a/modules/async/doc/async_admin.xml b/modules/async/doc/async_admin.xml
index 37b9a75..9087f62 100644
--- a/modules/async/doc/async_admin.xml
+++ b/modules/async/doc/async_admin.xml
@@ -112,6 +112,8 @@ modparam("async", "workers", 2)
that the execution of config after resume will end once the
route[routename] is finished.
</para>
+ <para>
+ This function can be used from REQUEST_ROUTE.
<example>
<title><function>async_sleep</function> usage</title>
<programlisting format="linespecific">
@@ -148,6 +150,8 @@ route[RESUME] {
that the execution of config after resume will end once the route block
where async_sleep() is called is finished.
</para>
+ <para>
+ This function can be used from REQUEST_ROUTE.
<example>
<title><function>async_sleep</function> usage</title>
<programlisting format="linespecific">
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Jasmin Schnatterbeck (jasmin)
Attached to Project - sip-router
Summary - async_sleep() does not work
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Hello,
when using async_sleep() in branch_route I get:
/usr/sbin/kamailio[8410]: : tm [timer.h:216]: WARNING: -_set_fr_timer- already added: 0x7fcdf5bfc7d0 , tl=0x7fcdf5bfc7f0!!!
/usr/sbin/kamailio[8410]: : tm [t_fwd.c:1396]: BUG: t_send_branch: retr. already started for 0x7fcdf5bfc7d0
.... and the message is sent out immediately.
In async_mod.c the function async_sleep() is exported for usage in branch_route... what can be wrong?
Regards
Jasmin
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=190
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.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Jasmin Schnatterbeck (jasmin)
Attached to Project - sip-router
Summary - dlg_manage() after t_newtran() does not work
Task Type - Bug Report
Category - dialog
Status - Assigned
Assigned To - Timo Reimann
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Hello,
when I tried to use t_newtran() with the dialog-module loaded, the following problem occured;
- the dialog tracking flag is not set (yet)
- script calls t_newtran()
- TMCB_REQUEST_IN calls dlg_onreq()
- there is no dialog tracking flag set (yet), so no dialog is started by dlg_onreq()
- script sets dialog tracking flag
- script calls t_relay()
=> TMCB_REQUEST_IN (and dlg_onreq()) is not called again, because the transaction already exists.
=> no dialog at all
But there is dlg_manage(), that can start a dialog (even after t_newtran() and without using dlg_onreq()).
The problem is, that dlg_set_tm_callbacks() is called by dlg_onreq() only => in case of dlg_manage() after t_newtran() dlg_set_tm_callbacks() is not being called.
As result of this, the response callbacks (and dialog state etc.) don't work...
Jasmin
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=189
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.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A user has added themself to the list of users assigned to this task.
FS#189 - dlg_manage() after t_newtran() does not work
User who did this - Jasmin Schnatterbeck (jasmin)
http://sip-router.org/tracker/index.php?do=details&task_id=189
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.
Module: sip-router
Branch: 3.2
Commit: e84539d3b49354e71300be808abf51aaab1785e8
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e84539d…
Author: pd <peter.dunkley(a)crocodile-rcs.com>
Committer: pd <peter.dunkley(a)crocodile-rcs.com>
Date: Thu Dec 8 22:03:35 2011 +0000
modules_k/pua: Temporary dialogs did not contain all of the required fields.
- Temporary dialogs are created when a SUBSCRIBE is sent to handle the timing
issue that means that NOTIFYs can be processed before 200 OKs (the real
dialog is created on 200 OK).
- Not every required field was filled in for the temporary dialogs so dialog
searches were failing and duplicate dialogs created.
(cherry picked from commit 464d6a353f1de7d7ca38cd856320b973f3341679)
---
modules_k/pua/send_subscribe.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules_k/pua/send_subscribe.c b/modules_k/pua/send_subscribe.c
index f9d72df..80e1472 100644
--- a/modules_k/pua/send_subscribe.c
+++ b/modules_k/pua/send_subscribe.c
@@ -963,8 +963,12 @@ insert:
presentity->id.len = subs->id.len;
size += subs->id.len;
+ presentity->event = pres.event;
+ presentity->flag = pres.flag;
+
/* Set the temporary record expiry for 2 * 64T1 seconds from now */
presentity->expires= (int)time(NULL) + 64;
+ presentity->desired_expires= presentity->expires;
insert_htable(presentity);