Module: kamailio
Branch: master
Commit: 8fd514f9bb9e819fa6e5880dc229955cafd72494
URL: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-20T18:08:56+01:00
dialog: clean very old dialogs for both unconfirmed and early state
- it was done only for unconfirmed state
---
Modified: src/modules/dialog/dlg_hash.c
---
Diff: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
Patch: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
---
diff --git a/src/modules/dialog/dlg_hash.c b/src/modules/dialog/dlg_hash.c
index 30c1cf76d1..5c11bada52 100644
--- a/src/modules/dialog/dlg_hash.c
+++ b/src/modules/dialog/dlg_hash.c
@@ -235,9 +235,9 @@ int dlg_clean_run(ticks_t ti)
while (dlg) {
tdlg = dlg;
dlg = dlg->next;
- if(tdlg->state==DLG_STATE_UNCONFIRMED && tdlg->init_ts>0
+ if(tdlg->state<=DLG_STATE_EARLY && tdlg->init_ts>0
&& tdlg->init_ts<tm-dlg_early_timeout) {
- /* dialog in early state older than 5min */
+ /* dialog in unconfirmed or early state older than expected */
LM_NOTICE("dialog in early state is too old (%p ref %d)\n",
tdlg, tdlg->ref);
unlink_unsafe_dlg(&d_table->entries[i], tdlg);
Module: kamailio
Branch: master
Commit: 2137aef791bfbc835ac5f630c91c49fc509e6a6c
URL: https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-20T17:57:07+01:00
presence_reginfo: clang format wrapper to exports struct
- removed trailing spaces
---
Modified: src/modules/presence_reginfo/add_events.c
Modified: src/modules/presence_reginfo/add_events.h
Modified: src/modules/presence_reginfo/presence_reginfo.c
Modified: src/modules/presence_reginfo/presence_reginfo.h
---
Diff: https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
Patch: https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
---
diff --git a/src/modules/presence_reginfo/add_events.c b/src/modules/presence_reginfo/add_events.c
index 5616faa83a..3cb9f7a145 100644
--- a/src/modules/presence_reginfo/add_events.c
+++ b/src/modules/presence_reginfo/add_events.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -31,7 +31,7 @@
int reginfo_add_events(void)
{
pres_ev_t event;
-
+
/* constructing message-summary event */
memset(&event, 0, sizeof(pres_ev_t));
event.name.s = "reg";
@@ -47,6 +47,6 @@ int reginfo_add_events(void)
if (pres_add_event(&event) < 0) {
LM_ERR("failed to add event \"reginfo\"\n");
return -1;
- }
+ }
return 0;
}
diff --git a/src/modules/presence_reginfo/add_events.h b/src/modules/presence_reginfo/add_events.h
index 49d9322740..194dca6f0c 100644
--- a/src/modules/presence_reginfo/add_events.h
+++ b/src/modules/presence_reginfo/add_events.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/src/modules/presence_reginfo/presence_reginfo.c b/src/modules/presence_reginfo/presence_reginfo.c
index bf8588dd37..eadbfdad24 100644
--- a/src/modules/presence_reginfo/presence_reginfo.c
+++ b/src/modules/presence_reginfo/presence_reginfo.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -47,6 +47,7 @@ static int mod_init(void);
add_event_t pres_add_event;
/* module exports */
+/* clang-format off */
struct module_exports exports= {
"presence_reginfo", /* module name */
DEFAULT_DLFLAGS, /* dlopen flags */
@@ -59,7 +60,8 @@ struct module_exports exports= {
0, /* per-child init function */
0 /* module destroy function */
};
-
+/* clang-format on */
+
/*
* init module function
*/
@@ -85,8 +87,8 @@ static int mod_init(void)
}
if(reginfo_add_events() < 0) {
LM_ERR("failed to add reginfo-info events\n");
- return -1;
- }
-
+ return -1;
+ }
+
return 0;
}
diff --git a/src/modules/presence_reginfo/presence_reginfo.h b/src/modules/presence_reginfo/presence_reginfo.h
index a721737841..6d5371535b 100644
--- a/src/modules/presence_reginfo/presence_reginfo.h
+++ b/src/modules/presence_reginfo/presence_reginfo.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
Hello
As you will know i am developing new module for Kamailio and i'll commit on
main project as soon as. Let me give more news about this module later.
But i wanna to share with you one thing, if you were in my shoes, what do
you to found out duplicated signalling? I don't mean retransmision messages.
Let's go to question: In kamailio, you could get a copy of signalling
message that is generated by siptrace module in other one kamailio. We know
it would be send some signalling messages twice or more in duplicate( I
mean 180Ringing, 200OK or etc), How we could found out them? Actually i
must do it in module not do in cfg configuration.
Would you please give me a suggest? I really need a sugest with no extra
overhead.
With regards.Mojtaba
…about stateless forwarded messages
#### Pre-Submission Checklist
- [x] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [x] Related to issue #1811
#### Description
Added example how to send stateless forwarded messages
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1813
-- Commit Summary --
* src/modules/siptrace: Updated usage instruction about stateless forwarded messages
-- File Changes --
M src/modules/siptrace/doc/siptrace_admin.xml (14)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1813.patchhttps://github.com/kamailio/kamailio/pull/1813.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1813