sip-router
4 years agoapp_lua: added utils script to generate c functions for kemi exports
Daniel-Constantin Mierla [Thu, 28 Apr 2016 07:24:09 +0000 (09:24 +0200)]
app_lua: added utils script to generate c functions for kemi exports

4 years agoapp_lua: use direct mapping with C functions by index for kemi exports
Daniel-Constantin Mierla [Thu, 28 Apr 2016 07:22:56 +0000 (09:22 +0200)]
app_lua: use direct mapping with C functions by index for kemi exports

- faster lookup at runtime at expense of defining associated c functions

4 years agoapp_lua: implemented KSR.x.exit()
Daniel-Constantin Mierla [Wed, 27 Apr 2016 22:04:46 +0000 (00:04 +0200)]
app_lua: implemented KSR.x.exit()

- specific extension to stop execution of lua script (similar to exit in
  kamailio.cfg)
- it's a wrapper around lua function error() with a predefined message
  handled after the return of lua_pcall()

4 years agoapp_python: handle python sys.exit() exception with dbg messages
Daniel-Constantin Mierla [Wed, 27 Apr 2016 18:36:34 +0000 (20:36 +0200)]
app_python: handle python sys.exit() exception with dbg messages

- allow to use it for same purpose as exit in kamailio.cfg

4 years agoapp_python: remove function name from log messages when handling exceptions
Daniel-Constantin Mierla [Wed, 27 Apr 2016 16:25:01 +0000 (18:25 +0200)]
app_python: remove function name from log messages when handling exceptions

- it is added automatically by log defines (resulted in duplicate
  strings)

4 years agoexamples/kemi: more comments to explain the lua routing script
Daniel-Constantin Mierla [Wed, 27 Apr 2016 14:42:57 +0000 (16:42 +0200)]
examples/kemi: more comments to explain the lua routing script

4 years agoexamples/kemi: more comments in python script
Daniel-Constantin Mierla [Wed, 27 Apr 2016 14:36:26 +0000 (16:36 +0200)]
examples/kemi: more comments in python script

4 years agoexamples/kemi: lua routing script updates for several int parameters
Daniel-Constantin Mierla [Wed, 27 Apr 2016 14:26:36 +0000 (16:26 +0200)]
examples/kemi: lua routing script updates for several int parameters

4 years agoexamples/lua: python script coresponding to routing blocks in kamailio-basic.cfg
Daniel-Constantin Mierla [Wed, 27 Apr 2016 14:23:48 +0000 (16:23 +0200)]
examples/lua: python script coresponding to routing blocks in kamailio-basic.cfg

4 years agocore: kemi - exported KSR.isdsturiset() function
Daniel-Constantin Mierla [Wed, 27 Apr 2016 14:22:39 +0000 (16:22 +0200)]
core: kemi - exported KSR.isdsturiset() function

4 years agoexamples/kemi: fixed return code for lua script handling requests within dlg
Daniel-Constantin Mierla [Wed, 27 Apr 2016 13:07:49 +0000 (15:07 +0200)]
examples/kemi: fixed return code for lua script handling requests within dlg

4 years agonsg: added link to nsq.io in the docs
Daniel-Constantin Mierla [Wed, 27 Apr 2016 08:28:42 +0000 (10:28 +0200)]
nsg: added link to nsq.io in the docs

- reformated the docbook

4 years agoerlang: fix where is registered pseudo process
Seudin Kasumovic [Tue, 26 Apr 2016 13:49:00 +0000 (15:49 +0200)]
erlang: fix where is registered pseudo process

- check is event route exist for queried registered process
- check argument type and function arity
- ensure error message proper formatted

4 years agoerlang: extend error message function with variable number of arguments
Seudin Kasumovic [Tue, 26 Apr 2016 12:04:41 +0000 (14:04 +0200)]
erlang: extend error message function with variable number of arguments

- wrap around vsnprintf

4 years agonsq: added readme file
Daniel-Constantin Mierla [Tue, 26 Apr 2016 13:30:21 +0000 (15:30 +0200)]
nsq: added readme file

