sip-router
5 years agomtree Make table name in source code the default as documented in the README
Olle E. Johansson [Thu, 21 Apr 2016 20:27:36 +0000 (22:27 +0200)]
mtree Make table name in source code the default as documented in the README

5 years agoauth_db Add note about version number synchronization with uri_db
Olle E. Johansson [Thu, 21 Apr 2016 20:13:50 +0000 (22:13 +0200)]
auth_db Add note about version number synchronization with uri_db

5 years agouri_db Change the table version to synch with auth_db
Olle E. Johansson [Thu, 21 Apr 2016 20:11:08 +0000 (22:11 +0200)]
uri_db Change the table version to synch with auth_db

5 years agouri_db Refers to wrong version of subscriber table, fix error message
Olle E. Johansson [Thu, 21 Apr 2016 20:01:01 +0000 (22:01 +0200)]
uri_db Refers to wrong version of subscriber table, fix error message

5 years agosca Improve error message
Olle E. Johansson [Thu, 21 Apr 2016 19:55:16 +0000 (21:55 +0200)]
sca Improve error message

5 years agosca Add doxygen header, add new lines to end of error/debug messages
Olle E. Johansson [Thu, 21 Apr 2016 19:38:38 +0000 (21:38 +0200)]
sca Add doxygen header, add new lines to end of error/debug messages

This needs to be fixed in all files, not just the main one.

5 years agojansson Update jansson_get doc with return values that was hidden in the source code
Olle E. Johansson [Thu, 21 Apr 2016 16:19:03 +0000 (18:19 +0200)]
jansson Update jansson_get doc with return values that was hidden in the source code

5 years agoapp_python: kemi handler extensions for 3 and 4 parameters
Daniel-Constantin Mierla [Thu, 21 Apr 2016 13:42:03 +0000 (15:42 +0200)]
app_python: kemi handler extensions for 3 and 4 parameters

5 years agoapp_lua: extended kemi handler to deal with str-str-int-int params
Daniel-Constantin Mierla [Thu, 21 Apr 2016 13:41:25 +0000 (15:41 +0200)]
app_lua: extended kemi handler to deal with str-str-int-int params

5 years agocore: kemi - prototype for embedded functions with str-str-int-int params
Daniel-Constantin Mierla [Thu, 21 Apr 2016 13:37:52 +0000 (15:37 +0200)]
core: kemi - prototype for embedded functions with str-str-int-int params

5 years agoauth: exported some functions to kemi
Daniel-Constantin Mierla [Thu, 21 Apr 2016 13:09:07 +0000 (15:09 +0200)]
auth: exported some functions to kemi

- consume_credentials()
- auth_challenge(...)
- pv_auth_check(...)

5 years agoapp_lua: update existing code for changes inside auth module
Daniel-Constantin Mierla [Thu, 21 Apr 2016 12:57:27 +0000 (14:57 +0200)]
app_lua: update existing code for changes inside auth module

5 years agoauth: restructuring of code for auth_challenge()
Daniel-Constantin Mierla [Thu, 21 Apr 2016 12:56:56 +0000 (14:56 +0200)]
auth: restructuring of code for auth_challenge()

- split code specific for config and internal API

5 years agoauth: split pv_auth_check() to in wrapper for config ops and common function
Daniel-Constantin Mierla [Thu, 21 Apr 2016 12:41:16 +0000 (14:41 +0200)]
auth: split pv_auth_check() to in wrapper for config ops  and common function

5 years agoauth: coherent indentation and white spacing
Daniel-Constantin Mierla [Thu, 21 Apr 2016 11:25:33 +0000 (13:25 +0200)]
auth: coherent indentation and white spacing

5 years agoregistrar clarification on "domain" in ulc - it's the name of the table used for...
Olle E. Johansson [Thu, 21 Apr 2016 08:58:14 +0000 (10:58 +0200)]
registrar clarification on "domain" in ulc - it's the name of the table used for storing, not the domain in the uri

5 years agocore: kemi - exported more of the functions from core
Daniel-Constantin Mierla [Wed, 20 Apr 2016 22:03:45 +0000 (00:03 +0200)]
core: kemi - exported more of the functions from core

5 years agoapp_python: handle the exported functions that return bool
Daniel-Constantin Mierla [Wed, 20 Apr 2016 15:04:36 +0000 (17:04 +0200)]
app_python: handle the exported functions that return bool

5 years agoapp_lua: use define SR_KEMI_FALSE instead of 0 for bool return decision
Daniel-Constantin Mierla [Wed, 20 Apr 2016 15:03:59 +0000 (17:03 +0200)]
app_lua: use define SR_KEMI_FALSE instead of 0 for bool return decision

5 years agocore: kemi - exported is_myself()
Daniel-Constantin Mierla [Wed, 20 Apr 2016 14:58:09 +0000 (16:58 +0200)]
core: kemi - exported is_myself()

5 years agoMakefile.defs: version set to 5.0.0-dev3
Daniel-Constantin Mierla [Wed, 20 Apr 2016 10:04:46 +0000 (12:04 +0200)]
Makefile.defs: version set to 5.0.0-dev3

5 years agoMakefile.defs: detect kfreebsd OS and set its default compile flags
Daniel-Constantin Mierla [Wed, 20 Apr 2016 10:02:09 +0000 (12:02 +0200)]
Makefile.defs: detect kfreebsd OS and set its default compile flags

- combine the options of Linux with FreeBSD to use kqueue if available
- reported by Victor Seva, GH #576

5 years agocore: remove ending parenthesis in ifdef condition
Daniel-Constantin Mierla [Wed, 20 Apr 2016 09:59:25 +0000 (11:59 +0200)]
core: remove ending parenthesis in ifdef condition

warning: ISO C99 requires whitespace after the macro name
sched_yield.h:34:20: warning: extra tokens at end of #ifndef directive
 #ifndef sched_yield()

- reported by Victore Seva, GH #576

5 years agoerlang: fix parsing function params
Seudin Kasumovic [Wed, 20 Apr 2016 09:36:40 +0000 (11:36 +0200)]
erlang: fix parsing function params

- remove double parsing function params
- free memory used in parsing params

5 years agoerlang: fix memory leak in debug macro
Seudin Kasumovic [Wed, 20 Apr 2016 09:10:39 +0000 (11:10 +0200)]
erlang: fix memory leak in debug macro

- free temporary used encoding buffer

5 years agoerlang: fix uninitialized member variable
Seudin Kasumovic [Mon, 18 Apr 2016 09:30:23 +0000 (11:30 +0200)]
erlang: fix uninitialized member variable

- avoid conditional jump on uninitialized value

5 years agodialog Update README, add section IDs for parameters and functions, fix a few typos
Olle E. Johansson [Tue, 19 Apr 2016 20:18:35 +0000 (22:18 +0200)]
dialog Update README, add section IDs for parameters and functions, fix a few typos

5 years agodialog Update README with explanation of in-dialog request behaviour
Olle E. Johansson [Tue, 19 Apr 2016 19:24:31 +0000 (21:24 +0200)]
dialog Update README with explanation of in-dialog request behaviour

5 years agocore: kemi - implemented embedded sub-module hdr
Daniel-Constantin Mierla [Tue, 19 Apr 2016 19:12:16 +0000 (21:12 +0200)]
core: kemi - implemented embedded sub-module hdr

5 years agoapp_python: exported special sub-module KSR.pv
Daniel-Constantin Mierla [Tue, 19 Apr 2016 17:44:05 +0000 (19:44 +0200)]
app_python: exported special sub-module KSR.pv

- pv.get() can return int or string, not following the pattern
  from kemi generic function interface

5 years agoapp_lua: exported special sub-module KSR.pv
Daniel-Constantin Mierla [Tue, 19 Apr 2016 17:41:29 +0000 (19:41 +0200)]
app_lua: exported special sub-module KSR.pv

- pv.get() can return int or string, not following the pattern from kemi
  generic function interface

5 years agoapp_python: avoid aquiring python eval lock for nested route blocks
Daniel-Constantin Mierla [Tue, 19 Apr 2016 12:59:52 +0000 (14:59 +0200)]
app_python: avoid aquiring python eval lock for nested route blocks

5 years agoapp_python: proper implementation of reading the parameters
Daniel-Constantin Mierla [Tue, 19 Apr 2016 12:35:03 +0000 (14:35 +0200)]
app_python: proper implementation of reading the parameters

- parameters passed from python can be only read all at once

5 years agopython: use rewrite_uri() instead of core action for updating r-uri
Daniel-Constantin Mierla [Tue, 19 Apr 2016 12:34:10 +0000 (14:34 +0200)]
python: use rewrite_uri() instead of core action for updating r-uri

5 years agoapp_python: implementation of kemi interpreter for python
Daniel-Constantin Mierla [Tue, 19 Apr 2016 11:10:34 +0000 (13:10 +0200)]
app_python: implementation of kemi interpreter for python

5 years agodialog Document shortest ka_interval
Olle E. Johansson [Tue, 19 Apr 2016 12:11:33 +0000 (14:11 +0200)]
dialog Document shortest ka_interval

5 years agohtable: refreshed the readme file
Daniel-Constantin Mierla [Tue, 19 Apr 2016 08:41:02 +0000 (10:41 +0200)]
htable: refreshed the readme file

5 years agohtable: coherent indentation and whitespacing
Daniel-Constantin Mierla [Tue, 19 Apr 2016 08:40:20 +0000 (10:40 +0200)]
htable: coherent indentation and whitespacing

5 years agohtable: updated the list of exported variables
Daniel-Constantin Mierla [Tue, 19 Apr 2016 08:39:55 +0000 (10:39 +0200)]
htable: updated the list of exported variables

5 years agoapp_python: added script to generate the files for static exports table
Daniel-Constantin Mierla [Tue, 19 Apr 2016 07:20:03 +0000 (09:20 +0200)]
app_python: added script to generate the files for static exports table

5 years agoapp_python: added the file to store the static exports table
Daniel-Constantin Mierla [Tue, 19 Apr 2016 07:18:31 +0000 (09:18 +0200)]
app_python: added the file to store the static exports table

- kamailio functions will be associated with entries from exports table,
  being looked up by index

5 years agoapp_python: rework to use a static exports table
Daniel-Constantin Mierla [Tue, 19 Apr 2016 07:17:06 +0000 (09:17 +0200)]
app_python: rework to use a static exports table

- not possible to set the object index function

5 years agocore: kemi - renamed reminiscent lua functions
Daniel-Constantin Mierla [Mon, 18 Apr 2016 22:32:28 +0000 (00:32 +0200)]
core: kemi - renamed reminiscent lua functions

5 years agoMerge pull request #573 from adubovikov/master
Alexandr Dubovikov [Mon, 18 Apr 2016 16:33:12 +0000 (18:33 +0200)]
Merge pull request #573 from adubovikov/master

modules/sipcapture: removed wrong character

5 years agomodules/sipcapture: removed wrong character 573/head
Alexandr Dubovikov [Mon, 18 Apr 2016 16:30:33 +0000 (18:30 +0200)]
modules/sipcapture: removed wrong character

5 years agoapp_python: the initial foundation to use Python for kemi config interpreter
Daniel-Constantin Mierla [Mon, 18 Apr 2016 15:23:11 +0000 (17:23 +0200)]
app_python: the initial foundation to use Python for kemi config interpreter

- to allow writing kamailio routing logic in Python

5 years agocore: condition to stop looking up exported functions by name
Daniel-Constantin Mierla [Mon, 18 Apr 2016 15:22:31 +0000 (17:22 +0200)]
core: condition to stop looking up exported functions by name

5 years agoapp_python: declaration of global vars moved in c files
Daniel-Constantin Mierla [Mon, 18 Apr 2016 13:24:34 +0000 (15:24 +0200)]
app_python: declaration of global vars moved in c files

- declared as extern in h files
- prefixed the names to avoid eventual conflicts when using common words
  for var names

5 years agoapp_python: register the module as a kemi config interpreter
Daniel-Constantin Mierla [Mon, 18 Apr 2016 13:05:22 +0000 (15:05 +0200)]
app_python: register the module as a kemi config interpreter

5 years agoapp_python: function to allow optional execution of python method
Daniel-Constantin Mierla [Mon, 18 Apr 2016 12:55:02 +0000 (14:55 +0200)]
app_python: function to allow optional execution of python method

5 years agoMerge pull request #572 from adubovikov/master
Alexandr Dubovikov [Mon, 18 Apr 2016 15:19:27 +0000 (17:19 +0200)]
Merge pull request #572 from adubovikov/master

modules/sipcapture fixed rtpinfo report for SNOM

5 years agomodules/sipcapture fixed rtpinfo report for SNOM 572/head
Alexandr Dubovikov [Mon, 18 Apr 2016 15:18:57 +0000 (17:18 +0200)]
modules/sipcapture fixed rtpinfo report for SNOM

5 years agoMerge pull request #571 from adubovikov/master
Alexandr Dubovikov [Mon, 18 Apr 2016 12:50:06 +0000 (14:50 +0200)]
Merge pull request #571 from adubovikov/master

module/sipcapture fixed type for rtpagent report

5 years agofixed type for rtpagent report 571/head
Alexandr Dubovikov [Mon, 18 Apr 2016 12:49:14 +0000 (14:49 +0200)]
fixed type for rtpagent report

5 years agoapp_python: updated include of app_python_mod.h
Daniel-Constantin Mierla [Mon, 18 Apr 2016 12:16:50 +0000 (14:16 +0200)]
app_python: updated include of app_python_mod.h

5 years agoapp_python: renamed main files to match module name
Daniel-Constantin Mierla [Mon, 18 Apr 2016 12:13:03 +0000 (14:13 +0200)]
app_python: renamed main files to match module name

5 years agohttp_client Add note about DNS in todo list
Olle E. Johansson [Mon, 18 Apr 2016 12:06:23 +0000 (14:06 +0200)]
http_client Add note about DNS in todo list

5 years agohttp_client Clarify DNS resolver use for CURL
Olle E. Johansson [Mon, 18 Apr 2016 11:43:15 +0000 (13:43 +0200)]
http_client Clarify DNS resolver use for CURL

5 years agoapp_python: fix of buf memory allocation size for chars
Daniel-Constantin Mierla [Mon, 18 Apr 2016 10:52:25 +0000 (12:52 +0200)]
app_python: fix of buf memory allocation size for chars

5 years agoapp_python: coherent indetation and whitespacing
Daniel-Constantin Mierla [Mon, 18 Apr 2016 10:35:36 +0000 (12:35 +0200)]
app_python: coherent indetation and whitespacing

5 years agoregistrar Fix typo in README
Olle E. Johansson [Fri, 15 Apr 2016 20:50:42 +0000 (22:50 +0200)]
registrar Fix typo in README

5 years agopua_xmpp Remove svn IDs and history
Olle E. Johansson [Fri, 15 Apr 2016 19:39:31 +0000 (21:39 +0200)]
pua_xmpp Remove svn IDs and history

5 years agoMerge pull request #568 from linuxmaniac/vseva/fix_516
Victor Seva [Fri, 15 Apr 2016 07:25:28 +0000 (09:25 +0200)]
Merge pull request #568 from linuxmaniac/vseva/fix_516

app_perl: Fix "use UNIVERSAL" is a fatal error since perl 5.22

5 years agoapp_perl: Fix "use UNIVERSAL" is a fatal error since perl 5.22 568/head
Victor Seva [Fri, 15 Apr 2016 07:09:08 +0000 (09:09 +0200)]
app_perl: Fix "use UNIVERSAL" is a fatal error since perl 5.22

* Author: Julián Moreno Patiño <julian@debian.org>
* Fix #516
* from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821039

5 years agoMakefile.defs: version set to 5.0.0-dev2
Daniel-Constantin Mierla [Fri, 15 Apr 2016 07:01:39 +0000 (09:01 +0200)]
Makefile.defs: version set to 5.0.0-dev2

5 years agocore: execute onsend_route callback via kemi
Daniel-Constantin Mierla [Fri, 15 Apr 2016 07:00:53 +0000 (09:00 +0200)]
core: execute onsend_route callback via kemi

5 years agocore: set actions context for running kemi reply_route callback
Daniel-Constantin Mierla [Thu, 14 Apr 2016 19:23:52 +0000 (21:23 +0200)]
core: set actions context for running kemi reply_route callback

5 years agotm: lookup if kemi engine is set for onreply_route callback
Daniel-Constantin Mierla [Thu, 14 Apr 2016 19:23:15 +0000 (21:23 +0200)]
tm: lookup if kemi engine is set for onreply_route callback

5 years agoapp_lua: backup and restore the sip msg structure in lua env
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:45:44 +0000 (18:45 +0200)]
app_lua: backup and restore the sip msg structure in lua env

- nested execution of callbacks can happen (e.g., branch route callback
  executed inside the request_route callback)

5 years agocore: kemi - callbacks cache index stored in shared memory
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:38:05 +0000 (18:38 +0200)]
core: kemi - callbacks cache index stored in shared memory

- reloads can change the values

5 years agotm: init actions context for kemi execution
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:16:32 +0000 (18:16 +0200)]
tm: init actions context for kemi execution

- needed to catch drop in onreply/branch route callbacks

5 years agoapp_lua: safety checks for mandatory lua env attributes
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:16:02 +0000 (18:16 +0200)]
app_lua: safety checks for mandatory lua env attributes

5 years agocore: kemi - log message for drop action
Daniel-Constantin Mierla [Thu, 14 Apr 2016 16:12:08 +0000 (18:12 +0200)]
core: kemi - log message for drop action

5 years agosl: use same function names as for cfg in kemi exports
Daniel-Constantin Mierla [Thu, 14 Apr 2016 15:15:47 +0000 (17:15 +0200)]
sl: use same function names as for cfg in kemi exports

5 years agotm: implemented the execution of branch failure route callback via kemi
Daniel-Constantin Mierla [Thu, 14 Apr 2016 13:13:57 +0000 (15:13 +0200)]
tm: implemented the execution of branch failure route callback via kemi

5 years agotm: implemented the execution of onreply_route callback via kemi
Daniel-Constantin Mierla [Thu, 14 Apr 2016 12:53:27 +0000 (14:53 +0200)]
tm: implemented the execution of onreply_route callback via kemi

5 years agocore: kemi - implementation of a drop() alternative
Daniel-Constantin Mierla [Wed, 13 Apr 2016 22:06:05 +0000 (00:06 +0200)]
core: kemi - implementation of a drop() alternative

- it doesn't stop the embedded interpreter, but it can trigger the
  drop() effects (e.g., dropping a branch)

5 years agotm: implemented the execution of branch_route callback via kemi
Daniel-Constantin Mierla [Wed, 13 Apr 2016 22:05:30 +0000 (00:05 +0200)]
tm: implemented the execution of branch_route callback via kemi

5 years agocore: typedef'ed the action context structure
Daniel-Constantin Mierla [Wed, 13 Apr 2016 22:05:04 +0000 (00:05 +0200)]
core: typedef'ed the action context structure

5 years agotm: implementation of alternative failure_route callback execution via kemi
Daniel-Constantin Mierla [Wed, 13 Apr 2016 21:32:31 +0000 (23:32 +0200)]
tm: implementation of alternative failure_route callback execution via kemi

5 years agoapp_lua: extend the kemi engine to handle the routing block types
Daniel-Constantin Mierla [Wed, 13 Apr 2016 21:30:38 +0000 (23:30 +0200)]
app_lua: extend the kemi engine to handle the routing block types

5 years agotm: export several functions to kemi
Daniel-Constantin Mierla [Wed, 13 Apr 2016 20:43:32 +0000 (22:43 +0200)]
tm: export several functions to kemi

5 years agoapp_lua: reset the values for api parameters
Daniel-Constantin Mierla [Wed, 13 Apr 2016 20:43:06 +0000 (22:43 +0200)]
app_lua: reset the values for api parameters

5 years agomodules/ims_dialog: change logging ERR to DBG
jaybeepee [Thu, 14 Apr 2016 10:32:11 +0000 (12:32 +0200)]
modules/ims_dialog: change logging ERR to DBG

5 years agomodules/ims_registrar_scscf: reset t pointer if tx not found - avoid crash
jaybeepee [Thu, 14 Apr 2016 10:31:07 +0000 (12:31 +0200)]
modules/ims_registrar_scscf: reset t pointer if tx not found - avoid crash

5 years agotm Add improved documentation for t_replicate
Olle E. Johansson [Thu, 14 Apr 2016 08:07:53 +0000 (10:07 +0200)]
tm Add improved documentation for t_replicate

5 years agoimc Minor updates to documentation
Olle E. Johansson [Wed, 13 Apr 2016 18:47:02 +0000 (20:47 +0200)]
imc Minor updates to documentation

5 years agoimc Remove SVN ID's and history
Olle E. Johansson [Wed, 13 Apr 2016 18:36:31 +0000 (20:36 +0200)]
imc Remove SVN ID's and history

5 years agoapp_lua: implemented execution of kemi api functions with 3 params
Daniel-Constantin Mierla [Wed, 13 Apr 2016 14:36:45 +0000 (16:36 +0200)]
app_lua: implemented execution of kemi api functions with 3 params

5 years agocore: kemi - added the index for callback names
Daniel-Constantin Mierla [Wed, 13 Apr 2016 14:19:39 +0000 (16:19 +0200)]
core: kemi - added the index for callback names

- will keep the mapping between the embedded api callabcks and
  transaction events

5 years agotm: shifted back indentation with one tab
Daniel-Constantin Mierla [Wed, 13 Apr 2016 10:44:14 +0000 (12:44 +0200)]
tm: shifted back indentation with one tab

5 years agocore: kemi - commented relevant defines and structure members
Daniel-Constantin Mierla [Tue, 12 Apr 2016 13:15:04 +0000 (15:15 +0200)]
core: kemi - commented relevant defines and structure members

5 years agoerlang: fix compile warning unused but set variable
Seudin Kasumovic [Tue, 12 Apr 2016 22:34:41 +0000 (00:34 +0200)]
erlang: fix compile warning unused but set variable

- get rid of this variable

5 years agoerlang: fix register server process with the local name server epmd
Seudin Kasumovic [Tue, 12 Apr 2016 22:15:56 +0000 (00:15 +0200)]
erlang: fix register server process with the local name server epmd

- use correct alive name when number of C nodes greater then 1
- fix error check on register server process

5 years agoMerge pull request #565 from kamailio/sd_journal_send_xavp
Camille Oudot [Tue, 12 Apr 2016 12:55:55 +0000 (14:55 +0200)]
Merge pull request #565 from kamailio/sd_journal_send_xavp

new function in log_systemd module to log structured events

5 years agoapp_lua: option to silently try to run a lua function
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:43:52 +0000 (14:43 +0200)]
app_lua: option to silently try to run a lua function

- if lua function not found, do not write error message
- some routing blocks are optional (e.g., reply_route{}) and their
  equivalent may not be defined

5 years agocore: kemi - skip "native" and "default" config engines names
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:18:19 +0000 (14:18 +0200)]
core: kemi - skip "native" and "default" config engines names

- reserved for the existing kamailio.cfg interpreter

5 years agoapp_lua: implemented alternative config file interpreting engine
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:16:44 +0000 (14:16 +0200)]
app_lua: implemented alternative config file interpreting engine

- can be used to execute routing logic for SIP requests and responses by
  using next statement in kamailio.cfg:

  cfgengine="lua"

5 years agocore: ability to run alternative request_route and reply_route handlers
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:14:15 +0000 (14:14 +0200)]
core: ability to run alternative request_route and reply_route handlers

- they can be offered by the embedded interpreters
- at this moment app_lua can execute functions from the script loaded
  with param 'load':
  - instead of request_route it executes ksr_request_route()
  - instead of reply_route it executes ksr_reply_route()

5 years agocore: cfgengine - new global parameter/statement
Daniel-Constantin Mierla [Tue, 12 Apr 2016 12:10:28 +0000 (14:10 +0200)]
core: cfgengine - new global parameter/statement

- set the config interpreter engine, can be used like:

  cfgengine="name"
  cfgengine "name"

If name is "native" or "default", it expects to have in native config
interpreter for routing logic.

The name can be the identifier of an embedded language interpreter, such
as "lua" which is registered by the app_lua module:

  cfgengine "lua"