sip-router
5 years agopkg/kamailio/centos/7: mod kazoo enabled default build 1105/head
Sergey Safarov [Sat, 29 Apr 2017 15:19:51 +0000 (11:19 -0400)]
pkg/kamailio/centos/7: mod kazoo enabled default build

5 years agomodules: readme files regenerated - presence ... [skip ci]
Kamailio Dev [Sat, 29 Apr 2017 09:31:26 +0000 (11:31 +0200)]
modules: readme files regenerated - presence ... [skip ci]

5 years agopresence: more functions exported to kemi framework
Daniel-Constantin Mierla [Sat, 29 Apr 2017 09:25:51 +0000 (11:25 +0200)]
presence: more functions exported to kemi framework

5 years agopresence: documentation updates for pres_auth_status()
Daniel-Constantin Mierla [Sat, 29 Apr 2017 09:21:35 +0000 (11:21 +0200)]
presence: documentation updates for pres_auth_status()

5 years agopresence: use spve fixup for pres_auth_status()
Daniel-Constantin Mierla [Sat, 29 Apr 2017 09:07:46 +0000 (11:07 +0200)]
presence: use spve fixup for pres_auth_status()

- flexibility to provide static string values or variable parameters

5 years agotls: exported functions to kemi framework
Daniel-Constantin Mierla [Sat, 29 Apr 2017 06:33:34 +0000 (08:33 +0200)]
tls: exported functions to kemi framework

5 years agopua_usrloc: exported functions to kemi framework
Daniel-Constantin Mierla [Sat, 29 Apr 2017 06:33:07 +0000 (08:33 +0200)]
pua_usrloc: exported functions to kemi framework

5 years agopua: exported functions to kemi framework
Daniel-Constantin Mierla [Sat, 29 Apr 2017 06:32:21 +0000 (08:32 +0200)]
pua: exported functions to kemi framework

5 years agopresence_xml: exported functions to kemi framework
Daniel-Constantin Mierla [Sat, 29 Apr 2017 06:31:36 +0000 (08:31 +0200)]
presence_xml: exported functions to kemi framework

5 years agopresence: exported functions to kemi framework
Daniel-Constantin Mierla [Sat, 29 Apr 2017 06:31:15 +0000 (08:31 +0200)]
presence: exported functions to kemi framework

5 years agotopos: proper storing of b-side record routing
Daniel-Constantin Mierla [Fri, 28 Apr 2017 14:10:59 +0000 (16:10 +0200)]
topos: proper storing of b-side record routing

- special credits to Sergey Basov for troubleshooting

5 years agoutils: exported functions to kemi framework
Daniel-Constantin Mierla [Fri, 28 Apr 2017 09:20:17 +0000 (11:20 +0200)]
utils: exported functions to kemi framework

5 years agoutils: use spve fixup - more flexibility in allowing strings and variables
Daniel-Constantin Mierla [Fri, 28 Apr 2017 09:16:26 +0000 (11:16 +0200)]
utils: use spve fixup - more flexibility in allowing strings and variables

5 years agoxmlrpc: exported functions to kemi interface
Daniel-Constantin Mierla [Fri, 28 Apr 2017 08:55:50 +0000 (10:55 +0200)]
xmlrpc: exported functions to kemi interface

5 years agodb_cluster: free allocated structure at init time
Daniel-Constantin Mierla [Fri, 28 Apr 2017 07:35:41 +0000 (09:35 +0200)]
db_cluster: free allocated structure at init time

- avoid reopening driver db connections if already set

5 years agotls: add a level of libressl compatibility
Timo Teräs [Fri, 28 Apr 2017 07:06:01 +0000 (10:06 +0300)]
tls: add a level of libressl compatibility

libressl is the openbsd openssl fork that is getting more popular.
It defines OPENSSL_VERSION_NUMBER 0x20000000L and introduces a new
LIBRESSL_VERSION_NUMBER that reflects the true libressl version.

As openssl made major changes between 1.0.1 and 1.1.0, and libressl
being closer to 1.0.1 series, it needs to be specifically detected
in certain cases.

This commit updates the compat logic to implement missing api
functions as inline function where sensible needed in order to
minimize the #ifdef clutter and make the code more readable and
less prone to bugs.

5 years agohtable: close db connection in some error cases for rpc command
Daniel-Constantin Mierla [Fri, 28 Apr 2017 07:10:04 +0000 (09:10 +0200)]
htable: close db connection in some error cases for rpc command

5 years agoAdd and fix #includes for more strict POSIX compliance
Timo Teräs [Fri, 28 Apr 2017 06:58:50 +0000 (09:58 +0300)]
Add and fix #includes for more strict POSIX compliance

- sys/poll.h is non-standard, posix defines poll.h
- sys/time.h is needed in addition to time.h for e.g. struct timeval

Notable this fixes some build errors against musl libc

5 years agoMerge pull request #1101 from codyherzog/master
Daniel-Constantin Mierla [Fri, 28 Apr 2017 06:35:55 +0000 (08:35 +0200)]
Merge pull request #1101 from codyherzog/master

core: Don't terminate on harmless SIGCHLD.

5 years agoPackaging: Update Centos 7 Spec file
Carsten Bock [Fri, 28 Apr 2017 06:05:28 +0000 (08:05 +0200)]
Packaging: Update Centos 7 Spec file

5 years agocore: Don't terminate on harmless SIGCHLD. 1101/head
codyherzog [Thu, 27 Apr 2017 21:04:35 +0000 (14:04 -0700)]
core: Don't terminate on harmless SIGCHLD.

If it appears that no child process has stopped, then do not terminate
on SIGCHLD. Certain modules like app_python can run external scripts
which cause child processes to be started and stopped. That can result
in SIGCHLD being received even though there is no real problem.
Therefore, we do not terminate Kamailio unless we can find the child
process which has stopped.

5 years agoMerge pull request #1092 from sergey-safarov/spec_update8
Daniel-Constantin Mierla [Thu, 27 Apr 2017 21:02:35 +0000 (23:02 +0200)]
Merge pull request #1092 from sergey-safarov/spec_update8

pkg/kamailio/centos/7: Updated dependency lib name (librabbitmq)

5 years agousrloc: add more attributes to the result of ul.dump
shuntongzhang [Thu, 27 Apr 2017 20:55:52 +0000 (22:55 +0200)]
usrloc: add more attributes to the result of ul.dump

5 years agoimc: exported functions to kemi framework
Daniel-Constantin Mierla [Thu, 27 Apr 2017 19:43:33 +0000 (21:43 +0200)]
imc: exported functions to kemi framework

5 years agopkg/kamailio/deb: set LIBDIR for all rules
Victor Seva [Thu, 27 Apr 2017 17:05:35 +0000 (19:05 +0200)]
pkg/kamailio/deb: set LIBDIR for all rules

* default path to modules was wrong

Fix #1096

5 years agoexec: exported functions to kemi framework
Daniel-Constantin Mierla [Thu, 27 Apr 2017 06:26:54 +0000 (08:26 +0200)]
exec: exported functions to kemi framework

5 years agomodules: readme files regenerated - http_async_client ... [skip ci]
Kamailio Dev [Wed, 26 Apr 2017 20:46:22 +0000 (22:46 +0200)]
modules: readme files regenerated - http_async_client ... [skip ci]

5 years agohttp_async_client: doc review (request body setting)
Giacomo Vacca [Wed, 26 Apr 2017 20:35:58 +0000 (22:35 +0200)]
http_async_client: doc review (request body setting)

5 years agomodules: readme files regenerated - http_async_client ... [skip ci]
Kamailio Dev [Wed, 26 Apr 2017 20:16:22 +0000 (22:16 +0200)]
modules: readme files regenerated - http_async_client ... [skip ci]

5 years agohttp_async_client: doc review (payload setting)
Giacomo Vacca [Wed, 26 Apr 2017 20:12:43 +0000 (22:12 +0200)]
http_async_client: doc review (payload setting)

5 years agomodules: readme files regenerated - http_async_client ... [skip ci]
Kamailio Dev [Wed, 26 Apr 2017 08:01:27 +0000 (10:01 +0200)]
modules: readme files regenerated - http_async_client ... [skip ci]

5 years agoMerge pull request #1093 from kamailio/giavac/http_async_client_doc
Giacomo Vacca [Wed, 26 Apr 2017 07:47:17 +0000 (09:47 +0200)]
Merge pull request #1093 from kamailio/giavac/http_async_client_doc

http_async_client: doc review (old functions)

5 years agoenum: exported functions to kemi framework
Daniel-Constantin Mierla [Wed, 26 Apr 2017 05:53:18 +0000 (07:53 +0200)]
enum: exported functions to kemi framework

5 years agodiversion: fixed kemi parameter for add diversion with uri
Daniel-Constantin Mierla [Wed, 26 Apr 2017 05:52:54 +0000 (07:52 +0200)]
diversion: fixed kemi parameter for add diversion with uri

5 years agomodules: readme files regenerated - enum ... [skip ci]
Kamailio Dev [Wed, 26 Apr 2017 05:31:49 +0000 (07:31 +0200)]
modules: readme files regenerated - enum ... [skip ci]

5 years agoenum: updated docs about parameters of the functions
Daniel-Constantin Mierla [Wed, 26 Apr 2017 05:22:29 +0000 (07:22 +0200)]
enum: updated docs about parameters of the functions

5 years agoenum: use spve fixup to allow variables or static strings in functions
Daniel-Constantin Mierla [Wed, 26 Apr 2017 05:16:03 +0000 (07:16 +0200)]
enum: use spve fixup to allow variables or static strings in functions

5 years agodomain: exported functions to kemi framework
Daniel-Constantin Mierla [Wed, 26 Apr 2017 05:15:25 +0000 (07:15 +0200)]
domain: exported functions to kemi framework

5 years agocore: added helper function to free spve fixup parameters
Daniel-Constantin Mierla [Tue, 25 Apr 2017 20:08:48 +0000 (22:08 +0200)]
core: added helper function to free spve fixup parameters

5 years agoenum: coherent indentation and whitespacing using clang format
Daniel-Constantin Mierla [Tue, 25 Apr 2017 20:04:08 +0000 (22:04 +0200)]
enum: coherent indentation and whitespacing using clang format

5 years agohttp_async_client: doc review (old functions) 1093/head
Giacomo Vacca [Tue, 25 Apr 2017 20:36:14 +0000 (22:36 +0200)]
http_async_client: doc review (old functions)

5 years agomodules: readme files regenerated - domain ... [skip ci]
Kamailio Dev [Tue, 25 Apr 2017 16:31:21 +0000 (18:31 +0200)]
modules: readme files regenerated - domain ... [skip ci]

5 years agodomain: coheren indentation and whitespacing
Daniel-Constantin Mierla [Tue, 25 Apr 2017 16:17:56 +0000 (18:17 +0200)]
domain: coheren indentation and whitespacing

- formatted to clang-format specs

5 years agodomain: clarifications about string parameters in the docs
Daniel-Constantin Mierla [Tue, 25 Apr 2017 16:12:36 +0000 (18:12 +0200)]
domain: clarifications about string parameters in the docs

5 years agodomain: added section ids for parameters and functions in docs
Daniel-Constantin Mierla [Tue, 25 Apr 2017 16:07:19 +0000 (18:07 +0200)]
domain: added section ids for parameters and functions in docs

5 years agodomain: use core fixup helper functions for string parameters
Daniel-Constantin Mierla [Tue, 25 Apr 2017 16:02:25 +0000 (18:02 +0200)]
domain: use core fixup helper functions for string parameters

- simplifies getting the values and it is more flexible allowing static
  strings as well

5 years agodiversion: fixed name of cfg wrapper function
Daniel-Constantin Mierla [Tue, 25 Apr 2017 15:40:13 +0000 (17:40 +0200)]
diversion: fixed name of cfg wrapper function

5 years agodiversion: exported functions to kemi framework
Daniel-Constantin Mierla [Tue, 25 Apr 2017 14:34:57 +0000 (16:34 +0200)]
diversion: exported functions to kemi framework

5 years agocore: kemi - handle the case when a module is reloaded with different flags
Daniel-Constantin Mierla [Tue, 25 Apr 2017 13:36:48 +0000 (15:36 +0200)]
core: kemi - handle the case when a module is reloaded with different flags

- avoid having same module exported twice

5 years agomisc/examples: flags defines stored in a table
Daniel-Constantin Mierla [Tue, 25 Apr 2017 09:22:29 +0000 (11:22 +0200)]
misc/examples: flags defines stored in a table

5 years agomisc/examples: fixed flags names for sqlang example
Daniel-Constantin Mierla [Tue, 25 Apr 2017 09:17:21 +0000 (11:17 +0200)]
misc/examples: fixed flags names for sqlang example

5 years agomisc/examples: fixed condition to check method UPDATE
Daniel-Constantin Mierla [Tue, 25 Apr 2017 08:42:28 +0000 (10:42 +0200)]
misc/examples: fixed condition to check method UPDATE

5 years agomisc/examples: updated comment in sqlang script
Daniel-Constantin Mierla [Tue, 25 Apr 2017 07:45:16 +0000 (09:45 +0200)]
misc/examples: updated comment in sqlang script

5 years agomodules: readme files regenerated - ndb_redis ... [skip ci]
Kamailio Dev [Mon, 24 Apr 2017 19:16:20 +0000 (21:16 +0200)]
modules: readme files regenerated - ndb_redis ... [skip ci]

5 years agondb_redis: fixed comparing unix socket buffer variable in error cases
Daniel-Constantin Mierla [Mon, 24 Apr 2017 19:07:26 +0000 (21:07 +0200)]
ndb_redis: fixed comparing unix socket buffer variable in error cases

5 years agondb_redis: add pipeline suppport for REDIS commands
Claudiu Boriga [Mon, 24 Apr 2017 19:02:10 +0000 (21:02 +0200)]
ndb_redis: add pipeline suppport for REDIS commands

5 years agoapp_sqlang: use only function name in the exports table
Daniel-Constantin Mierla [Mon, 24 Apr 2017 18:55:10 +0000 (20:55 +0200)]
app_sqlang: use only function name in the exports table

5 years agocore: print error messages when exceeding max size for kemi modules
Daniel-Constantin Mierla [Mon, 24 Apr 2017 18:53:51 +0000 (20:53 +0200)]
core: print error messages when exceeding max size for kemi modules

5 years agoapp_sqlang: link against libstdc++
Daniel-Constantin Mierla [Mon, 24 Apr 2017 14:51:30 +0000 (16:51 +0200)]
app_sqlang: link against libstdc++

- fix on linux for undefined symbol: __cxa_pure_virtual

5 years agomisc/examples: more complex example of using sqlang kemi interpreter
Daniel-Constantin Mierla [Mon, 24 Apr 2017 14:36:27 +0000 (16:36 +0200)]
misc/examples: more complex example of using sqlang kemi interpreter

5 years agoacc: exported functions to kemi framework
Daniel-Constantin Mierla [Mon, 24 Apr 2017 13:37:58 +0000 (15:37 +0200)]
acc: exported functions to kemi framework

5 years agoapp_sqlang: fixed compile warnings about unused code
Daniel-Constantin Mierla [Mon, 24 Apr 2017 13:00:30 +0000 (15:00 +0200)]
app_sqlang: fixed compile warnings about unused code

5 years agomodules: readme files regenerated - ndb_redis ... [skip ci]
Kamailio Dev [Mon, 24 Apr 2017 12:31:32 +0000 (14:31 +0200)]
modules: readme files regenerated - ndb_redis ... [skip ci]

5 years agoFix ndb_redis Cluster implementation
Carsten Bock [Mon, 24 Apr 2017 12:23:47 +0000 (14:23 +0200)]
Fix ndb_redis Cluster implementation

5 years agoMerge pull request #1078 from lbalaceanu/replace_db_text_delim
Lucian Balaceanu [Mon, 24 Apr 2017 11:07:59 +0000 (14:07 +0300)]
Merge pull request #1078 from lbalaceanu/replace_db_text_delim

db_text: introduce db_delim parameter

5 years agodb_text: add db_delim parameter 1078/head
Lucian Balaceanu [Wed, 19 Apr 2017 10:34:37 +0000 (13:34 +0300)]
db_text: add db_delim parameter

- make the delimiter between fields in th db_text file configurable;
  useful when one would need to escape a lot of appearances of the
  default delimiter (';' in IPv6 addresses).

5 years agocore: script callbacks api - updated log messages
Daniel-Constantin Mierla [Sat, 22 Apr 2017 16:21:44 +0000 (18:21 +0200)]
core: script callbacks api - updated log messages