4 years agoMakefile.groups: added group for nsq module
Daniel-Constantin Mierla [Tue, 26 Apr 2016 13:29:29 +0000 (15:29 +0200)]
Makefile.groups: added group for nsq module

4 years agoMerge pull request #582 from eschmidbauer/new-module/nsq
Emmanuel Schmidbauer [Tue, 26 Apr 2016 13:21:21 +0000 (09:21 -0400)]
Merge pull request #582 from eschmidbauer/new-module/nsq

New Module, NSQ

4 years agoMerge pull request #583 from mslehto/known_limits
Daniel-Constantin Mierla [Tue, 26 Apr 2016 13:09:13 +0000 (15:09 +0200)]
Merge pull request #583 from mslehto/known_limits

modules/*/doc: reorganize “Known limitations”

4 years agotravis-ci: IRC notifications to #kamailio-dev channel
Victor Seva [Tue, 26 Apr 2016 08:57:34 +0000 (10:57 +0200)]
travis-ci: IRC notifications to #kamailio-dev channel

4 years agoerlang: fix function call in event route
Seudin Kasumovic [Tue, 26 Apr 2016 07:55:43 +0000 (09:55 +0200)]
erlang: fix function call in event route

- allow call functions for RPC and message send in event route
- detect RPC loop
- function/api call is possible in event route if event route is not
triggered by handling REX call (avoid deadlock)

4 years agomodules/*/doc: reorganize “Known limitations” 583/head
Mikko Lehto [Mon, 25 Apr 2016 21:52:22 +0000 (00:52 +0300)]
modules/*/doc: reorganize “Known limitations”

- otherwise plain-text output format looks clumsy with single subsection

4 years agoremove outdated README.md 582/head
Emmanuel Schmidbauer [Mon, 25 Apr 2016 16:33:50 +0000 (12:33 -0400)]
remove outdated README.md

4 years agoNew Module NSQ
Emmanuel Schmidbauer [Mon, 25 Apr 2016 16:15:27 +0000 (12:15 -0400)]
New Module NSQ

4 years agoexamples/kemi: handle return code for lua within dialog function
Daniel-Constantin Mierla [Mon, 25 Apr 2016 15:08:02 +0000 (17:08 +0200)]
examples/kemi: handle return code for lua within dialog function

4 years agoexamples/kemi: added cfg examples of using lua config routing
Daniel-Constantin Mierla [Mon, 25 Apr 2016 14:58:59 +0000 (16:58 +0200)]
examples/kemi: added cfg examples of using lua config routing

- based on kamailio-basic.cfg

4 years agocore: new core parameter latency_cfg_log
Daniel-Constantin Mierla [Mon, 25 Apr 2016 14:57:19 +0000 (16:57 +0200)]
core: new core parameter latency_cfg_log

- if set to a log level less or equal than debug parameter, a log
  message with the duration of executing request route or reply route is
  printed to syslog
- default value is L_DBG

4 years agoapp_lua: print error message if kemi function not found
Daniel-Constantin Mierla [Mon, 25 Apr 2016 13:06:19 +0000 (15:06 +0200)]
app_lua: print error message if kemi function not found

4 years agopermissions: updated the struct for kemi exports to reflect module name
Daniel-Constantin Mierla [Mon, 25 Apr 2016 13:05:53 +0000 (15:05 +0200)]
permissions: updated the struct for kemi exports to reflect module name

4 years agosanity: fixed module name for kemi exports
Daniel-Constantin Mierla [Mon, 25 Apr 2016 13:05:35 +0000 (15:05 +0200)]
sanity: fixed module name for kemi exports

4 years agojsonrpc-c: replaced use of obsolete function json_object_object_get()
Daniel-Constantin Mierla [Mon, 25 Apr 2016 06:56:00 +0000 (08:56 +0200)]
jsonrpc-c: replaced use of obsolete function json_object_object_get()

4 years agojson: replaced use of obsolete function json_object_object_get()
Daniel-Constantin Mierla [Mon, 25 Apr 2016 06:54:45 +0000 (08:54 +0200)]
json: replaced use of obsolete function json_object_object_get()

- reported by Olle E. Johansson, GH #579

4 years agoregistrar: exported save(...)/lookup(...) variants to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 18:47:35 +0000 (20:47 +0200)]
registrar: exported save(...)/lookup(...) variants to kemi

4 years agotsilo: updated with the latest changes to registrar api
Daniel-Constantin Mierla [Sun, 24 Apr 2016 18:38:07 +0000 (20:38 +0200)]
tsilo: updated with the latest changes to registrar api

4 years agoapp_lua: updated old lua api with the changes to registrar module
Daniel-Constantin Mierla [Sun, 24 Apr 2016 18:35:45 +0000 (20:35 +0200)]
app_lua: updated old lua api with the changes to registrar module

4 years agoregistrar: inter-module api updated to use str for location table
Daniel-Constantin Mierla [Sun, 24 Apr 2016 18:25:45 +0000 (20:25 +0200)]
registrar: inter-module api updated to use str for location table

4 years agoregistrar: coherent indentation and whitespacing
Daniel-Constantin Mierla [Sun, 24 Apr 2016 18:13:44 +0000 (20:13 +0200)]
registrar: coherent indentation and whitespacing

4 years agosanity: exported sanity_check(...) to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 17:31:31 +0000 (19:31 +0200)]
sanity: exported sanity_check(...) to kemi

4 years agosl: exported sl_reply_error() to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 17:20:30 +0000 (19:20 +0200)]
sl: exported sl_reply_error() to kemi

4 years agosiputils: exported several functions to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 17:13:56 +0000 (19:13 +0200)]
siputils: exported several functions to kemi

- has_totag(), is_request(), is_reply(), is_first_hop()

4 years agosiputils: coherent indentation and whitespacing
Daniel-Constantin Mierla [Sun, 24 Apr 2016 16:59:38 +0000 (18:59 +0200)]
siputils: coherent indentation and whitespacing

4 years agotm: exported t_is_set() to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 16:46:26 +0000 (18:46 +0200)]
tm: exported t_is_set() to kemi

- removed some of the function names in log messages, it is added
  automatically

4 years agotmx: functions to check the routing block type exported to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 16:39:20 +0000 (18:39 +0200)]
tmx: functions to check the routing block type exported to kemi

4 years agocore: kemi - exported force_rport()
Daniel-Constantin Mierla [Sun, 24 Apr 2016 10:39:17 +0000 (12:39 +0200)]
core: kemi - exported force_rport()

4 years agorr: exported several functions to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 10:32:08 +0000 (12:32 +0200)]
rr: exported several functions to kemi

4 years agopike: exporte pike_check_req() to kemi
Daniel-Constantin Mierla [Sun, 24 Apr 2016 09:59:50 +0000 (11:59 +0200)]
pike: exporte pike_check_req() to kemi

- coherent indentation

4 years agocore: kemi - groupped protoptypes for functions of embedded api
Daniel-Constantin Mierla [Sun, 24 Apr 2016 09:28:59 +0000 (11:28 +0200)]
core: kemi - groupped protoptypes for functions of embedded api

4 years agoapp_python: comments to highlight parameter types
Daniel-Constantin Mierla [Sun, 24 Apr 2016 09:28:13 +0000 (11:28 +0200)]
app_python: comments to highlight parameter types

4 years agoapp_python: renamed python return functions for kemi api
Daniel-Constantin Mierla [Sun, 24 Apr 2016 09:17:15 +0000 (11:17 +0200)]
app_python: renamed python return functions for kemi api

4 years agoapp_lua: renamed function to return int to lua for kemi api
Daniel-Constantin Mierla [Sun, 24 Apr 2016 09:10:15 +0000 (11:10 +0200)]
app_lua: renamed function to return int to lua for kemi api

4 years agoapp_python: exported special kemi function to execute a module function
Daniel-Constantin Mierla [Sun, 24 Apr 2016 07:53:32 +0000 (09:53 +0200)]
app_python: exported special kemi function to execute a module function

- KSR.x.modf(self, msg, fname, params...)

4 years agoapp_lua: exported special kemi function to execute module function
Daniel-Constantin Mierla [Sun, 24 Apr 2016 07:32:27 +0000 (09:32 +0200)]
app_lua: exported special kemi function to execute module function

- KSR.x.modf(fname, params...)

4 years agopermissions: exported some functions to kemi
Daniel-Constantin Mierla [Sat, 23 Apr 2016 16:49:05 +0000 (18:49 +0200)]
permissions: exported some functions to kemi

- allow_source_address() and allow_address()
- coherent indentation and whitespacing

4 years agohttp_client Fix bad formatting of source code
Olle E. Johansson [Sat, 23 Apr 2016 14:58:15 +0000 (16:58 +0200)]
http_client Fix bad formatting of source code

4 years agocarrierroute Remove SVN id's and rename SIP-router => Kamailio
Olle E. Johansson [Sat, 23 Apr 2016 14:43:52 +0000 (16:43 +0200)]
carrierroute Remove SVN id's and rename SIP-router => Kamailio

4 years agouri_db Rename module file to module name
Olle E. Johansson [Sat, 23 Apr 2016 14:38:17 +0000 (16:38 +0200)]
uri_db Rename module file to module name

4 years agouac Minor code cleanup, add a few doxygen headers
Olle E. Johansson [Sat, 23 Apr 2016 14:35:53 +0000 (16:35 +0200)]
uac Minor code cleanup, add a few doxygen headers

4 years agomaxfwd Remove svn ID's
Olle E. Johansson [Sat, 23 Apr 2016 14:13:40 +0000 (16:13 +0200)]
maxfwd Remove svn ID's

4 years agonathelper: exported several functions to kemi
Daniel-Constantin Mierla [Sat, 23 Apr 2016 06:59:12 +0000 (08:59 +0200)]
nathelper: exported several functions to kemi

4 years agonathelper: cleaned the history and code format
Daniel-Constantin Mierla [Sat, 23 Apr 2016 06:29:32 +0000 (08:29 +0200)]
nathelper: cleaned the history and code format

4 years agokamailio-basic.cfg: updated version in comments and small format fixes
Daniel-Constantin Mierla [Sat, 23 Apr 2016 06:23:30 +0000 (08:23 +0200)]
kamailio-basic.cfg: updated version in comments and small format fixes

4 years agotmx: coherent indentation and whitespacing
Daniel-Constantin Mierla [Sat, 23 Apr 2016 06:21:18 +0000 (08:21 +0200)]
tmx: coherent indentation and whitespacing

4 years agortpproxy: removed history and coherent indentation
Daniel-Constantin Mierla [Fri, 22 Apr 2016 21:00:25 +0000 (23:00 +0200)]
rtpproxy: removed history and coherent indentation

4 years agotmx: t_precheck_trans() exported to kemi
Daniel-Constantin Mierla [Fri, 22 Apr 2016 20:58:59 +0000 (22:58 +0200)]
tmx: t_precheck_trans() exported to kemi

4 years agonathelper: removed history comments
Daniel-Constantin Mierla [Fri, 22 Apr 2016 20:58:28 +0000 (22:58 +0200)]
nathelper: removed history comments

4 years agomaxfwd: exported process_maxfwd() to kemi api
Daniel-Constantin Mierla [Fri, 22 Apr 2016 11:49:03 +0000 (13:49 +0200)]
maxfwd: exported process_maxfwd() to kemi api

4 years agomaxfwd: removed the history and fixed indentation
Daniel-Constantin Mierla [Fri, 22 Apr 2016 11:45:55 +0000 (13:45 +0200)]
maxfwd: removed the history and fixed indentation

4 years agoauth_db: exported functions to kemi
Daniel-Constantin Mierla [Fri, 22 Apr 2016 07:28:42 +0000 (09:28 +0200)]
auth_db: exported functions to kemi

- is_subscriber(...)
- auth_check(...)

4 years agortpproxy: exported rtpproxy_manage() variants to kemi
Daniel-Constantin Mierla [Fri, 22 Apr 2016 06:39:18 +0000 (08:39 +0200)]
rtpproxy: exported rtpproxy_manage() variants to kemi

4 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

4 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

4 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

4 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

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

4 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.

4 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

4 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

4 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

4 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

4 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(...)

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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()

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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