Module: sip-router
Branch: master
Commit: 5c5b587d44a46b3a4d48c7e7926c42a44cd4d8c8
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5c5b587…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Apr 17 15:49:36 2014 +0200
dialog: set lower limit for dlg_ka_interval parameter to 30 sec
- avoid many keepalives in shorter interval than retransmission timeout
could be
- an improvement would be to export the fr_timer value from tm and have
condition based on it
- reported by FS#417, Bill Radis
---
modules/dialog/dialog.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/dialog/dialog.c b/modules/dialog/dialog.c
index 9c824f3..a655c57 100644
--- a/modules/dialog/dialog.c
+++ b/modules/dialog/dialog.c
@@ -452,6 +452,12 @@ static int mod_init(void)
{
unsigned int n;
+ if(dlg_ka_interval!=0 && dlg_ka_interval<30) {
+ LM_ERR("ka interval too low (%d), has to be at least 30\n",
+ dlg_ka_interval);
+ return -1;
+ }
+
dlg_event_rt[DLG_EVENTRT_START] = route_lookup(&event_rt, "dialog:start");
dlg_event_rt[DLG_EVENTRT_END] = route_lookup(&event_rt, "dialog:end");
dlg_event_rt[DLG_EVENTRT_FAILED] = route_lookup(&event_rt, "dialog:failed");
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#419 - Crash in msrp module
User who did this - Daniel-Constantin Mierla (miconda)
----------
Both would be good, I think they should be easy to cherry pick. Maybe from master to 4.1 and from 4.1 to 4.0 is safer to avoid conflicts.
I use usually:
<code>git cherry-pick -x _COMMIT_HEX_HASHID_</code>
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=419#comment1395
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.
The following task has a new comment added:
FS#419 - Crash in msrp module
User who did this - Luis Martin (lmartin)
----------
Merged to master (https://github.com/kamailio/kamailio/commit/4a9a98a07869a2415b82b70b23907cc…)
Daniel, which stable versions do you want it to be back ported? 4.0 and 4.1?
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=419#comment1394
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: 4a9a98a07869a2415b82b70b23907ccd490d6c12
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4a9a98a…
Author: Luis Martin Gil <martingil.luis(a)gmail.com>
Committer: Luis Martin Gil <martingil.luis(a)gmail.com>
Date: Thu Apr 17 12:56:11 2014 +0000
Merge branch 'luismartingil/msrp_crash'
---
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#417 - Dialog never times-out when ka_timer < 10, even on 481 or 408(fake) response
User who did this - Daniel-Constantin Mierla (miconda)
----------
Detecting interrupted network connections is not for normal operation cases. Beware that in mobile networks are bid delays, you may get false-positive cases if you have lower timeout. If you look at the option of detecting inactivity via RTP, all applications capable of doing that by handing RTP (e.g., Asterisk, Freeswitch) allow 90sec or more.
Now, you can contribute various enhancements on this part, but have in mind that the main role is to be able to handle lots of calls, most of them being ok. You may get 0.1% calls interrupted due to network. If you make a very complex detection system for the 0.1%, then you affect the performances for the other 99.9%. Try to imagine you have 10000active calls, you send keepalives every second, that is 20000 OPTIONS transactions every second. Perhaps many phones will get stuck. Therefore, such contribution must include an option to turn on/off (module parameter).
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=417#comment1393
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: luismartingil/msrp_crash
Commit: 164435ab191964bc9f0054874536c022dcf11063
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=164435a…
Author: Luis Martin Gil <martingil.luis(a)gmail.com>
Committer: Luis Martin Gil <martingil.luis(a)gmail.com>
Date: Thu Apr 17 12:29:47 2014 +0000
msrp: improved parser
- changed indentation as required by Daniel
http://sip-router.org/tracker/index.php?do=details&task_id=419#comment1390
---
modules/msrp/msrp_parser.c | 35 +++++++++++++++++------------------
1 files changed, 17 insertions(+), 18 deletions(-)
diff --git a/modules/msrp/msrp_parser.c b/modules/msrp/msrp_parser.c
index 8df1a92..b23c5a1 100644
--- a/modules/msrp/msrp_parser.c
+++ b/modules/msrp/msrp_parser.c
@@ -220,7 +220,6 @@ int msrp_parse_headers(msrp_frame_t *mf)
char *s; /* start for search */
msrp_hdr_t *hdr;
msrp_hdr_t *last;
-
int fpath = 0; /* From path set */
int tpath = 0; /* To path set */
int any = 0; /* Any header set */
@@ -296,23 +295,23 @@ int msrp_parse_headers(msrp_frame_t *mf)
msrp_hdr_set_type(hdr);
if (hdr->htype == MSRP_HDR_TO_PATH) {
- tpath = 1;
- if (fpath || any) {
- LM_ERR("broken msrp frame message, To-Path must be the first header.\n");
- return -1;
- }
+ tpath = 1;
+ if (fpath || any) {
+ LM_ERR("broken msrp frame message, To-Path must be the first header.\n");
+ return -1;
+ }
} else if (hdr->htype == MSRP_HDR_FROM_PATH) {
- fpath = 1;
- if (!tpath || any) {
- LM_ERR("broken msrp frame message, From-Path must be the second header.\n");
- return -1;
- }
+ fpath = 1;
+ if (!tpath || any) {
+ LM_ERR("broken msrp frame message, From-Path must be the second header.\n");
+ return -1;
+ }
} else {
- any = 1;
- if (!tpath || !fpath) {
- LM_ERR("broken msrp frame message, To-Path and From-Path must be defined before any header.\n");
- return -1;
- }
+ any = 1;
+ if (!tpath || !fpath) {
+ LM_ERR("broken msrp frame message, To-Path and From-Path must be defined before any header.\n");
+ return -1;
+ }
}
LM_DBG("MSRP Header: (%p) [%.*s] [%d] [%.*s]\n",
@@ -322,8 +321,8 @@ int msrp_parse_headers(msrp_frame_t *mf)
}
if (!tpath || !fpath) {
- LM_ERR("broken msrp frame message, To-Path and From-Path must be defined.\n");
- return -1;
+ LM_ERR("broken msrp frame message, To-Path and From-Path must be defined.\n");
+ return -1;
}
ateoh: