The following warnings shows up while compiling the carrierroute module:
````
cr_fifo.c:50:21: warning: ‘opt_settings’ defined but not used [-Wunused-variable]
static unsigned int opt_settings[5][3] = {
^
cr_fifo.c:470:12: warning: ‘get_fifo_opts’ defined but not used [-Wunused-function]
static int get_fifo_opts(str * buf, fifo_opt_t * opts, unsigned int opt_set[]) {
^
cr_fifo.c:621:12: warning: ‘update_route_data’ defined but not used [-Wunused-function]
static int update_route_data(fifo_opt_t * opts) {
^
````
--
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/issues/1010
Module: kamailio
Branch: master
Commit: c62409bdd317f61df0e7cc16fbb8aa9ccebcefb5
URL: https://github.com/kamailio/kamailio/commit/c62409bdd317f61df0e7cc16fbb8aa9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-02-27T13:50:06+01:00
carrierroute: enclosed unused functions in ifdefs
- they were used by mi commands and may be needed when re-introducing
the equivalent in rpc commands
- reported by GH #1010
---
Modified: src/modules/carrierroute/cr_fifo.c
---
Diff: https://github.com/kamailio/kamailio/commit/c62409bdd317f61df0e7cc16fbb8aa9…
Patch: https://github.com/kamailio/kamailio/commit/c62409bdd317f61df0e7cc16fbb8aa9…
---
diff --git a/src/modules/carrierroute/cr_fifo.c b/src/modules/carrierroute/cr_fifo.c
index 8789c9b..8ae0123 100644
--- a/src/modules/carrierroute/cr_fifo.c
+++ b/src/modules/carrierroute/cr_fifo.c
@@ -41,6 +41,7 @@
#include "cr_rule.h"
+#ifdef MI_REMOVED
/**
* Defines the option set for the different fifo commands
* Every line is for a command,
@@ -54,6 +55,7 @@ static unsigned int opt_settings[5][3] = {
{O_HOST|O_DOMAIN|O_PREFIX, O_PROB|O_NEW_TARGET, O_R_PREFIX|O_R_SUFFIX|O_H_INDEX},
{O_HOST|O_DOMAIN|O_PREFIX, O_PROB, O_R_PREFIX|O_R_SUFFIX|O_NEW_TARGET|O_H_INDEX}
};
+#endif
int fifo_err;
@@ -456,6 +458,7 @@ static int dump_tree_recursor (struct mi_node* msg, struct dtrie_node_t *node, c
}
#endif
+#ifdef MI_REMOVED
/**
* parses the command line argument for options
*
@@ -606,8 +609,10 @@ static int get_fifo_opts(str * buf, fifo_opt_t * opts, unsigned int opt_set[]) {
}
return 0;
}
+#endif
+#ifdef MI_REMOVED
/**
* loads the config data into shared memory (but doesn't really
* share it), updates the routing data and writes it to the config
@@ -729,6 +734,7 @@ static int update_route_data(fifo_opt_t * opts) {
clear_route_data(rd);
return -1;
}
+#endif
/**
Module: kamailio
Branch: 5.0
Commit: 69b81c8553f891179553897fadc57d000995327e
URL: https://github.com/kamailio/kamailio/commit/69b81c8553f891179553897fadc57d0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-02-27T11:03:00+01:00
pkg/kamailio/deb: version set to 5.0.0 [skip ci]
---
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
Modified: pkg/kamailio/deb/xenial/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/69b81c8553f891179553897fadc57d0…
Patch: https://github.com/kamailio/kamailio/commit/69b81c8553f891179553897fadc57d0…
---
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
diff --git a/pkg/kamailio/deb/xenial/changelog b/pkg/kamailio/deb/xenial/changelog
index 28de3b0..11e8940 100644
--- a/pkg/kamailio/deb/xenial/changelog
+++ b/pkg/kamailio/deb/xenial/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0) unstable; urgency=medium
+
+ * version set to 5.0.0
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 27 Feb 2017 11:01:52 +0100
+
kamailio (5.0.0~rc1) unstable; urgency=medium
* version set to 5.0.0-rc1
Hello,
I am considering to release Kamailio v5.0.0 at the beginning of next
week, depending how things evolve in the next days, either on Monday,
Feb 27, or Tuesday, Feb 28.
I haven't noticed any new issues specific for the new features added for
5.0 lately, so it looks pretty good so far. If you are aware of issues
not reported to the bug tracker, register them as soon as possible at:
- https://github.com/kamailio/kamailio/issues
There are still some parts of documentation that have to be updated, I
am planning to work on them during the next days, but help from others
are very appreciated, especially details of what you had to do changes
while upgrading from 4.4 to 5.0.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
When registering to an upstream provider using the uac module, the source port of REGISTER messages alternates seemingly randomly between either 5060 or the lowest available port, e.g., 1024, 1025, 1026. All SIP providers that I tested send subsequent INVITEs of incoming calls to the originating ip/port of the prior REGISTER, which is problematic when kamilio is running behind a firewall.
I tested both the latest master (7c03340b4b486afaf00b14a6589c13b7165240a0) and 4.4 (df5ef6183350d99f77087dd83950ef35466e84a1) on Debian unstable/amd64.
#### /etc/kamailio/kamailio.cfg
```
#!KAMAILIO
debug=3
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "db_text.so"
loadmodule "dialog.so"
loadmodule "uac.so"
#!define DBURL "text:///etc/kamailio/dbtext"
modparam("rr", "append_fromtag", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "track_cseq_updates", 1)
modparam("uac", "restore_dlg", 1)
modparam("uac", "reg_db_url", DBURL)
modparam("uac", "reg_timer_interval", 60)
modparam("uac", "reg_retry_interval", 60)
modparam("uac", "reg_contact_addr", "1.2.3.4:5060")
request_route {
exit;
}
```
#### /etc/kamailio/dbtext/uacreg
```
l_uuid(string) l_username(string) l_domain(string) r_username(string) r_domain(string) realm(string) auth_username(string) auth_password(string) auth_proxy(string) expires(int) flags(int) reg_delay(int)
12345678:user:domain.local:11111111:sip.example.org:sip.example.org:11111111:XXXXXXXXXXXXXXXX:sip\:sip.example.org:600:0:0
```
--
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/issues/936
and use it on ``sca``
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1009
-- Commit Summary --
* core: support for parsing the Call-Info header
* sca: use HDR_CALLINFO_T
-- File Changes --
A src/core/parser/case_c_inf.h (41)
M src/core/parser/case_call.h (3)
M src/core/parser/hf.c (1)
M src/core/parser/hf.h (2)
M src/core/parser/keys.h (3)
M src/core/parser/msg_parser.c (4)
M src/core/sip_msg_clone.c (2)
M src/modules/sca/sca_call_info.c (36)
M src/modules/sca/sca_call_info.h (1)
M src/modules/sca/sca_subscribe.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1009.patchhttps://github.com/kamailio/kamailio/pull/1009.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/1009
Hi,
We've noticed a case where the *location_attrs* table isn't updated when
there's an unexpected shutdown of a SIP device (here there'll be no
REGISTER message sent with expires=0).
We're using Kamailio v4.3.x
When the SIP device shuts down ungracefully. The location table is updated
using DELETE query
This is done by the timer which deletes the expired contacts, by default
the timer_interval is set as 60.
Here, the logs of auto-removal of expired contacts entries by the timer
> Feb 17 17:16:13 localhost kamailio[23273]: DEBUG: db_postgres
> [km_dbase.c:272]: db_postgres_submit_query(): sending query ok:
> 0x7f34969433c8 (1) - [delete from location where expires<'2017-02-17
> 17:16:14' AND expires<>'1970-01-01 00:00:00']
>
Feb 17 17:16:14 localhost kamailio[23272]: DEBUG: db_postgres
> [km_dbase.c:272]: db_postgres_submit_query(): sending query ok:
> 0x7f34969433c8 (1) - [delete from location where expires<'2017-02-17
> 17:16:15' AND expires<>'1970-01-01 00:00:00']
The delete operation is only on location table, shouldn't we have the same
implementation on the location_attrs table based upon ruid or username?
We're getting duplicate entries in the location_attrs table of the same sip
user after it registers.
But when the SIP device un-registers, the entries in the location as well
as in the location_attrs table is deleted
Feb 17 18:14:32 localhost kamailio[23249]: DEBUG: usrloc [ucontact.c:1725]:
> uldb_delete_attrs(): trying to delete location attributes
> Feb 17 18:14:32 localhost kamailio[23249]: DEBUG: db_postgres
> [km_dbase.c:272]: db_postgres_submit_query(): sending query ok:
> 0x7f3496941888 (1) - [delete from location_attrs where username='mridul'
> AND ruid='uloc-58a72243-5ace-2']
>
Feb 17 18:14:32 localhost kamailio[23249]: DEBUG: db_postgres
> [km_dbase.c:272]: db_postgres_submit_query(): sending query ok:
> 0x7f3496941888 (1) - [delete from location where username='mridul' AND
> contact='sip:mridul@127.0.0.1:37881;rinstance=b841a8c916e47dfa']
I think the usrloc module should have the implementation of deleting the
entries of expired sip users based on its ruid/username in the
location_attrs table also.
Thanks for the help.
Best regards,
MRIDUL