[sr-dev] Build failed in Jenkins: kamailio44-nightly-binaries » i386,squeeze,slave #128

2018-10-29 Thread kamailio
See 


--
[...truncated 360.27 KB...]
+ '[' 3600 -eq 0 ']'
+ touch /var/run/lock/squeeze-i386.building.3467
+ case "$architecture" in
+ linux32 sudo DIST=squeeze ARCH=i386 cowbuilder --buildresult 

 --build 

 --basepath /var/cache/pbuilder/base-squeeze-i386.cow --debbuildopts -B 
--hookdir /usr/share/jenkins-debian-glue/pbuilder-hookdir/ --bindmounts 
'/tmp/apt-jdg_cwE6xn ' --configfile=/tmp/tmp.9M3renpBjV
 -> Copying COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.11132 
  forking: cp -al /var/cache/pbuilder/base-squeeze-i386.cow 
/var/cache/pbuilder/build//cow.11132 
I: removed stale ilistfile /var/cache/pbuilder/build//cow.11132/.ilist
  forking: chroot /var/cache/pbuilder/build//cow.11132 cowdancer-ilistcreate 
/.ilist find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a 
-links +1 -print0 \) | xargs -0 stat --format '%d %i ' 
 -> Invoking pbuilder
  forking: pbuilder build --debbuildopts -B --hookdir 
/usr/share/jenkins-debian-glue/pbuilder-hookdir/ --bindmounts 
/tmp/apt-jdg_cwE6xn  --configfile /tmp/tmp.9M3renpBjV --buildplace 
/var/cache/pbuilder/build//cow.11132 --buildresult 

 --debbuildopts -B --no-targz --internal-chrootexec chroot 
/var/cache/pbuilder/build//cow.11132 cow-shell 

 
W: /root/.pbuilderrc does not exist
I: Running in no-targz mode
I: using fakeroot in build.
I: pbuilder: network access will be disabled during build
I: Current time: Tue Oct 30 04:27:20 UTC 2018
I: pbuilder-time-stamp: 1540873640
I: copying local configuration
I: mounting /proc filesystem
I: mounting /run/shm filesystem
I: mounting /dev/pts filesystem
I: Mounting /tmp/apt-jdg_cwE6xn
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Installing the build-deps
I: user script /var/cache/pbuilder/build/cow.11132/tmp/hooks/D10-man-db starting
I: Preseed man-db/auto-update to false
I: user script /var/cache/pbuilder/build/cow.11132/tmp/hooks/D10-man-db finished
I: user script /var/cache/pbuilder/build/cow.11132/tmp/hooks/D20releaserepo 
starting
+ set -- /tmp/apt-jdg_cwE6xn/
+ TMPAPT=/tmp/apt-jdg_cwE6xn/
+ [ -d /tmp/apt-jdg_cwE6xn/ ]
+ UPDATE_PKGLIST=0
+ ls /tmp/apt-jdg_cwE6xn/*.list
+ [ -e /tmp/apt-jdg_cwE6xn//keyring.gpg ]
+ [ 0 = 1 ]
I: user script /var/cache/pbuilder/build/cow.11132/tmp/hooks/D20releaserepo 
finished
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: i386
Maintainer: Debian Pbuilder Team 
Description: Dummy package to satisfy dependencies with aptitude - created by 
pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: bison, debhelper (>= 8), libmysqlclient-dev, docbook-xml, erlang-dev, 
flex, libconfuse-dev, libcurl4-openssl-dev, libdb-dev (>= 4.6.19), libev-dev, 
libevent-dev, libexpat1-dev, libgeoip-dev (>= 1.4.5), libjson0-dev, 
libldap2-dev, liblua5.1-0-dev, libmemcached-dev, libncurses5-dev, libpcre3-dev, 
libperl-dev, libpq-dev, libradiusclient-ng-dev, libreadline-dev, libsasl2-dev, 
libsnmp-dev, libsqlite3-dev, libunistring-dev, libxml2-dev, libxmlrpc-c3-dev, 
openssl, pkg-config, python, python-dev, unixodbc-dev, uuid-dev, xsltproc, 
zlib1g-dev
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in 
`/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously deselected package pbuilder-satisfydepends-dummy.
(Reading database ... 10562 files and directories currently installed.)
Unpacking pbuilder-satisfydepends-dummy (from 
.../pbuilder-satisfydepends-dummy.deb) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring 
anyway as you requested:
 pbuilder-satisfydepends-dummy depends on bison; however:
  Package bison is not installed.
 pbuilder-satisfydepends-dummy depends on debhelper (>= 8); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on libmysqlclient-dev; however:
  Package libmysqlclient-dev is not installed.
 pbuilder-satisfydepends-dummy depends on docbook-xml; however:
  Package docbook-xml is not installed.
 pbuilder-satisfydepends-dummy depends on erlang-dev; 

[sr-dev] Build failed in Jenkins: kamailio44-nightly-binaries » amd64,squeeze,slave #128

2018-10-29 Thread kamailio
See 


--
[...truncated 358.90 KB...]
+ '[' 3600 -eq 0 ']'
+ touch /var/run/lock/squeeze-amd64.building.16309
+ case "$architecture" in
+ sudo DIST=squeeze ARCH=amd64 cowbuilder --buildresult 

 --build 

 --basepath /var/cache/pbuilder/base-squeeze-amd64.cow --debbuildopts -sa 
--hookdir /usr/share/jenkins-debian-glue/pbuilder-hookdir/ --bindmounts 
'/tmp/apt-jdg_kDNY0m ' --configfile=/tmp/tmp.3UgvqGiG9D
 -> Copying COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.23949 
  forking: cp -al /var/cache/pbuilder/base-squeeze-amd64.cow 
/var/cache/pbuilder/build//cow.23949 
I: removed stale ilistfile /var/cache/pbuilder/build//cow.23949/.ilist
  forking: chroot /var/cache/pbuilder/build//cow.23949 cowdancer-ilistcreate 
/.ilist find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a 
-links +1 -print0 \) | xargs -0 stat --format '%d %i ' 
 -> Invoking pbuilder
  forking: pbuilder build --debbuildopts -sa --hookdir 
/usr/share/jenkins-debian-glue/pbuilder-hookdir/ --bindmounts 
/tmp/apt-jdg_kDNY0m  --configfile /tmp/tmp.3UgvqGiG9D --buildplace 
/var/cache/pbuilder/build//cow.23949 --buildresult 

 --debbuildopts -sa --no-targz --internal-chrootexec chroot 
/var/cache/pbuilder/build//cow.23949 cow-shell 

 
W: /root/.pbuilderrc does not exist
I: Running in no-targz mode
I: using fakeroot in build.
I: pbuilder: network access will be disabled during build
I: Current time: Tue Oct 30 04:26:48 UTC 2018
I: pbuilder-time-stamp: 1540873608
I: copying local configuration
I: mounting /proc filesystem
I: mounting /run/shm filesystem
I: mounting /dev/pts filesystem
I: Mounting /tmp/apt-jdg_kDNY0m
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Installing the build-deps
I: user script /var/cache/pbuilder/build/cow.23949/tmp/hooks/D10-man-db starting
I: Preseed man-db/auto-update to false
I: user script /var/cache/pbuilder/build/cow.23949/tmp/hooks/D10-man-db finished
I: user script /var/cache/pbuilder/build/cow.23949/tmp/hooks/D20releaserepo 
starting
+ set -- /tmp/apt-jdg_kDNY0m/
+ TMPAPT=/tmp/apt-jdg_kDNY0m/
+ [ -d /tmp/apt-jdg_kDNY0m/ ]
+ UPDATE_PKGLIST=0
+ ls /tmp/apt-jdg_kDNY0m/*.list
+ [ -e /tmp/apt-jdg_kDNY0m//keyring.gpg ]
+ [ 0 = 1 ]
I: user script /var/cache/pbuilder/build/cow.23949/tmp/hooks/D20releaserepo 
finished
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team 
Description: Dummy package to satisfy dependencies with aptitude - created by 
pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: bison, debhelper (>= 8), libmysqlclient-dev, docbook-xml, erlang-dev, 
flex, libconfuse-dev, libcurl4-openssl-dev, libdb-dev (>= 4.6.19), libev-dev, 
libevent-dev, libexpat1-dev, libgeoip-dev (>= 1.4.5), libjson0-dev, 
libldap2-dev, liblua5.1-0-dev, libmemcached-dev, libncurses5-dev, libpcre3-dev, 
libperl-dev, libpq-dev, libradiusclient-ng-dev, libreadline-dev, libsasl2-dev, 
libsnmp-dev, libsqlite3-dev, libunistring-dev, libxml2-dev, libxmlrpc-c3-dev, 
openssl, pkg-config, python, python-dev, unixodbc-dev, uuid-dev, xsltproc, 
zlib1g-dev
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in 
`/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously deselected package pbuilder-satisfydepends-dummy.
(Reading database ... 10514 files and directories currently installed.)
Unpacking pbuilder-satisfydepends-dummy (from 
.../pbuilder-satisfydepends-dummy.deb) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring 
anyway as you requested:
 pbuilder-satisfydepends-dummy depends on bison; however:
  Package bison is not installed.
 pbuilder-satisfydepends-dummy depends on debhelper (>= 8); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on libmysqlclient-dev; however:
  Package libmysqlclient-dev is not installed.
 pbuilder-satisfydepends-dummy depends on docbook-xml; however:
  Package docbook-xml is not installed.
 pbuilder-satisfydepends-dummy depends on erlang-dev; 

Re: [sr-dev] [kamailio/kamailio] usrloc: call contact expired call back for a domain with db_mode: DB_ONLY (#1683)

2018-10-29 Thread Daniel-Constantin Mierla
This is not a pure fix to a bug -- I said I am fine to merge it in this phase 
of testing the upcoming 5.2.0 release because it brings coherence with the 
other db modes. With git is easy to clone the repo and maintain back ports as 
you need.

-- 
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/1683#issuecomment-434022674___
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] usrloc: call contact expired call back for a domain with db_mode: DB_ONLY (#1683)

2018-10-29 Thread adil-mafzool
@miconda will this be backported to stable 4.4 branch?

-- 
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/1683#issuecomment-434001837___
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] when using terminate_dlg via xmlrpc, not able to generate proper bye message, if request is behind nat. (#1689)

2018-10-29 Thread Daniel-Constantin Mierla
Closed #1689.

-- 
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/1689#event-1932909404___
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] Dialog: generating the request uri with alias when route header present (#1695)

2018-10-29 Thread Surendra Tiwari
closing this as this is incorporated by 
810d84981b4ed83b11e4090740a36653ec10ef16.

-- 
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/1695#issuecomment-433998566___
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] Dialog: generating the request uri with alias when route header present (#1695)

2018-10-29 Thread Surendra Tiwari
Closed #1695.

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


[sr-dev] git:master:810d8498: dialog: handle alias in contact address for local bye only when no route headers

2018-10-29 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 810d84981b4ed83b11e4090740a36653ec10ef16
URL: 
https://github.com/kamailio/kamailio/commit/810d84981b4ed83b11e4090740a36653ec10ef16

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2018-10-29T07:27:58+01:00

dialog: handle alias in contact address for local bye only when no route headers

- GH #1689

---

Modified: src/modules/dialog/dlg_req_within.c

---

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

---

diff --git a/src/modules/dialog/dlg_req_within.c 
b/src/modules/dialog/dlg_req_within.c
index d37bbbf514..62693808c8 100644
--- a/src/modules/dialog/dlg_req_within.c
+++ b/src/modules/dialog/dlg_req_within.c
@@ -77,8 +77,8 @@ dlg_t * build_dlg_t(struct dlg_cell * cell, int dir){
unsigned int loc_seq;
char nbuf[MAX_URI_SIZE];
char dbuf[80];
-   str nuri;
-   str duri;
+   str nuri = STR_NULL;
+   str duri = STR_NULL;
size_t sz;
char *p;
 
@@ -87,14 +87,16 @@ dlg_t * build_dlg_t(struct dlg_cell * cell, int dir){
LM_ERR("no contact available\n");
goto error;
}
-   /*restore alias parameter*/
-   nuri.s = nbuf;
-   nuri.len = MAX_URI_SIZE;
-   duri.s = dbuf;
-   duri.len = 80;
-   if(uri_restore_rcv_alias(>contact[dir], , )<0) {
-   nuri.len = 0;
-   duri.len = 0;
+   if(cell->route_set[dir].s==NULL || cell->route_set[dir].len<=0){
+   /*try to restore alias parameter if no route set */
+   nuri.s = nbuf;
+   nuri.len = MAX_URI_SIZE;
+   duri.s = dbuf;
+   duri.len = 80;
+   if(uri_restore_rcv_alias(>contact[dir], , )<0) {
+   nuri.len = 0;
+   duri.len = 0;
+   }
}
if(nuri.len>0 && duri.len>0) {
sz = sizeof(dlg_t) + (nuri.len+duri.len+2)*sizeof(char);
@@ -103,7 +105,6 @@ dlg_t * build_dlg_t(struct dlg_cell * cell, int dir){
}
td = (dlg_t*)pkg_malloc(sz);
if(!td){
-   
LM_ERR("out of pkg memory\n");
return NULL;
}
@@ -122,13 +123,12 @@ dlg_t * build_dlg_t(struct dlg_cell * cell, int dir){
 
/*route set*/
if( cell->route_set[dir].s && cell->route_set[dir].len){
-   
-   if( parse_rr_body(cell->route_set[dir].s, 
cell->route_set[dir].len, 
+   if( parse_rr_body(cell->route_set[dir].s, 
cell->route_set[dir].len,
>route_set) !=0){
LM_ERR("failed to parse route set\n");
goto error;
}
-   } 
+   }
 
if(nuri.len>0 && duri.len>0) {
/* req uri */
@@ -153,7 +153,7 @@ dlg_t * build_dlg_t(struct dlg_cell * cell, int dir){
td->id.rem_tag = cell->tag[dir];
td->id.loc_tag = (dir == DLG_CALLER_LEG) ?  
cell->tag[DLG_CALLEE_LEG]:

cell->tag[DLG_CALLER_LEG];
-   
+
td->state= DLG_CONFIRMED;
td->send_sock = cell->bind_addr[dir];
 


___
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] Dialog: generating the request uri with alias when route header present (#1695)

2018-10-29 Thread Surendra Tiwari
@miconda please review.

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


[sr-dev] [kamailio/kamailio] Dialog: generating the request uri with alias when route header present (#1695)

2018-10-29 Thread Surendra Tiwari




 Pre-Submission Checklist



- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, 
...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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:

- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #1689  (replace  with an open issue number)

 Description
Using contact as request uri when there is route header present in the dialog


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1695

-- Commit Summary --

  * Dialog: generating the request uri with alias when route header present

-- File Changes --

M src/modules/dialog/dlg_req_within.c (3)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1695.patch
https://github.com/kamailio/kamailio/pull/1695.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/1695
___
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] Dialog : Handling Alias in the request uri when having route header (#1694)

2018-10-29 Thread Surendra Tiwari
Closed #1694.

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


[sr-dev] [kamailio/kamailio] Dialog : Handling Alias in the request uri when having route header (#1694)

2018-10-29 Thread Surendra Tiwari




 Pre-Submission Checklist



- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, 
...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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:

- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #1689 (replace  with an open issue number)

 Description
Copying the contact header to request uri , when we have route header present 
in the dialog. This is basically needed for generating the call termination 
request using XMLRPC.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1694

-- Commit Summary --

  * Modules: Handling Alias in the request uri when having route header

-- File Changes --

M src/modules/dialog/dlg_req_within.c (875)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1694.patch
https://github.com/kamailio/kamailio/pull/1694.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/1694
___
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] pdb: fix SIGABRT in case of too long uris (#1693)

2018-10-29 Thread Daniel-Constantin Mierla
It can be merged and back ported to stable branches.

There is no restriction to back port to older branches, so you can push it to 
4.4 as well -- the last two stable branches (now 5.0 and 5.1) are officially 
maintained from the perspective of doing releases out of them and it is not a 
must to backport. But if a developer wants to push to older versions, it is ok.

-- 
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/1693#issuecomment-433930035___
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] when using terminate_dlg via xmlrpc, not able to generate proper bye message, if request is behind nat. (#1689)

2018-10-29 Thread Surendra Tiwari
i just checked the code and found that 
https://github.com/kamailio/kamailio/blob/98ee25c6da118cadedd98621c580ed4df3a7e860/src/modules/dialog/dlg_req_within.c#L95
```
if(uri_restore_rcv_alias(>contact[dir], , )<0) {
nuri.len = 0;
duri.len = 0;
}

```
This function is setting nuri, that is subsequently used as request uri. 
Problem here is nuri does not contains the alias parameters in uri.


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


[sr-dev] [kamailio/kamailio] pdb: fix SIGABRT in case of too long uris (#1693)

2018-10-29 Thread Lucian Balaceanu
buf in pdb_msg_dbg should correctly accomodate for pdb_bdy size
pdb_hdr + pdb_bdy should add to pdb_hdr.length (max 255)





 Pre-Submission Checklist



- [ ] 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:

- [x ] PR should be backported to stable branches
- [x ] Tested changes locally
- [ ] Related to issue # (replace  with an open issue number)

 Description


Can I also port this back to 4.4? Thank you.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1693

-- Commit Summary --

  * pdb: fix SIGABRT in case of too long uris

-- File Changes --

M src/modules/pdb/common.h (3)
M src/modules/pdb/pdb.c (5)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1693.patch
https://github.com/kamailio/kamailio/pull/1693.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/1693
___
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] Crash ims_diameter_server module (#1686)

2018-10-29 Thread Iman Mohammadi
> Can you reproduce and get a core dump from the crash? Only with these logs is 
> hard to discover what is wrong and reproducing by others might be hard (at 
> least for me).
> 
> You have to run kamailio as root and do `ulimit -c unlimited` before starting 
> kamailio. Then reproduce the issue and a core file should be generated -- 
> take the backtrace from it with gdb tool.






gdb /usr/local/sbin/kamailio /home/corefiles/core.kamailio.sig11.1974
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/kamailio...done.
[New LWP 1974]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/sbin/kamailio -f 
usr/local/etc/kamailio/kamailio.cfg -P /var/run/kam'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f5e23c4a11e in diameterserver_add_avp (m=0x0, d=0x7f5e1b5c2240 "", 
len=12, avp_code=431, flags=64, vendorid=0, data_do=2,
func=0x7f5e23c51d6c <__FUNCTION__.20148> "parselist") at avp_helper.c:208
208 if (cdpb.ddAVPToMessage(m, avp, m->avpList.tail) != 
AAA_ERR_SUCCESS) {
(gdb) bt full
#0  0x7f5e23c4a11e in diameterserver_add_avp (m=0x0, d=0x7f5e1b5c2240 "", 
len=12, avp_code=431, flags=64, vendorid=0, data_do=2,
func=0x7f5e23c51d6c <__FUNCTION__.20148> "parselist") at avp_helper.c:208
avp = 0x7f5e1b5c3bd0
__FUNCTION__ = "diameterserver_add_avp"
#1  0x7f5e23c4d0c8 in parselist (response=0x0, list=0x7fff9f21a8d0, 
item=0x11b67d0, level=2) at avp_helper.c:309
i = 1
flags = 64
x = "p\250!\237"
avp_list = {head = 0x0, tail = 0x0}
avp_list_s = {s = 0x7f5e1b5c2240 "", len = 12}
__FUNCTION__ = "parselist"
#2  0x7f5e23c4cffc in parselist (response=0x7f5e1b5c3ab8, list=0x0, 
item=0x11b6550, level=1) at avp_helper.c:304
subitem = 0x11b67d0
i = 0
flags = 64
x = "\000\000\000"
avp_list = {head = 0x0, tail = 0x0}
avp_list_s = {s = 0x7fff9f21a8f0 "@\251!\237\377\177", len = 600070897}
__FUNCTION__ = "parselist"
#3  0x7f5e23c4db3a in addAVPsfromJSON (response=0x7f5e1b5c3ab8, 
json=0x7f5e23e53950 ) at avp_helper.c:349
subitem = 0x11b6550
i = 4
__FUNCTION__ = "addAVPsfromJSON"
root = 0x11b4210
#4  0x7f5e23c3fbdb in callback_cdp_request (request_in=0x7f5e1b5c19b0, 
param=0x0) at ims_diameter_server.c:193
fmsg = 0xab7840 <_faked_msg>
backup_rt = 1
ctx = {rec_lev = 0, run_flags = 0, last_retcode = 1, jmp_env = 
{{__jmpbuf = {1, -5713032302318786866, 7971288, 7971288,
140042162528420, 0, -5713032302339758386, 5712822384154044110}, 
__mask_was_saved = 0, __saved_mask = {__val = {
  140735863172072, 127, 0, 140042162532340, 140042389578761, 
4222451713, 140042162532340, 140042162532340, 140042162532340,
  140042162532340, 140042162532358, 140042162532467, 
140042162532340, 140042162532467, 0, 0}
response = 0x7f5e1b5c3ab8
__FUNCTION__ = "callback_cdp_request"
#5  0x7f5e24a705c0 in api_callback (p=0x7f5e1b598f50, msg=0x7f5e1b5c19b0, 
ptr=0x0) at api_process.c:83
t = 0x7f5e1b598f50
auto_drop = 32767
h = 0x7f5e1b5b3358
---Type  to continue, or q  to quit---

thanks


-- 
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/1686#issuecomment-433812515___
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] Crash ims_diameter_server module (#1686)

2018-10-29 Thread Daniel-Constantin Mierla
Can you reproduce and get a core dump from the crash? Only with these logs is 
hard to discover what is wrong and reproducing by others might be hard (at 
least for me).

You have to run kamailio as root and do `ulimit -c unlimited` before starting 
kamailio. Then reproduce the issue and a core file should be generated -- take 
the backtrace from it with gdb tool.

-- 
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/1686#issuecomment-433798191___
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] when using terminate_dlg via xmlrpc, not able to generate proper bye message, if request is behind nat. (#1689)

2018-10-29 Thread Daniel-Constantin Mierla
The alias parameter of Contact should be handled internally by kamailio only if 
there is no Route set, but it is not the case here. I will look at the code.

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