5 years agopkg/kamailio/centos/7: Updated dependency lib name (librabbitmq) 1092/head
Sergey Safarov [Sun, 23 Apr 2017 04:29:16 +0000 (00:29 -0400)]
pkg/kamailio/centos/7: Updated dependency lib name (librabbitmq)

5 years agoMerge pull request #1054 from jchavanton/dmq_usrloc_multi_sync
Charles Chance [Fri, 21 Apr 2017 21:51:35 +0000 (22:51 +0100)]
Merge pull request #1054 from jchavanton/dmq_usrloc_multi_sync

dmq_usrloc: sync with multi contacts per message

5 years agotopos: free empty db results
Daniel-Constantin Mierla [Fri, 21 Apr 2017 20:17:12 +0000 (22:17 +0200)]
topos: free empty db results

- root structure and column names are allocated and lead to leak
- reported by Sergey Basov

5 years ago.gitignore: more types of tag files added to ignored list
Daniel-Constantin Mierla [Fri, 21 Apr 2017 19:46:23 +0000 (21:46 +0200)]
.gitignore: more types of tag files added to ignored list

5 years agodialog: more safety checks to detect if dialog is gone after event route execution
Daniel-Constantin Mierla [Fri, 21 Apr 2017 19:39:22 +0000 (21:39 +0200)]
dialog: more safety checks to detect if dialog is gone after event route execution

- avoid execution of script callbacks for event route
- related to GH #1059 and #1069

5 years agodialog: execute pre script callback only when event route is set
Daniel-Constantin Mierla [Fri, 21 Apr 2017 17:59:38 +0000 (19:59 +0200)]
dialog: execute pre script callback only when event route is set

5 years agoipops: removed unused variables from ragel generated files
Daniel-Constantin Mierla [Fri, 21 Apr 2017 17:03:04 +0000 (19:03 +0200)]
ipops: removed unused variables from ragel generated files

- GH #1074

5 years agodb_oracle: fix raw sql queries
Ovidiu Sas [Fri, 21 Apr 2017 16:34:01 +0000 (12:34 -0400)]
db_oracle: fix raw sql queries

5 years agosqlops: free the result only if there is a result
Ovidiu Sas [Fri, 21 Apr 2017 15:59:42 +0000 (11:59 -0400)]
sqlops: free the result only if there is a result

5 years agotopos: free temporary sip msg structure when handling 100 replies
Daniel-Constantin Mierla [Fri, 21 Apr 2017 14:09:06 +0000 (16:09 +0200)]
topos: free temporary sip msg structure when handling 100 replies

- it can lead to memory leak, reported by Sergey Basov

5 years agomodules: readme files regenerated - drouting ... [skip ci]
Kamailio Dev [Fri, 21 Apr 2017 10:01:32 +0000 (12:01 +0200)]
modules: readme files regenerated - drouting ... [skip ci]

5 years agodrouting: use keepalive to monitor GW/destinations
Guillaume Bour [Fri, 21 Apr 2017 09:55:55 +0000 (11:55 +0200)]
drouting: use keepalive to monitor GW/destinations

- it works for sort_order 0 only

5 years agoMakefile.groups: added app_sqlang to group extra
Daniel-Constantin Mierla [Thu, 20 Apr 2017 18:06:33 +0000 (20:06 +0200)]
Makefile.groups: added app_sqlang to group extra

5 years agoapp_sqlang: implemented KSR.x.exit() using context field
Daniel-Constantin Mierla [Thu, 20 Apr 2017 18:01:46 +0000 (20:01 +0200)]
app_sqlang: implemented KSR.x.exit() using context field

5 years agomodules: readme files regenerated - app_jsdt ... [skip ci]
Kamailio Dev [Thu, 20 Apr 2017 17:01:20 +0000 (19:01 +0200)]
modules: readme files regenerated - app_jsdt ... [skip ci]

5 years agoapp_jsdt: documented app_jsdt.api_list rpc command
Daniel-Constantin Mierla [Thu, 20 Apr 2017 16:51:49 +0000 (18:51 +0200)]
app_jsdt: documented app_jsdt.api_list rpc command

5 years agoapp_sqlang: add -fPIC to compile options of squirrel libs
Daniel-Constantin Mierla [Thu, 20 Apr 2017 16:44:11 +0000 (18:44 +0200)]
app_sqlang: add -fPIC to compile options of squirrel libs

5 years agoMerge pull request #1081 from sergey-vb/topos-fix-02
Daniel-Constantin Mierla [Thu, 20 Apr 2017 11:36:12 +0000 (13:36 +0200)]
Merge pull request #1081 from sergey-vb/topos-fix-02

topos: fix incorrect contact in 183 and 200 OK responces

5 years agotopos: fix incorrect contact in 183 and 200 OK responces 1081/head
sergey-vb [Thu, 20 Apr 2017 11:11:15 +0000 (14:11 +0300)]
topos: fix incorrect contact in 183 and 200 OK responces

When using topos, Kamailio does not set correct contact in 183 progres and 200 OK.
But for INVITE and Bye contacts are correct.

This modification seems fix it.

5 years agocarrierroute: fix in check if conf file writable
Lucian Balaceanu [Thu, 20 Apr 2017 10:59:23 +0000 (13:59 +0300)]
carrierroute: fix in check if conf file writable

5 years agoapp_sqlang: new module offering a Kemi interpreter for Squirrel language
Daniel-Constantin Mierla [Thu, 20 Apr 2017 06:20:48 +0000 (08:20 +0200)]
app_sqlang: new module offering a Kemi interpreter for Squirrel language

- squirrel language engine is embedded to avoid external dependencies
- squirrel is a small scripting language targeting embedded usage,
  compiling the scripts in memory
- the module can reload the script at runtime via rpc command

5 years agoMakefile.rules: make clean rules removes static libs from modules
Daniel-Constantin Mierla [Thu, 20 Apr 2017 05:54:11 +0000 (07:54 +0200)]
Makefile.rules: make clean rules removes static libs from modules

5 years agogitignore: skip static lib files (*.a)
Daniel-Constantin Mierla [Wed, 19 Apr 2017 15:42:38 +0000 (17:42 +0200)]
gitignore: skip static lib files (*.a)

5 years agoxhttp: added section for event route in the docs
Daniel-Constantin Mierla [Wed, 19 Apr 2017 07:30:46 +0000 (09:30 +0200)]
xhttp: added section for event route in the docs

5 years agomodules: readme files regenerated - rtpproxy ... [skip ci]
Kamailio Dev [Wed, 19 Apr 2017 06:16:41 +0000 (08:16 +0200)]
modules: readme files regenerated - rtpproxy ... [skip ci]

5 years agoMerge pull request #1076 from mslehto/deadcode
Daniel-Constantin Mierla [Wed, 19 Apr 2017 06:07:30 +0000 (08:07 +0200)]
Merge pull request #1076 from mslehto/deadcode

core: dead code and ser string removal

5 years agortpproxy: fix docs for rtpproxy_stop_stream2uas()
Daniel-Constantin Mierla [Wed, 19 Apr 2017 06:04:27 +0000 (08:04 +0200)]
rtpproxy: fix docs for rtpproxy_stop_stream2uas()

- it has no parameters

5 years agomodules: readme files regenerated - acc ... [skip ci]
Kamailio Dev [Tue, 18 Apr 2017 20:01:19 +0000 (22:01 +0200)]
modules: readme files regenerated - acc ... [skip ci]

5 years agomodules/acc: add log_level names to examples
Mikko Lehto [Tue, 18 Apr 2017 19:49:48 +0000 (21:49 +0200)]
modules/acc: add log_level names to examples

5 years agomodules/acc: fix documentation typos
Mikko Lehto [Tue, 18 Apr 2017 19:51:33 +0000 (21:51 +0200)]
modules/acc: fix documentation typos

5 years agocore: remove dead code 1076/head
Mikko Lehto [Tue, 18 Apr 2017 17:36:54 +0000 (20:36 +0300)]
core: remove dead code

5 years agoapp_jsdt: updated embedded duktape js interpreter from 2.0.0 to 2.0.2
Daniel-Constantin Mierla [Tue, 18 Apr 2017 16:54:25 +0000 (18:54 +0200)]
app_jsdt: updated embedded duktape js interpreter from 2.0.0 to 2.0.2

5 years agoMerge pull request #1063 from grumvalski/t_continue_crash
Daniel-Constantin Mierla [Tue, 18 Apr 2017 16:48:01 +0000 (18:48 +0200)]
Merge pull request #1063 from grumvalski/t_continue_crash

tm: don't reset uac reply if in a continue route