[sr-dev] git:5.0:e2e8f3e4: pua_usrloc: free memory in case of failire in pua send_publish()

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 5.0
Commit: e2e8f3e4e887e482dd9908c0c9fc5f85923def81
URL: 
https://github.com/kamailio/kamailio/commit/e2e8f3e4e887e482dd9908c0c9fc5f85923def81

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T09:07:09+02:00

pua_usrloc: free memory in case of failire in pua send_publish()

- related to GH #1001

(cherry picked from commit 504699b6c2f34fbf7db02f57909eefdffc6b8180)

---

Modified: src/modules/pua_usrloc/ul_publish.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/e2e8f3e4e887e482dd9908c0c9fc5f85923def81.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e2e8f3e4e887e482dd9908c0c9fc5f85923def81.patch

---

diff --git a/src/modules/pua_usrloc/ul_publish.c 
b/src/modules/pua_usrloc/ul_publish.c
index ea33118ff1..5a143f7a96 100644
--- a/src/modules/pua_usrloc/ul_publish.c
+++ b/src/modules/pua_usrloc/ul_publish.c
@@ -323,7 +323,7 @@ void ul_publish(ucontact_t* c, int type, void* param)
print_publ(publ);
if((error=_pu_pua.send_publish(publ))< 0)
{
-   LM_ERR("while sending publish for ul event %d\n", type);
+   LM_ERR("failed sending publish for ul event %d\n", type);
if((type & UL_CONTACT_UPDATE) && error == ERR_PUBLISH_NO_BODY) {
/* This error can occur if Kamailio was 
restarted/stopped and for any reason couldn't store a pua
 * entry in 'pua' DB table. It can also occur if 'pua' 
table is cleaned externally while Kamailio
@@ -336,19 +336,16 @@ void ul_publish(ucontact_t* c, int type, void* param)
 * previous one expires), but this is a minor issue. */
LM_ERR("UPDATE action generated a PUBLISH without body 
-> invoking INSERT action\n");
ul_publish(c, UL_CONTACT_INSERT, param);
-   return;
+   goto error;
}
}
 
-   pua_ul_publish= 0;
-
 error:
-
+   pua_ul_publish = 0;
if(publ)
pkg_free(publ);
 
-   if(body)
-   {
+   if(body) {
if(body->s)
xmlFree(body->s);
pkg_free(body);
@@ -356,7 +353,6 @@ void ul_publish(ucontact_t* c, int type, void* param)

if(uri.s)
pkg_free(uri.s);
-   pua_ul_publish= 0;
 
return;
 


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:b79b94aa: pua_usrloc: free memory in case of failire in pua send_publish()

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: b79b94aa738325737e82b6485e78eeec2dbea7ac
URL: 
https://github.com/kamailio/kamailio/commit/b79b94aa738325737e82b6485e78eeec2dbea7ac

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T09:08:10+02:00

pua_usrloc: free memory in case of failire in pua send_publish()

- related to GH #1001

(cherry picked from commit 504699b6c2f34fbf7db02f57909eefdffc6b8180)
(cherry picked from commit e2e8f3e4e887e482dd9908c0c9fc5f85923def81)

---

Modified: modules/pua_usrloc/ul_publish.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b79b94aa738325737e82b6485e78eeec2dbea7ac.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b79b94aa738325737e82b6485e78eeec2dbea7ac.patch

---

diff --git a/modules/pua_usrloc/ul_publish.c b/modules/pua_usrloc/ul_publish.c
index beb5aa61bb..ab67d349d1 100644
--- a/modules/pua_usrloc/ul_publish.c
+++ b/modules/pua_usrloc/ul_publish.c
@@ -323,7 +323,7 @@ void ul_publish(ucontact_t* c, int type, void* param)
print_publ(publ);
if((error=_pu_pua.send_publish(publ))< 0)
{
-   LM_ERR("while sending publish for ul event %d\n", type);
+   LM_ERR("failed sending publish for ul event %d\n", type);
if((type & UL_CONTACT_UPDATE) && error == ERR_PUBLISH_NO_BODY) {
/* This error can occur if Kamailio was 
restarted/stopped and for any reason couldn't store a pua
 * entry in 'pua' DB table. It can also occur if 'pua' 
table is cleaned externally while Kamailio
@@ -336,19 +336,16 @@ void ul_publish(ucontact_t* c, int type, void* param)
 * previous one expires), but this is a minor issue. */
LM_ERR("UPDATE action generated a PUBLISH without body 
-> invoking INSERT action\n");
ul_publish(c, UL_CONTACT_INSERT, param);
-   return;
+   goto error;
}
}
 
-   pua_ul_publish= 0;
-
 error:
-
+   pua_ul_publish = 0;
if(publ)
pkg_free(publ);
 
-   if(body)
-   {
+   if(body) {
if(body->s)
xmlFree(body->s);
pkg_free(body);
@@ -356,7 +353,6 @@ void ul_publish(ucontact_t* c, int type, void* param)

if(uri.s)
pkg_free(uri.s);
-   pua_ul_publish= 0;
 
return;
 


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] Planning Kamailio v4.4.6

2017-06-16 Thread Daniel-Constantin Mierla
Just backported, thanks for spotting it!

Cheers,
Daniel


On 14.06.17 16:42, Dmitri Savolainen wrote:
> Thanks, Daniel! 
>
> Can't locate this memory leak fix
> https://github.com/kamailio/kamailio/issues/1001
>
> 2017-06-14 9:32 GMT+03:00 Daniel-Constantin Mierla  >:
>
> Hello,
>
> I backported a consistent set of patches to branch 4.4 and plan to
> release v4.4.6 in the next days. Should anyone be interested in that
> branch, it would be good to review and see if any relevant fix from
> newer branches is missing in order to assert the feasibility of
> backporting. If time allows, 4.4.6 can be out as soon as tomorrow
> afternoon, if not, sometime during following days.
>
> Cheers,
> Daniel
>
>
> --
> Daniel-Constantin Mierla
> www.twitter.com/miconda  --
> www.linkedin.com/in/miconda 
> Kamailio Advanced Training - www.asipto.com 
> Kamailio World Conference - www.kamailioworld.com
> 
>
>
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
> 
>
>
>
>
> -- 
> Savolainen Dmitri

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:46c738aa: pkg/kamailio/deb: version set to 4.4.6

2017-06-16 Thread Victor Seva
Module: kamailio
Branch: 4.4
Commit: 46c738aa8b5587f21ea1cd91fbeabd77c02ad750
URL: 
https://github.com/kamailio/kamailio/commit/46c738aa8b5587f21ea1cd91fbeabd77c02ad750

Author: Victor Seva 
Committer: Victor Seva 
Date: 2017-06-16T10:02:54+02:00

pkg/kamailio/deb: version set to 4.4.6

---

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/squeeze/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/46c738aa8b5587f21ea1cd91fbeabd77c02ad750.diff
Patch: 
https://github.com/kamailio/kamailio/commit/46c738aa8b5587f21ea1cd91fbeabd77c02ad750.patch

---

diff --git a/pkg/kamailio/deb/debian/changelog 
b/pkg/kamailio/deb/debian/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/jessie/changelog 
b/pkg/kamailio/deb/jessie/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/precise/changelog 
b/pkg/kamailio/deb/precise/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/squeeze/changelog 
b/pkg/kamailio/deb/squeeze/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/squeeze/changelog
+++ b/pkg/kamailio/deb/squeeze/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/stretch/changelog 
b/pkg/kamailio/deb/stretch/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/trusty/changelog 
b/pkg/kamailio/deb/trusty/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/wheezy/changelog 
b/pkg/kamailio/deb/wheezy/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5
diff --git a/pkg/kamailio/deb/xenial/changelog 
b/pkg/kamailio/deb/xenial/changelog
index 263271d898..7b26f390d4 100644
--- a/pkg/kamailio/deb/xenial/changelog
+++ b/pkg/kamailio/deb/xenial/changelog
@@ -1,3 +1,9 @@
+kamailio (4.4.6) unstable; urgency=medium
+
+  * version set to 4.4.6
+
+ -- Victor Seva   Fri, 16 Jun 2017 10:02:05 +0200
+
 kamailio (4.4.5) unstable; urgency=medium
 
   * version set to 4.4.5


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:bc7e39cc: pkg: set version to 4.4.6 in rpm specs

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: bc7e39ccfadaab7e489647a71a570ed1d4120713
URL: 
https://github.com/kamailio/kamailio/commit/bc7e39ccfadaab7e489647a71a570ed1d4120713

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T10:10:06+02:00

pkg: set version to 4.4.6 in rpm specs

---

Modified: pkg/kamailio/centos/6/kamailio.spec
Modified: pkg/kamailio/centos/7/kamailio.spec
Modified: pkg/kamailio/fedora/17/kamailio.spec
Modified: pkg/kamailio/oracle/el6/kamailio.spec
Modified: pkg/kamailio/oracle/el7/kamailio.spec
Modified: pkg/kamailio/rpm/kamailio.spec-4.1
Modified: pkg/kamailio/rpm/kamailio.spec.CenOS
Modified: pkg/kamailio/rpm/kamailio.spec.SuSE

---

Diff:  
https://github.com/kamailio/kamailio/commit/bc7e39ccfadaab7e489647a71a570ed1d4120713.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bc7e39ccfadaab7e489647a71a570ed1d4120713.patch

---

diff --git a/pkg/kamailio/centos/6/kamailio.spec 
b/pkg/kamailio/centos/6/kamailio.spec
index 36cd3757b7..95ab45cdde 100644
--- a/pkg/kamailio/centos/6/kamailio.spec
+++ b/pkg/kamailio/centos/6/kamailio.spec
@@ -1,5 +1,5 @@
 %define name   kamailio
-%define ver4.4.5
+%define ver4.4.6
 %define rel0.0%{dist}
 
 
diff --git a/pkg/kamailio/centos/7/kamailio.spec 
b/pkg/kamailio/centos/7/kamailio.spec
index 9e68eaef28..cabbc61c66 100644
--- a/pkg/kamailio/centos/7/kamailio.spec
+++ b/pkg/kamailio/centos/7/kamailio.spec
@@ -1,5 +1,5 @@
 %define namekamailio
-%define ver 4.4.5
+%define ver 4.4.6
 %define rel 1%{dist}
 %bcond_with dnssec
 
diff --git a/pkg/kamailio/fedora/17/kamailio.spec 
b/pkg/kamailio/fedora/17/kamailio.spec
index 65f81528d3..e4f412125b 100644
--- a/pkg/kamailio/fedora/17/kamailio.spec
+++ b/pkg/kamailio/fedora/17/kamailio.spec
@@ -1,5 +1,5 @@
 %define name   kamailio
-%define ver4.4.5
+%define ver4.4.6
 %define rel0%{dist}
 
 
diff --git a/pkg/kamailio/oracle/el6/kamailio.spec 
b/pkg/kamailio/oracle/el6/kamailio.spec
index 23b8813225..7f1c0fdd85 100644
--- a/pkg/kamailio/oracle/el6/kamailio.spec
+++ b/pkg/kamailio/oracle/el6/kamailio.spec
@@ -1,5 +1,5 @@
 %define namekamailio
-%define ver 4.4.5
+%define ver 4.4.6
 %define rel 0
 %define _sharedir %{_prefix}/share
 
diff --git a/pkg/kamailio/oracle/el7/kamailio.spec 
b/pkg/kamailio/oracle/el7/kamailio.spec
index 670b9c1270..902b7bd194 100644
--- a/pkg/kamailio/oracle/el7/kamailio.spec
+++ b/pkg/kamailio/oracle/el7/kamailio.spec
@@ -1,5 +1,5 @@
 %define namekamailio
-%define ver 4.4.5
+%define ver 4.4.6
 %define rel 0
 %define _sharedir %{_prefix}/share
 
diff --git a/pkg/kamailio/rpm/kamailio.spec-4.1 
b/pkg/kamailio/rpm/kamailio.spec-4.1
index 4f0e4c7d36..d137a3902f 100644
--- a/pkg/kamailio/rpm/kamailio.spec-4.1
+++ b/pkg/kamailio/rpm/kamailio.spec-4.1
@@ -1,5 +1,5 @@
 %define namekamailio
-%define ver 4.4.5
+%define ver 4.4.6
 %define rel 0
 
 %define EXCLUDED_MODULES   mysql jabber cpl-c avp_radius auth_radius 
group_radius uri_radius pa postgres osp tlsops unixodbc
diff --git a/pkg/kamailio/rpm/kamailio.spec.CenOS 
b/pkg/kamailio/rpm/kamailio.spec.CenOS
index 533b62bb66..f18393b3f3 100644
--- a/pkg/kamailio/rpm/kamailio.spec.CenOS
+++ b/pkg/kamailio/rpm/kamailio.spec.CenOS
@@ -1,5 +1,5 @@
 %define namekamailio
-%define ver 4.4.5
+%define ver 4.4.6
 %define rel 0
 %define _sharedir %{_prefix}/share
 
diff --git a/pkg/kamailio/rpm/kamailio.spec.SuSE 
b/pkg/kamailio/rpm/kamailio.spec.SuSE
index 91e8fbd356..b28a9f2b1e 100644
--- a/pkg/kamailio/rpm/kamailio.spec.SuSE
+++ b/pkg/kamailio/rpm/kamailio.spec.SuSE
@@ -1,5 +1,5 @@
 %define namekamailio
-%define ver 4.4.5
+%define ver 4.4.6
 %define rel 0
 
 %define EXCLUDED_MODULES   mysql jabber cpl-c auth_radius misc_radius 
peering postgress pa unixodbc osp tlsops


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:2634a759: Makefile.defs: version set to 4.4.6

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: 2634a759e8493ebd4f7ce8cbf467d4bf03f5eb71
URL: 
https://github.com/kamailio/kamailio/commit/2634a759e8493ebd4f7ce8cbf467d4bf03f5eb71

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T11:04:06+02:00

Makefile.defs: version set to 4.4.6

---

Modified: Makefile.defs

---

Diff:  
https://github.com/kamailio/kamailio/commit/2634a759e8493ebd4f7ce8cbf467d4bf03f5eb71.diff
Patch: 
https://github.com/kamailio/kamailio/commit/2634a759e8493ebd4f7ce8cbf467d4bf03f5eb71.patch

---

diff --git a/Makefile.defs b/Makefile.defs
index 923fd220f0..2e7818e440 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -101,7 +101,7 @@ INSTALL_FLAVOUR=$(FLAVOUR)
 # version number
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 5
+SUBLEVEL = 6
 EXTRAVERSION =
 
 # memory manager switcher


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:e81f7c96: ChangeLog: content updated for v4.4.6

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: e81f7c96c13ca48b07bcc97f466304402ee8cf13
URL: 
https://github.com/kamailio/kamailio/commit/e81f7c96c13ca48b07bcc97f466304402ee8cf13

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T11:09:11+02:00

ChangeLog: content updated for v4.4.6

---

Modified: ChangeLog

---

Diff:  
https://github.com/kamailio/kamailio/commit/e81f7c96c13ca48b07bcc97f466304402ee8cf13.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e81f7c96c13ca48b07bcc97f466304402ee8cf13.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:24718a4f: mtree: avoid char array access over the size

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 24718a4f0a7579abf9f32967cce2b86e5973cc6d
URL: 
https://github.com/kamailio/kamailio/commit/24718a4f0a7579abf9f32967cce2b86e5973cc6d

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T11:49:28+02:00

mtree: avoid char array access over the size

---

Modified: src/modules/mtree/mtree.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/24718a4f0a7579abf9f32967cce2b86e5973cc6d.diff
Patch: 
https://github.com/kamailio/kamailio/commit/24718a4f0a7579abf9f32967cce2b86e5973cc6d.patch

---

diff --git a/src/modules/mtree/mtree.c b/src/modules/mtree/mtree.c
index 7098577381..433c6b4c50 100644
--- a/src/modules/mtree/mtree.c
+++ b/src/modules/mtree/mtree.c
@@ -62,7 +62,7 @@ unsigned char _mt_char_table[MT_CHAR_TABLE_SIZE];
 void mt_char_table_init(void)
 {
unsigned int i;
-   for(i=0; i<=MT_CHAR_TABLE_SIZE; i++) {
+   for(i=0; ihttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:5.0:2d1dc7cf: mtree: avoid char array access over the size

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 5.0
Commit: 2d1dc7cfcde0410e44a8d53849c319c9d234a7b3
URL: 
https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T11:51:06+02:00

mtree: avoid char array access over the size

(cherry picked from commit 24718a4f0a7579abf9f32967cce2b86e5973cc6d)

---

Modified: src/modules/mtree/mtree.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3.diff
Patch: 
https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3.patch

---

diff --git a/src/modules/mtree/mtree.c b/src/modules/mtree/mtree.c
index 7098577381..433c6b4c50 100644
--- a/src/modules/mtree/mtree.c
+++ b/src/modules/mtree/mtree.c
@@ -62,7 +62,7 @@ unsigned char _mt_char_table[MT_CHAR_TABLE_SIZE];
 void mt_char_table_init(void)
 {
unsigned int i;
-   for(i=0; i<=MT_CHAR_TABLE_SIZE; i++) {
+   for(i=0; ihttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:b5a4c125: mtree: avoid char array access over the size

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: b5a4c125117d46e682595b04b22a6f850ba88087
URL: 
https://github.com/kamailio/kamailio/commit/b5a4c125117d46e682595b04b22a6f850ba88087

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T11:52:42+02:00

mtree: avoid char array access over the size

(cherry picked from commit 24718a4f0a7579abf9f32967cce2b86e5973cc6d)
(cherry picked from commit 2d1dc7cfcde0410e44a8d53849c319c9d234a7b3)

---

Modified: modules/mtree/mtree.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b5a4c125117d46e682595b04b22a6f850ba88087.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b5a4c125117d46e682595b04b22a6f850ba88087.patch

---

diff --git a/modules/mtree/mtree.c b/modules/mtree/mtree.c
index a77ea83835..7955bb253d 100644
--- a/modules/mtree/mtree.c
+++ b/modules/mtree/mtree.c
@@ -62,7 +62,7 @@ unsigned char _mt_char_table[MT_CHAR_TABLE_SIZE];
 void mt_char_table_init(void)
 {
unsigned int i;
-   for(i=0; i<=MT_CHAR_TABLE_SIZE; i++) {
+   for(i=0; ihttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:3ee23225: ratelimit: removed unused variable

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: 3ee232257fbd956b85fa23cf3a5f8766fabd6889
URL: 
https://github.com/kamailio/kamailio/commit/3ee232257fbd956b85fa23cf3a5f8766fabd6889

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T11:54:53+02:00

ratelimit: removed unused variable

---

Modified: modules/ratelimit/ratelimit.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/3ee232257fbd956b85fa23cf3a5f8766fabd6889.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3ee232257fbd956b85fa23cf3a5f8766fabd6889.patch

---

diff --git a/modules/ratelimit/ratelimit.c b/modules/ratelimit/ratelimit.c
index b8a053ef75..2d028924d0 100644
--- a/modules/ratelimit/ratelimit.c
+++ b/modules/ratelimit/ratelimit.c
@@ -324,7 +324,6 @@ static int get_cpuload(double * load)
static int first_time = 1;
FILE * f = fopen("/proc/stat", "r");
double vload;
-   int ncpu;
static int errormsg = 0;
 
if (! f) {


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:4.4:becbde42: ChangeLog: new content updated for v4.4.6

2017-06-16 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: 4.4
Commit: becbde4270a0bec3280e588fd0e4b537f12b23b9
URL: 
https://github.com/kamailio/kamailio/commit/becbde4270a0bec3280e588fd0e4b537f12b23b9

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2017-06-16T12:01:40+02:00

ChangeLog: new content updated for v4.4.6

---

Modified: ChangeLog

---

Diff:  
https://github.com/kamailio/kamailio/commit/becbde4270a0bec3280e588fd0e4b537f12b23b9.diff
Patch: 
https://github.com/kamailio/kamailio/commit/becbde4270a0bec3280e588fd0e4b537f12b23b9.patch

---

diff --git a/ChangeLog b/ChangeLog
index afd3c43712..a30faeaa54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,21 @@
 
 = Changes Since Version 4.4.5 ===
 
+commit 3ee232257fbd956b85fa23cf3a5f8766fabd6889
+Author: Daniel-Constantin Mierla 
+Date:   Fri Jun 16 11:54:53 2017 +0200
+
+ratelimit: removed unused variable
+
+commit b5a4c125117d46e682595b04b22a6f850ba88087
+Author: Daniel-Constantin Mierla 
+Date:   Fri Jun 16 11:49:28 2017 +0200
+
+mtree: avoid char array access over the size
+
+(cherry picked from commit 24718a4f0a7579abf9f32967cce2b86e5973cc6d)
+(cherry picked from commit 2d1dc7cfcde0410e44a8d53849c319c9d234a7b3)
+
 commit 2634a759e8493ebd4f7ce8cbf467d4bf03f5eb71
 Author: Daniel-Constantin Mierla 
 Date:   Fri Jun 16 11:04:06 2017 +0200


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] modules/topoh: added lookup functionality for destination IP (#1150)

2017-06-16 Thread Anthony Messina
Can this be used for topos as well as topoh?

-- 
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/1150#issuecomment-309004565___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] Kamailio v4.4.6 Released

2017-06-16 Thread Daniel-Constantin Mierla
Hello,

Kamailio SIP Server v4.4.6 stable release is out.

This is a maintenance release of the latest stable branch, 4.4, that
includes fixes since the release of v4.4.5. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v4.4.x. Deployments running previous v4.x.x
versions are strongly recommended to be upgraded to v4.4.6.

For more details about version 4.4.6 (including links and guidelines to
download the tarball or from GIT repository), visit:

  * https://www.kamailio.org/w/2017/06/kamailio-v4-4-6-released/

RPM, Debian/Ubuntu packages will be available soon as well.

Note: the latest stable branch is 5.0, at this moment with its latest
release v5.0.2. See more details about it at:

  * https://www.kamailio.org/w/kamailio-v5-0-0-release-notes/

Many thanks to all contributing and using Kamailio!

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] Call and Voice issues (#1151)

2017-06-16 Thread Abdo Ali Amer Ismail
### Description
Hello!
I'm beginner, and i have installed Kamailio Proxy SIP Server on Ubuntu 14.04.5 
LTS
and using it to register many SIP Servers (Asterisk)

I have some issues:
1- When i call another extension in not ringing.
2- Sometimes ringing but when call is get answered there is no voice.
3- I need to receive inbound calls from my Trunks, but i did not know how to 
make my proxy able to manage it.
4- I need to call some futures codes like (*45 & 555) but it is unable to call.

Thanks to all

 My "kamailio.cfg":

```#!KAMAILIO
#!define  WITH_TLS
#!define  WITH_MYSQL
#!define  WITH_AUTH
#!define  WITH_USRLOCDB
#!define  WITH_MULTIDOMAIN
#!define  WITH_PSTN
# Kamailio (OpenSER) SIP Server v5.0 - default configuration script
# - web: http://www.kamailio.org`
# - git: http://sip-router.org
#
# Direct your questions about this file to: 
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
#
# Note: the comments can be:
# - lines starting with #, but not the pre-processor directives,
#   which start with #!, like #!define, #!ifdef, #!endif, #!else, #!trydef,
#   #!subst, #!substdef, ...
# - lines starting with //
# - blocks enclosed in between /* */
#
# Several features can be enabled using '#!define WITH_FEATURE' directives:
#
# *** To run in debug mode:
# - define WITH_DEBUG
#
# *** To enable mysql:
# - define WITH_MYSQL
#
# *** To enable authentication execute:
# - enable mysql
# - define WITH_AUTH
# - add users using 'kamctl'
#
# *** To enable IP authentication execute:
# - enable mysql
# - enable authentication
# - define WITH_IPAUTH
# - add IP addresses with group id '1' to 'address' table
#
# *** To enable persistent user location execute:
# - enable mysql
# - define WITH_USRLOCDB
#
# *** To enable presence server execute:
# - enable mysql
# - define WITH_PRESENCE
#
# *** To enable nat traversal execute:
# - define WITH_NAT
# - install RTPProxy: http://www.rtpproxy.org
# - start RTPProxy:
#rtpproxy -l _your_public_ip_ -s udp:localhost:7722
# - option for NAT SIP OPTIONS keepalives: WITH_NATSIPPING
#
# *** To enable PSTN gateway routing execute:
# - define WITH_PSTN
# - set the value of pstn.gw_ip
# - check route[PSTN] for regexp routing condition
#
# *** To enable database aliases lookup execute:
# - enable mysql
# - define WITH_ALIASDB
#
# *** To enable speed dial lookup execute:
# - enable mysql
# - define WITH_SPEEDDIAL
#
# *** To enable multi-domain support execute:
# - enable mysql
# - define WITH_MULTIDOMAIN
#
# *** To enable TLS support execute:
# - adjust CFGDIR/tls.cfg as needed
# - define WITH_TLS
#
# *** To enable XMLRPC support execute:
# - define WITH_XMLRPC
# - adjust route[XMLRPC] for access policy
#
# *** To enable anti-flood detection execute:
# - adjust pike and htable=>ipban settings as needed (default is
#   block if more than 16 requests in 2 seconds and ban for 300 seconds)
# - define WITH_ANTIFLOOD
#
# *** To block 3XX redirect replies execute:
# - define WITH_BLOCK3XX
#
# *** To block 401 and 407 authentication replies execute:
# - define WITH_BLOCK401407
#
# *** To enable VoiceMail routing execute:
# - define WITH_VOICEMAIL
# - set the value of voicemail.srv_ip
# - adjust the value of voicemail.srv_port
#
# *** To enhance accounting execute:
# - enable mysql
# - define WITH_ACCDB
# - add following columns to database
#!ifdef ACCDB_COMMENT
  ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_ip varchar(64) NOT NULL default '';
  ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT 
'';
  ALTER TABLE missed_calls ADD COLUMN src_ip varchar(64) NOT NULL default '';
  ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT 
'';
#!endif

### Include Local Config If Exists #
import_file "kamailio-local.cfg"

### Defined Values #

# *** Value defines - IDs used later in config
#!ifdef WITH_MYSQL
# - database URL - used to connect to database server by modules such
#   as: auth_db, acc, usrloc, a.s.o.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif
#!endif
#!ifdef WITH_MULTIDOMAIN
# - the value for 'use_domain' paramet

Re: [sr-dev] [kamailio/kamailio] Call and Voice issues (#1151)

2017-06-16 Thread Victor Seva
Closed #1151.

-- 
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/1151#event-1127192436___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Call and Voice issues (#1151)

2017-06-16 Thread Victor Seva
This is for code issues, please send your question to Kamailio (SER) - Users 
Mailing List 

-- 
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/1151#issuecomment-309082035___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] IPv6 parse_uri error (#1136)

2017-06-16 Thread Victor Seva
@davidxbwang please use markdown format when pasting.

-- 
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/1136#issuecomment-309082579___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev