This patch makes SCTP module compile without errors or warnings on FreeBSD 10.1
CC (clang) [M sctp.so] sctp_server.o
sctp_server.c:2400:54: error: too few arguments provided to function-like macro invocation
SCTP_EV_REMOTE_ERROR(&si->address, si->port_no, su);
^
./sctp_ev.h:37:9: note: macro 'SCTP_EV_REMOTE_ERROR' defined here
#define SCTP_EV_REMOTE_ERROR(lip, lport, src, err)
^
sctp_server.c:2400:4: error: use of undeclared identifier 'SCTP_EV_REMOTE_ERROR'
SCTP_EV_REMOTE_ERROR(&si->address, si->port_no, su);
^
sctp_server.c:2662:13: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((errno==ENOENT)){
sctp_server.c:2829:13: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((errno==ENOENT)){
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/74
-- Commit Summary --
* modules/sctp Fixes FreeBSD 10.1 compile error and 2 warnings
-- File Changes --
M modules/sctp/sctp_server.c (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/74.patchhttps://github.com/kamailio/kamailio/pull/74.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/74
Hi,
Is it OK to backport the above (
https://github.com/kamailio/kamailio/commit/635f23b12eff2431ca9a14bb39f4204…)
to 4.2?
The patch preserves existing behaviour, having optional parameter to enable
(default disabled).
Cheers,
Charles
--
www.sipcentric.com
Follow us on twitter @sipcentric <http://twitter.com/sipcentric>
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street,
Birmingham Science Park, Birmingham B7 4BB.
Hello,
I am planning to release a new version from latest stable branch -
4.2. Most likely it will be Tuesday next week (Feb 10). If there is
something important to take in consideration for this version, reply to
sr-dev mailing list.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hi,
i'm collecting some avps on the registration process and getting the location_attrs table filled as intended.
however, i'm noticing that when a registration expires or UA de-registers (Expires = 0) the values in location table table are deleted (OK) but in location_attrs they are not deleted (NOT OK).
when the UA registers back the it creates new records in location and location_attrs (OK).
this is filling up the location_attrs table very quickly because of the records that are not deleted.
Best
This PR fixes missing types and endian defs in srutils/sha256 that prevent compilation on Solaris derivatives.
Specifically, this fixes the following errors when compiling:
```
CC (gcc) [L libsrutils.so.1.0] sha256.o
In file included from sha256.c:37:0:
sha256.h:111:2: error: unknown type name 'u_int32_t'
sha256.h:112:2: error: unknown type name 'u_int64_t'
sha256.h:113:2: error: unknown type name 'u_int8_t'
sha256.h:116:2: error: unknown type name 'u_int64_t'
sha256.h:117:2: error: unknown type name 'u_int64_t'
sha256.h:118:2: error: unknown type name 'u_int8_t'
sha256.h:151:1: error: unknown type name 'u_int8_t'
sha256.h:152:19: error: unknown type name 'u_int8_t'
sha256.h:154:1: error: unknown type name 'u_int8_t'
sha256.h:157:1: error: unknown type name 'u_int8_t'
sha256.h:158:19: error: unknown type name 'u_int8_t'
sha256.h:160:1: error: unknown type name 'u_int8_t'
sha256.h:163:1: error: unknown type name 'u_int8_t'
sha256.h:164:19: error: unknown type name 'u_int8_t'
sha256.h:166:1: error: unknown type name 'u_int8_t'
sha256.c:89:2: error: #error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
sha256.c:114:1: error: unknown type name 'u_int8_t'
sha256.c:115:1: error: unknown type name 'u_int32_t'
sha256.c:116:1: error: unknown type name 'u_int64_t'
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/70
-- Commit Summary --
* fix compile errors in srutils/sha256 on SunOS (SmartOS)
-- File Changes --
M lib/srutils/sha256.c (6)
M lib/srutils/sha256.h (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/70.patchhttps://github.com/kamailio/kamailio/pull/70.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/70