sip-router
5 years agomodules: readme files regenerated - auth_ephemeral ...
Kamailio Dev [Wed, 1 Feb 2017 15:01:13 +0000 (16:01 +0100)]
modules: readme files regenerated - auth_ephemeral ...

5 years agoauth_ephemeral: Support for stronger hashing algorithms
Carsten Bock [Wed, 1 Feb 2017 08:53:45 +0000 (09:53 +0100)]
auth_ephemeral: Support for stronger hashing algorithms

5 years agocore: avoid overrun-buffer-arg
Victor Seva [Wed, 1 Feb 2017 11:53:28 +0000 (12:53 +0100)]
core: avoid overrun-buffer-arg

> Overrunning array ((struct a_rdata *)rr->rdata)->ip of 4 bytes
> by passing it to a function which accesses it at byte offset 15
> using argument len (which evaluates to 16)

5 years agoRevert "pkg/kamailio/deb: remove kazoo package"
Victor Seva [Tue, 31 Jan 2017 13:08:31 +0000 (14:08 +0100)]
Revert "pkg/kamailio/deb: remove kazoo package"

This reverts commit e3297bccc97ddc4349bcf69de59eb337c05bbae3.

5 years agoRevert "Makefile.groups: remove kazoo group and move kazoo to rabbitmq"
Victor Seva [Tue, 31 Jan 2017 13:08:14 +0000 (14:08 +0100)]
Revert "Makefile.groups: remove kazoo group and move kazoo to rabbitmq"

This reverts commit 71d42ee8d7ad2bb4e00b460276e4853a200c7b7e.

5 years agomodules: readme files regenerated - websocket ...
Kamailio Dev [Tue, 31 Jan 2017 11:31:15 +0000 (12:31 +0100)]
modules: readme files regenerated - websocket ...

5 years agowebsocket: docs for verbose_list parameter
Daniel-Constantin Mierla [Tue, 31 Jan 2017 11:25:55 +0000 (12:25 +0100)]
websocket: docs for verbose_list parameter

5 years agowebsocket: option to avoid repetitive logs each 1 sec during pinging
Daniel-Constantin Mierla [Tue, 31 Jan 2017 11:24:30 +0000 (12:24 +0100)]
websocket: option to avoid repetitive logs each 1 sec during pinging

- few debug messages are printed each second while fetching the list of
  active connections for pining, making the log full while
  troubleshooting

5 years agoMerge pull request #959 from vance-od/master
Daniel-Constantin Mierla [Tue, 31 Jan 2017 11:23:22 +0000 (12:23 +0100)]
Merge pull request #959 from vance-od/master

Update jansson_path.c

5 years agopkg/kamailio/deb: remove kazoo package
Victor Seva [Tue, 31 Jan 2017 09:46:29 +0000 (10:46 +0100)]
pkg/kamailio/deb: remove kazoo package

* previous package will be upgrade to rabbitmq

5 years agoMakefile.groups: remove kazoo group and move kazoo to rabbitmq
Victor Seva [Tue, 31 Jan 2017 09:34:15 +0000 (10:34 +0100)]
Makefile.groups: remove kazoo group and move kazoo to rabbitmq

5 years agopkg/kamailio/deb: fix f405c28318ea about rabbitmq
Victor Seva [Tue, 31 Jan 2017 09:19:08 +0000 (10:19 +0100)]
pkg/kamailio/deb: fix f405c28318ea about rabbitmq

* debian/backports/* files need to be properly update in order to keep
  supporting old distribution releases
* the workflow is change debian/* and make the necessary changes
  to debian/backports/*
* Please do _NOT_ change directly the distribution release files

5 years agoPackaging: Add RabbitMQ Package to Debian Packaging
Carsten Bock [Tue, 31 Jan 2017 09:04:42 +0000 (10:04 +0100)]
Packaging: Add RabbitMQ Package to Debian Packaging

5 years agoUpdate jansson_path.c 959/head
Vasiliy Ganchev [Tue, 31 Jan 2017 06:29:08 +0000 (08:29 +0200)]
Update jansson_path.c

in case of build on old debian (lenny) - statically linked libjansson has to be used, as a result build throw errors, cos libjansson has functions with the same names

5 years agotravis: use kamailio/pkg-kamailio-docker
Victor Seva [Mon, 30 Jan 2017 12:47:03 +0000 (13:47 +0100)]
travis: use kamailio/pkg-kamailio-docker

5 years agoims_dialog: fix warning: ‘dlg_terminated_confirmed’ defined but not used [-Wunused...
Ovidiu Sas [Mon, 30 Jan 2017 20:18:59 +0000 (15:18 -0500)]
ims_dialog: fix warning: ‘dlg_terminated_confirmed’ defined but not used [-Wunused-function]

5 years agopkg/kamailio/deb: fix missing new dependency for stretch/sid
Victor Seva [Mon, 30 Jan 2017 17:53:31 +0000 (18:53 +0100)]
pkg/kamailio/deb: fix missing new dependency for stretch/sid

5 years agoims_dialog: init vars to avoid compile warnings
Daniel-Constantin Mierla [Mon, 30 Jan 2017 17:30:26 +0000 (18:30 +0100)]
ims_dialog: init vars to avoid compile warnings

5 years agodb_text: close file stream in case of error reading table file
Daniel-Constantin Mierla [Mon, 30 Jan 2017 17:23:39 +0000 (18:23 +0100)]
db_text: close file stream in case of error reading table file

5 years agopipelimit: close file stream in case of error in get cpu
Daniel-Constantin Mierla [Mon, 30 Jan 2017 17:18:39 +0000 (18:18 +0100)]
pipelimit: close file stream in case of error in get cpu

5 years agospeeddial: incremed nr_keys after strip operation
Daniel-Constantin Mierla [Mon, 30 Jan 2017 17:11:05 +0000 (18:11 +0100)]
speeddial: incremed nr_keys after strip operation

- avoid out of bounds index

5 years agodrouting: check return of get_node_index() to avoid negative index
Daniel-Constantin Mierla [Mon, 30 Jan 2017 16:46:39 +0000 (17:46 +0100)]
drouting: check return of get_node_index() to avoid negative index

5 years agojsonrpcs: close file for nice cleanup if fifo server fails to be initialized
Daniel-Constantin Mierla [Mon, 30 Jan 2017 16:40:38 +0000 (17:40 +0100)]
jsonrpcs: close file for nice cleanup if fifo server fails to be initialized

5 years agoipops: avoid out of range index when sorting srv pv
Daniel-Constantin Mierla [Mon, 30 Jan 2017 16:28:59 +0000 (17:28 +0100)]
ipops: avoid out of range index when sorting srv pv

5 years agocfgt: check first out of range index
Daniel-Constantin Mierla [Mon, 30 Jan 2017 15:45:26 +0000 (16:45 +0100)]
cfgt: check first out of range index

5 years agopkg/kamailio/deb: use default-libmysqlclient-dev/default-mysql-client
Victor Seva [Mon, 30 Jan 2017 15:16:12 +0000 (16:16 +0100)]
pkg/kamailio/deb: use default-libmysqlclient-dev/default-mysql-client

5 years agoMerge pull request #955 from grumvalski/serial_suspend
Federico Cabiddu [Mon, 30 Jan 2017 15:12:59 +0000 (16:12 +0100)]
Merge pull request #955 from grumvalski/serial_suspend

tm: reset T_ASYNC_CONTINUE flag in t_suspend

5 years agopkg/kamailio/deb: remove dnssec from stretch/sid due #851
Victor Seva [Mon, 30 Jan 2017 13:06:22 +0000 (14:06 +0100)]
pkg/kamailio/deb: remove dnssec from stretch/sid due #851

5 years agocorex: close fd if ftell() fails inside file_read()
Daniel-Constantin Mierla [Mon, 30 Jan 2017 12:21:53 +0000 (13:21 +0100)]
corex: close fd if ftell() fails inside file_read()

5 years agojsonrpc: init len variable to avoid invalid usage
Daniel-Constantin Mierla [Mon, 30 Jan 2017 12:15:00 +0000 (13:15 +0100)]
jsonrpc: init len variable to avoid invalid usage

5 years agohttp_async_client: memset query_params to 0
Daniel-Constantin Mierla [Mon, 30 Jan 2017 11:50:07 +0000 (12:50 +0100)]
http_async_client: memset query_params to 0

- goto done in case of error could end up with some field not initialized

5 years agocore: parser - updated old log messages
Daniel-Constantin Mierla [Sun, 29 Jan 2017 16:52:40 +0000 (17:52 +0100)]
core: parser - updated old log messages

5 years agocore: parser via - updated log macros and coherent indentation
Daniel-Constantin Mierla [Sun, 29 Jan 2017 11:19:28 +0000 (12:19 +0100)]
core: parser via - updated log macros and coherent indentation

5 years agotm: reset T_ASYNC_CONTINUE flag in t_suspend 955/head
grumvalski [Sun, 29 Jan 2017 08:10:23 +0000 (09:10 +0100)]
tm: reset T_ASYNC_CONTINUE flag in t_suspend

5 years agocore: cfg.lex - update log macros
Daniel-Constantin Mierla [Sat, 28 Jan 2017 19:50:48 +0000 (20:50 +0100)]
core: cfg.lex - update log macros

5 years agocore: cfg.y - updated log macros
Daniel-Constantin Mierla [Fri, 27 Jan 2017 12:34:56 +0000 (13:34 +0100)]
core: cfg.y - updated log macros

5 years agotopoh: safety check to avoid crash when there is no via header
Minh Phan [Fri, 27 Jan 2017 08:06:08 +0000 (09:06 +0100)]
topoh: safety check to avoid crash when there is no via header

- based on GH #952

5 years agomodules: readme files regenerated - cdp ...
Kamailio Dev [Fri, 27 Jan 2017 08:01:22 +0000 (09:01 +0100)]
modules: readme files regenerated - cdp ...

5 years agoCDP: Add config function to check availability of Diameter-Services (e.g. check,...
Carsten Bock [Fri, 27 Jan 2017 07:46:05 +0000 (08:46 +0100)]
CDP: Add config function to check availability of Diameter-Services (e.g. check, if Cx/Dx Interface is up)

5 years agoMerge pull request #951 from kelchy/master
Daniel-Constantin Mierla [Thu, 26 Jan 2017 18:01:51 +0000 (19:01 +0100)]
Merge pull request #951 from kelchy/master

jansson: add path to error log for easier debugging

5 years agocore: allow setting shm_mem_size in cfg if it still holds default value
Daniel-Constantin Mierla [Thu, 26 Jan 2017 16:02:05 +0000 (17:02 +0100)]
core: allow setting shm_mem_size in cfg if it still holds default value

- reported by Maxim Malygin, GH #950

5 years agojansson: add path to error log for easier debugging 951/head
Kelvin Chua [Thu, 26 Jan 2017 15:52:49 +0000 (15:52 +0000)]
jansson: add path to error log for easier debugging

5 years agohtable: use custom column name for order by in db load
Daniel-Constantin Mierla [Wed, 25 Jan 2017 13:45:51 +0000 (14:45 +0100)]
htable: use custom column name for order by in db load

- reported by Sebastian Damm, GH #948

5 years agokazoo: avoid WARNING:qm_free: free(0) when kamailio shuts down on config parsing...
Ovidiu Sas [Tue, 24 Jan 2017 17:33:54 +0000 (12:33 -0500)]
kazoo: avoid WARNING:qm_free: free(0) when kamailio shuts down on config parsing errors

5 years agoMerge pull request #947 from kamailio/lazedo-patch-4
lazedo [Tue, 24 Jan 2017 11:31:52 +0000 (11:31 +0000)]
Merge pull request #947 from kamailio/lazedo-patch-4

presence: free pointer after usage

5 years agokamctl: mention CHARSET as option in kamctlrc
Daniel-Constantin Mierla [Tue, 24 Jan 2017 11:25:30 +0000 (12:25 +0100)]
kamctl: mention CHARSET as option in kamctlrc

5 years agopresence: free pointer after usage 947/head
lazedo [Tue, 24 Jan 2017 02:58:54 +0000 (02:58 +0000)]
presence: free pointer after usage

discovered when using tlsf memory manager.

5 years agoMerge pull request #944 from kamailio/lazedo-patch-2
lazedo [Mon, 23 Jan 2017 20:44:25 +0000 (20:44 +0000)]
Merge pull request #944 from kamailio/lazedo-patch-2

presence: allow use of $subs in notify process

5 years agoMerge pull request #942 from ffontaine/master
Daniel-Constantin Mierla [Mon, 23 Jan 2017 19:55:21 +0000 (20:55 +0100)]
Merge pull request #942 from ffontaine/master

Create ktls_no_curl

5 years agotm: more old log macros converted to new style
Daniel-Constantin Mierla [Mon, 23 Jan 2017 14:58:34 +0000 (15:58 +0100)]
tm: more old log macros converted to new style

5 years agotm: uac - updated log messages
Daniel-Constantin Mierla [Sun, 22 Jan 2017 19:28:40 +0000 (20:28 +0100)]
tm: uac - updated log messages

5 years agopresence: allow use of $subs in notify process 944/head
lazedo [Sun, 22 Jan 2017 14:32:50 +0000 (14:32 +0000)]
presence: allow use of $subs in notify process

5 years agomodules: readme files regenerated - presence ...
Kamailio Dev [Sun, 22 Jan 2017 14:31:23 +0000 (15:31 +0100)]
modules: readme files regenerated - presence ...

5 years agopresence: update delete_subscription documentation
lazedo [Sun, 22 Jan 2017 14:27:23 +0000 (14:27 +0000)]
presence: update delete_subscription documentation

5 years agocore: print cfg line and column inside fix_rval() if resolve select fails
Daniel-Constantin Mierla [Sat, 21 Jan 2017 18:54:31 +0000 (19:54 +0100)]
core: print cfg line and column inside fix_rval() if resolve select fails

5 years agocore: select - added function to print select for error purposes
Daniel-Constantin Mierla [Sat, 21 Jan 2017 18:49:47 +0000 (19:49 +0100)]
core: select - added function to print select for error purposes

5 years agotm: select code migrated to new log macros
Daniel-Constantin Mierla [Sat, 21 Jan 2017 18:24:57 +0000 (19:24 +0100)]
tm: select code migrated to new log macros

5 years agopresence: build proper ipv6 contact when server address is not set
Daniel-Constantin Mierla [Fri, 20 Jan 2017 16:15:10 +0000 (17:15 +0100)]
presence: build proper ipv6 contact when server address is not set

- reported by GH #943

5 years agohtable: split ht_reset() cfg wrapper to allow kemi export
Daniel-Constantin Mierla [Fri, 20 Jan 2017 15:36:41 +0000 (16:36 +0100)]
htable: split ht_reset() cfg wrapper to allow kemi export

5 years agocore: print cfg line and column for errors in fix_rval_expr()
Daniel-Constantin Mierla [Fri, 20 Jan 2017 08:07:49 +0000 (09:07 +0100)]
core: print cfg line and column for errors in fix_rval_expr()

5 years agoCreate ktls_basic 942/head
Fabrice Fontaine [Thu, 19 Jan 2017 12:38:25 +0000 (13:38 +0100)]
Create ktls_basic

Create ktls_basic group to be able to compile ktls module when curl is
not available

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
5 years agotm: hooks related code updated to print log messages without hardcoded prefix
Daniel-Constantin Mierla [Thu, 19 Jan 2017 15:57:35 +0000 (16:57 +0100)]
tm: hooks related code updated to print log messages without hardcoded prefix

5 years agoMerge pull request #941 from kamailio/lazedo/dbtext_master
lazedo [Wed, 18 Jan 2017 13:24:17 +0000 (13:24 +0000)]
Merge pull request #941 from kamailio/lazedo/dbtext_master

db_text: implement fetch and memory constraints

5 years agomodules: readme files regenerated - presence ...
Kamailio Dev [Wed, 18 Jan 2017 13:16:18 +0000 (14:16 +0100)]
modules: readme files regenerated - presence ...

5 years agoMerge pull request #939 from kamailio/lazedo/kazoo-patch
lazedo [Wed, 18 Jan 2017 13:09:02 +0000 (13:09 +0000)]
Merge pull request #939 from kamailio/lazedo/kazoo-patch

kazoo: fix kz_amqp_get_zones

5 years agoMerge pull request #914 from kamailio/lazedo-patch-1
lazedo [Wed, 18 Jan 2017 13:08:21 +0000 (13:08 +0000)]
Merge pull request #914 from kamailio/lazedo-patch-1

presence: allow control of subscription deletion

5 years agoMerge pull request #934 from ffontaine/master
Daniel-Constantin Mierla [Wed, 18 Jan 2017 13:08:06 +0000 (14:08 +0100)]
Merge pull request #934 from ffontaine/master

Reuse PERLLDOPTS in db_perlvdb

5 years agodb_text: implement fetch and memory constraints 941/head
lazedo [Wed, 18 Jan 2017 10:00:22 +0000 (10:00 +0000)]
db_text: implement fetch and memory constraints

when dealing with large db_text files, pkg_memory is not suitable for
operating the database.

implementing fetch allows modules like presence & registrar & usrloc
to query large tables without constraints on pkg_memory.

creates tmp tables in shared memory for query results

(cherry picked from commit 18c64d2c9ff1527655055f75aa22e7d68c307874)

Conflicts:
src/modules/db_text/db_text.c
src/modules/db_text/dbt_api.c
src/modules/db_text/dbt_base.c
src/modules/db_text/dbt_lib.c

5 years agopresence: documentation for delete_subscription 914/head
lazedo [Wed, 18 Jan 2017 09:45:54 +0000 (09:45 +0000)]
presence: documentation for delete_subscription

5 years agokazoo: fix kz_amqp_get_zones 939/head
lazedo [Wed, 18 Jan 2017 09:33:55 +0000 (09:33 +0000)]
kazoo: fix kz_amqp_get_zones

5 years agokazoo: add msgid to hash logging
lazedo [Wed, 18 Jan 2017 09:31:08 +0000 (09:31 +0000)]
kazoo: add msgid to hash logging

5 years agoMerge pull request #937 from lbalaceanu/master
Lucian Balaceanu [Wed, 18 Jan 2017 09:08:56 +0000 (11:08 +0200)]
Merge pull request #937 from lbalaceanu/master

carrieroute: fix double free related to hash_index

5 years agocarrieroute: fix double free related to hash_index 937/head
Lucian Balaceanu [Wed, 18 Jan 2017 08:44:08 +0000 (10:44 +0200)]
carrieroute: fix double free related to hash_index

- set freed pointer to NULL to avoid double free

5 years agokamctl: catch one line jsonrpc result and just print it
Daniel-Constantin Mierla [Wed, 18 Jan 2017 08:19:53 +0000 (09:19 +0100)]
kamctl: catch one line jsonrpc result and just print it

- happening when json pretty printing is turned off
- filter_json() was breaking it by trying to format the output

5 years agoReuse PERLLDOPTS in db_perlvdb 934/head
Fabrice Fontaine [Tue, 17 Jan 2017 19:01:09 +0000 (20:01 +0100)]
Reuse PERLLDOPTS in db_perlvdb

PERLLDOPTS is already used in app_perl module.
Reuse this variable in db_perlvdb module instead of always setting LIBS
to (shell perl -MExtUtils::Embed -e ldopts)
Indeed, this will not work when cross-compiling (the value will be
retrieved for the host perl and not the target perl)

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
5 years agoMerge pull request #933 from ffontaine/master
Daniel-Constantin Mierla [Tue, 17 Jan 2017 16:19:19 +0000 (17:19 +0100)]
Merge pull request #933 from ffontaine/master

Add kpcre group

5 years agoAdd kpcre group 933/head
Fabrice Fontaine [Tue, 17 Jan 2017 15:35:09 +0000 (16:35 +0100)]
Add kpcre group

Create kpcre group

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
5 years agoMerge pull request #932 from ffontaine/master
Daniel-Constantin Mierla [Tue, 17 Jan 2017 15:28:38 +0000 (16:28 +0100)]
Merge pull request #932 from ffontaine/master

Add kmini group

5 years agotm: generate from tag if not provided for request_within()
Daniel-Constantin Mierla [Tue, 17 Jan 2017 10:54:57 +0000 (11:54 +0100)]
tm: generate from tag if not provided for request_within()

- related to GH #931

5 years agomodules: readme files regenerated - lcr ...
Kamailio Dev [Tue, 17 Jan 2017 09:31:29 +0000 (10:31 +0100)]
modules: readme files regenerated - lcr ...

5 years agolcr: fix documentation
Victor Seva [Tue, 17 Jan 2017 09:17:51 +0000 (10:17 +0100)]
lcr: fix documentation

'dont_strip_or_tag_flag' module parameter was renamed to
'dont_strip_or_prefix_flag' at 8c0501bfaa27acab9721953e8c1551687c96edf2.

5 years agoims_registrar_scscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 09:17:34 +0000 (10:17 +0100)]
ims_registrar_scscf: fix compiler warnings

* inline functions were ignored by the compiler

5 years agoims_icscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 08:58:41 +0000 (09:58 +0100)]
ims_icscf: fix compiler warnings

> In file included from cxdx_uar.c:50:0:
> cxdx_avp.h:274:12: warning: inline function 'cxdx_add_result_code' declared but never defined
>  inline int cxdx_add_result_code(AAAMessage *msg,unsigned int data);
>             ^~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:266:12: warning: inline function 'cxdx_get_user_name' declared but never defined
>  inline str cxdx_get_user_name(AAAMessage *msg);
>             ^~~~~~~~~~~~~~~~~~
> cxdx_avp.h:259:17: warning: inline function 'cxdx_get_next_public_identity' declared but never defined
>  inline AAA_AVP* cxdx_get_next_public_identity(AAAMessage *msg,AAA_AVP* pos,int avp_code,int vendor_id,const char *func);
>                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:248:12: warning: inline function 'cxdx_add_userdata_available' declared but never defined
>  inline int cxdx_add_userdata_available(AAAMessage *msg,unsigned int data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:240:12: warning: inline function 'cxdx_add_server_assignment_type' declared but never defined
>  inline int cxdx_add_server_assignment_type(AAAMessage *msg,unsigned int data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:232:12: warning: inline function 'cxdx_get_charging_info' declared but never defined
>  inline int cxdx_get_charging_info(AAAMessage *msg,str *ccf1,str *ccf2,str *ecf1,str *ecf2);
>             ^~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:225:12: warning: inline function 'cxdx_get_user_data' declared but never defined
>  inline str cxdx_get_user_data(AAAMessage *msg);
>             ^~~~~~~~~~~~~~~~~~
> cxdx_avp.h:184:12: warning: inline function 'cxdx_get_sip_number_auth_items' declared but never defined
>  inline int cxdx_get_sip_number_auth_items(AAAMessage *msg, int *data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:177:12: warning: inline function 'cxdx_add_server_name' declared but never defined
>  inline int cxdx_add_server_name(AAAMessage *msg,str data);
>             ^~~~~~~~~~~~~~~~~~~~
> In file included from cxdx_uar.c:50:0:
> cxdx_avp.h:169:12: warning: inline function 'cxdx_add_sip_auth_data_item_request' declared but never defined
>  inline int cxdx_add_sip_auth_data_item_request(AAAMessage *msg, str auth_scheme, str auth, str username, str realm,str method, str server_name);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:160:12: warning: inline function 'cxdx_add_sip_number_auth_items' declared but never defined
>  inline int cxdx_add_sip_number_auth_items(AAAMessage *msg,unsigned int data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:152:12: warning: inline function 'cxdx_get_capabilities' declared but never defined
>  inline int cxdx_get_capabilities(AAAMessage *msg,int **m,int *m_cnt,int **o,int *o_cnt, str **p,int *p_cnt);
>             ^~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:141:12: warning: inline function 'cxdx_get_server_name' declared but never defined
>  inline str cxdx_get_server_name(AAAMessage *msg);
>             ^~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:134:12: warning: inline function 'cxdx_get_experimental_result_code' declared but never defined
>  inline int cxdx_get_experimental_result_code(AAAMessage *msg, int *data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:127:12: warning: inline function 'cxdx_get_result_code' declared but never defined
>  inline int cxdx_get_result_code(AAAMessage *msg, int *data);
>             ^~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:120:12: warning: inline function 'cxdx_add_authorization_type' declared but never defined
>  inline int cxdx_add_authorization_type(AAAMessage *msg,unsigned int data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:112:12: warning: inline function 'cxdx_add_UAR_flags' declared but never defined
>  inline int cxdx_add_UAR_flags(AAAMessage *msg, unsigned int sos_reg);
>             ^~~~~~~~~~~~~~~~~~
> cxdx_avp.h:104:12: warning: inline function 'cxdx_add_visited_network_id' declared but never defined
>  inline int cxdx_add_visited_network_id(AAAMessage *msg,str data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:96:12: warning: inline function 'cxdx_add_public_identity' declared but never defined
>  inline int cxdx_add_public_identity(AAAMessage *msg,str data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:88:12: warning: inline function 'cxdx_add_user_name' declared but never defined
>  inline int cxdx_add_user_name(AAAMessage *msg,str data);
>             ^~~~~~~~~~~~~~~~~~
> cxdx_avp.h:80:12: warning: inline function 'cxdx_add_auth_session_state' declared but never defined
>  inline int cxdx_add_auth_session_state(AAAMessage *msg,unsigned int data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:72:12: warning: inline function 'cxdx_add_vendor_specific_appid' declared but never defined
>  inline int cxdx_add_vendor_specific_appid(AAAMessage *msg,unsigned int vendor_id,unsigned int auth_id,unsigned int acct_id);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cxdx_avp.h:62:12: warning: inline function 'cxdx_add_destination_realm' declared but never defined
>  inline int cxdx_add_destination_realm(AAAMessage *msg, str data);
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~

5 years agoims_icscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 08:53:40 +0000 (09:53 +0100)]
ims_icscf: fix compiler warnings

> In file included from registration.h:49:0,
>                  from mod.h:68,
>                  from cxdx_lir.c:51:
> scscf_list.h:141:13: warning: inline function 'i_unlock' declared but never defined
>  inline void i_unlock(unsigned int hash);
>              ^~~~~~~~
> scscf_list.h:140:13: warning: inline function 'i_lock' declared but never defined
>  inline void i_lock(unsigned int hash);
>              ^~~~~~
> scscf_list.h:139:21: warning: inline function 'get_call_id_hash' declared but never defined
>  inline unsigned int get_call_id_hash(str callid,int hash_size);
>                      ^~~~~~~~~~~~~~~~

5 years agoims_isc: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 08:40:24 +0000 (09:40 +0100)]
ims_isc: fix compiler warnings

* inline functions were not defined at mark.h
  so the compiler was ignoring the inline directive

> In file included from mod.c:49:0:
> mark.h:78:12: warning: inline function 'isc_mark_write_route' declared but never defined
>  inline int isc_mark_write_route(struct sip_msg *msg,str *as,str *iscmark);
>             ^~~~~~~~~~~~~~~~~~~~
> mark.h:76:12: warning: inline function 'isc_mark_drop_route' declared but never defined
>  inline int isc_mark_drop_route(struct sip_msg *msg);
>             ^~~~~~~~~~~~~~~~~~~
> CC (gcc) [M ims_isc.so] third_party_reg.o
> In file included from third_party_reg.h:52:0,
>                  from third_party_reg.c:46:
> mark.h:78:12: warning: inline function 'isc_mark_write_route' declared but never defined
>  inline int isc_mark_write_route(struct sip_msg *msg,str *as,str *iscmark);
>             ^~~~~~~~~~~~~~~~~~~~
> mark.h:76:12: warning: inline function 'isc_mark_drop_route' declared but never defined
>  inline int isc_mark_drop_route(struct sip_msg *msg);
>             ^~~~~~~~~~~~~~~~~~~
> CC (gcc) [M ims_isc.so] isc.o
> In file included from isc.h:54:0,
>                  from isc.c:47:
> mark.h:78:12: warning: inline function 'isc_mark_write_route' declared but never defined
>  inline int isc_mark_write_route(struct sip_msg *msg,str *as,str *iscmark);
>             ^~~~~~~~~~~~~~~~~~~~
> mark.h:76:12: warning: inline function 'isc_mark_drop_route' declared but never defined
>  inline int isc_mark_drop_route(struct sip_msg *msg);
>             ^~~~~~~~~~~~~~~~~~~

5 years agoims_usrloc_scscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 08:27:02 +0000 (09:27 +0100)]
ims_usrloc_scscf: fix compiler warnings

* inline bin_* functions where not defined at bin_utils.h
  so the compiler was ignoring the inline directive

5 years agoCDP: Fix linking issues
Carsten Bock [Tue, 17 Jan 2017 09:10:44 +0000 (10:10 +0100)]
CDP: Fix linking issues

5 years agocore: github issue template - sections for log messages and sip traffic
Daniel-Constantin Mierla [Mon, 16 Jan 2017 15:34:54 +0000 (16:34 +0100)]
core: github issue template - sections for log messages and sip traffic

5 years agocore: github issue template with more details regading operating system
Daniel-Constantin Mierla [Mon, 16 Jan 2017 15:24:11 +0000 (16:24 +0100)]
core: github issue template with more details regading operating system

5 years agocore: added github new issue template
Daniel-Constantin Mierla [Mon, 16 Jan 2017 15:17:53 +0000 (16:17 +0100)]
core: added github new issue template

5 years agoacc: deep cloning of the request for acc onreply event
Daniel-Constantin Mierla [Mon, 16 Jan 2017 14:17:22 +0000 (15:17 +0100)]
acc: deep cloning of the request for acc onreply event

- parsing additional headers were linked in tm request and could have
  been accessed by other processes, resulting in a segfault
- reported by Joshua Colp

5 years agotm: sanitizied sip msg cloner
Daniel-Constantin Mierla [Mon, 16 Jan 2017 13:46:11 +0000 (14:46 +0100)]
tm: sanitizied sip msg cloner

5 years agoims_registrar_scscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 10:18:01 +0000 (11:18 +0100)]
ims_registrar_scscf: fix compiler warnings

> registrar_notify.c:1528:43: warning: 'param_3gpp_icsi_ref' is static but used in inline function 'supported_param' which is not static
>      } else if (strncasecmp(param_name->s, param_3gpp_icsi_ref.s, param_name->len) == 0) {
>                                            ^~~~~~~~~~~~~~~~~~~
> registrar_notify.c:1526:43: warning: 'param_3gpp_smsip' is static but used in inline function 'supported_param' which is not static
>      } else if (strncasecmp(param_name->s, param_3gpp_smsip.s, param_name->len) == 0) {
>                                            ^~~~~~~~~~~~~~~~
> registrar_notify.c:1524:43: warning: 'param_sip_instance' is static but used in inline function 'supported_param' which is not static
>      } else if (strncasecmp(param_name->s, param_sip_instance.s, param_name->len) == 0) {
>                                            ^~~~~~~~~~~~~~~~~~
> registrar_notify.c:1522:43: warning: 'param_expires' is static but used in inline function 'supported_param' which is not static
>      } else if (strncasecmp(param_name->s, param_expires.s, param_name->len) == 0) {
>                                            ^~~~~~~~~~~~~
> registrar_notify.c:1520:43: warning: 'param_video' is static but used in inline function 'supported_param' which is not static
>      } else if (strncasecmp(param_name->s, param_video.s, param_name->len) == 0) {
>                                            ^~~~~~~~~~~
> registrar_notify.c:1518:36: warning: 'param_q' is static but used in inline function 'supported_param' which is not static
>      if (strncasecmp(param_name->s, param_q.s, param_name->len) == 0) {
>                                     ^~~~~~~

5 years agocdp: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 10:11:52 +0000 (11:11 +0100)]
cdp: fix compiler warnings

> receiver.c: In function 'send_fd':
> receiver.c:287:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>   *(int*)CMSG_DATA(cmsg)=fd;
>   ^
> receiver.c: In function 'receive_fd':
> receiver.c:385:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>    *fd=*((int*) CMSG_DATA(cmsg));
>    ^

5 years agocdp: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 09:47:54 +0000 (10:47 +0100)]
cdp: fix compiler warnings

> In file included from ../../core/mem/shm.h:39:0,
>                  from ../../core/mem/shm_mem.h:34,
>                  from utils.h:50,
>                  from diameter_peer.c:49:
> ../../core/mem/../lock_ops.h:88:28: warning: 'futex_release' is static but used in inline function 'dp_del_pid' which is not static
>  #define lock_release(lock) futex_release(lock)
>                             ^
> diameter_peer.c:141:2: note: in expansion of macro 'lock_release'
>   lock_release(pid_list_lock);
>   ^~~~~~~~~~~~
> ../../core/mem/../lock_ops.h:88:28: warning: 'futex_release' is static but used in inline function 'dp_del_pid' which is not static
>  #define lock_release(lock) futex_release(lock)
>                             ^
> diameter_peer.c:130:3: note: in expansion of macro 'lock_release'
>    lock_release(pid_list_lock);
>    ^~~~~~~~~~~~
> ../../core/mem/../lock_ops.h:87:25: warning: 'futex_get' is static but used in inline function 'dp_del_pid' which is not static
>  #define lock_get(lock)  futex_get(lock)
>                          ^
> diameter_peer.c:127:2: note: in expansion of macro 'lock_get'
>   lock_get(pid_list_lock);
>   ^~~~~~~~
> ../../core/mem/../lock_ops.h:88:28: warning: 'futex_release' is static but used in inline function 'dp_last_pid' which is not static
>  #define lock_release(lock) futex_release(lock)
>                             ^
> diameter_peer.c:116:2: note: in expansion of macro 'lock_release'
>   lock_release(pid_list_lock);
>   ^~~~~~~~~~~~
> ../../core/mem/../lock_ops.h:87:25: warning: 'futex_get' is static but used in inline function 'dp_last_pid' which is not static
>  #define lock_get(lock)  futex_get(lock)
>                          ^
> diameter_peer.c:113:2: note: in expansion of macro 'lock_get'
>   lock_get(pid_list_lock);
>   ^~~~~~~~
> ../../core/mem/../lock_ops.h:88:28: warning: 'futex_release' is static but used in inline function 'dp_add_pid' which is not static
>  #define lock_release(lock) futex_release(lock)
>                             ^
> diameter_peer.c:103:2: note: in expansion of macro 'lock_release'
>   lock_release(pid_list_lock);
>   ^~~~~~~~~~~~
> ../../core/mem/../lock_ops.h:88:28: warning: 'futex_release' is static but used in inline function 'dp_add_pid' which is not static
>  #define lock_release(lock) futex_release(lock)
>                             ^
> diameter_peer.c:94:3: note: in expansion of macro 'lock_release'
>    lock_release(pid_list_lock);
>    ^~~~~~~~~~~~
> ../../core/mem/../lock_ops.h:87:25: warning: 'futex_get' is static but used in inline function 'dp_add_pid' which is not static
>  #define lock_get(lock)  futex_get(lock)
>                          ^
> diameter_peer.c:90:2: note: in expansion of macro 'lock_get'
>   lock_get(pid_list_lock);
>   ^~~~~~~~

5 years agoims_registrar_pcscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 09:14:47 +0000 (10:14 +0100)]
ims_registrar_pcscf: fix compiler warnings

> ul_callback.c: In function 'send_partial_publish':
> ul_callback.c:258:5: warning: 'body' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   if (body) {
>      ^

5 years agoims_qos: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 09:11:44 +0000 (10:11 +0100)]
ims_qos: fix compiler warnings

> rx_avp.c:955:19: warning: 'port_rtcp_b.len' may be used uninitialized in this function [-Wmaybe-uninitialized]
>        len2 = (permit_in.len + from_s.len + to_s.len + 3 /*for 'any'*/ + ipB->len + 4 +
>                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          proto_len + port_rtcp_b.len + 1/*nul terminator*/) * sizeof(char);
>          ~~~~~~~~~~^~~~~~~~~~~~~~~~~
> rx_avp.c:1055:19: warning: 'port_rtcp_a.len' may be used uninitialized in this function [-Wmaybe-uninitialized]
>        len2 = (permit_in.len + from_s.len + to_s.len + 3 /*for 'any'*/ + ipA->len + 4 +
>                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          proto_len + port_rtcp_a.len + 1/*nul terminator*/) * sizeof(char);
>          ~~~~~~~~~~^~~~~~~~~~~~~~~~~

5 years agoims_icscf: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 09:06:29 +0000 (10:06 +0100)]
ims_icscf: fix compiler warnings

> cxdx_avp.c: In function 'cxdx_get_auth_data_item_answer':
> cxdx_avp.c:625:26: warning: comparison of constant '4' with boolean expression is always false [-Wbool-compare]
>   if (!avp||!avp->data.len==4) *item_number=0;
>                           ^~
> cxdx_avp.c:625:26: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]

5 years agoims_icscf: fix compiler warning
Victor Seva [Mon, 16 Jan 2017 08:48:30 +0000 (09:48 +0100)]
ims_icscf: fix compiler warning

> cxdx_lir.c: In function 'async_cdp_lir_callback':
> cxdx_lir.c:82:24: warning: unused variable 'ra_ctx' [-Wunused-variable]
>      struct run_act_ctx ra_ctx;
>                         ^~~~~~

5 years agoims_isc: fix compiler warnings
Victor Seva [Mon, 16 Jan 2017 08:37:52 +0000 (09:37 +0100)]
ims_isc: fix compiler warnings

> third_party_reg.c: In function 'r_send_third_party_reg':
> third_party_reg.c:349:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
>      if (r->path.len)
>      ^~
> third_party_reg.c:352:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
>   str pauri = {0,0};
>   ^~~