sip-router
7 years ago.gitignore: added few more patterns to ignore
Daniel-Constantin Mierla [Wed, 24 Oct 2012 06:39:59 +0000 (08:39 +0200)]
.gitignore: added few more patterns to ignore

- kamcmd binary and second vi swap file

7 years agopkg/kamailio/rpm: specs updated for rename of sercmd to kamcmd
Daniel-Constantin Mierla [Tue, 23 Oct 2012 22:16:58 +0000 (00:16 +0200)]
pkg/kamailio/rpm: specs updated for rename of sercmd to kamcmd

7 years agosercmd: added basic man page
Daniel-Constantin Mierla [Tue, 23 Oct 2012 22:06:48 +0000 (00:06 +0200)]
sercmd: added basic man page

7 years agosercmd: builds and installs as kamcmd when FLAVOUR=kamailio
Daniel-Constantin Mierla [Tue, 23 Oct 2012 22:05:13 +0000 (00:05 +0200)]
sercmd: builds and installs as kamcmd when FLAVOUR=kamailio

- avoid packaging conflicts with ser (both packages attempt to install
  same file)

7 years agoMakefile.utils: new target to install manpage for util tools
Daniel-Constantin Mierla [Tue, 23 Oct 2012 22:04:11 +0000 (00:04 +0200)]
Makefile.utils: new target to install manpage for util tools

7 years agokamctl: replaced openser with kamailio in variable and function names
Daniel-Constantin Mierla [Tue, 23 Oct 2012 14:49:29 +0000 (16:49 +0200)]
kamctl: replaced openser with kamailio in variable and function names

7 years agocore: print modparam type id in log when parameter not found
Daniel-Constantin Mierla [Tue, 23 Oct 2012 14:17:24 +0000 (16:17 +0200)]
core: print modparam type id in log when parameter not found

7 years agomodules/rtpproxy: added 't' flag to rtpproxy_destroy and force_rtp_proxy
Juha Heinanen [Mon, 22 Oct 2012 09:15:54 +0000 (12:15 +0300)]
modules/rtpproxy:  added 't' flag to rtpproxy_destroy and force_rtp_proxy
- Added new flag 't' to rtpproxy_destroy function that makes it possible
  do delete whole call even when To tag is present in request/reply.  In
  force_rtp_proxy the flag is ignored.

7 years agopua: Fixing documentation typos, adding reginfo
Olle E. Johansson [Sun, 21 Oct 2012 17:13:50 +0000 (19:13 +0200)]
pua: Fixing documentation typos, adding reginfo

7 years agosipcapture Fixing typos in documentation
Olle E. Johansson [Sun, 21 Oct 2012 17:02:56 +0000 (19:02 +0200)]
sipcapture Fixing typos in documentation

7 years agoSDPops Typo fixes in documentation
Olle E. Johansson [Sun, 21 Oct 2012 16:54:33 +0000 (18:54 +0200)]
SDPops Typo fixes in documentation

7 years agoRatelimit: Fixing typos
Olle E. Johansson [Sun, 21 Oct 2012 16:49:43 +0000 (18:49 +0200)]
Ratelimit: Fixing typos

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Olle E. Johansson [Sun, 21 Oct 2012 16:32:33 +0000 (18:32 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  modules/rtpproxy: some README improvements
  pkg/kamailio/fedora/16: More tweaks to .spec
  pkg/kamailio/(centos|fedora): Updated boxgrinder appliance definitions
  pkg/kamailio/fedora/16: added SCTP dependencies to .spec
  pkg/kamailio/fedora/16: Updated .spec file
  Makefiles: Updated Makefiles to use db2x_docbook2man when docbook2x-man is not installed
  pkg/kamailio/fedora/16: Updated .spec to set ownership of /etc/kamailio to kamailio.kamailio
  modules/websocket: Updated example configuration file
  modules/msrp: Updated MSRP configuration example
  rtpproxy: allow flags parameter to rtpproxy_destroy()

7 years agoTLS Documentation updates
Olle E. Johansson [Sun, 21 Oct 2012 16:30:32 +0000 (18:30 +0200)]
TLS Documentation updates

7 years agomodules/rtpproxy: some README improvements
Juha Heinanen [Sun, 21 Oct 2012 14:29:44 +0000 (17:29 +0300)]
modules/rtpproxy: some README improvements

7 years agoDocumentation updates
Olle E. Johansson [Sat, 20 Oct 2012 15:47:32 +0000 (17:47 +0200)]
Documentation updates

7 years agopkg/kamailio/fedora/16: More tweaks to .spec
Peter Dunkley [Sat, 20 Oct 2012 02:55:01 +0000 (03:55 +0100)]
pkg/kamailio/fedora/16: More tweaks to .spec

- The auth_diameter and malloc_test modules were being built during install
  instead of in the build section

7 years agopkg/kamailio/(centos|fedora): Updated boxgrinder appliance definitions
Peter Dunkley [Sat, 20 Oct 2012 02:12:05 +0000 (03:12 +0100)]
pkg/kamailio/(centos|fedora): Updated boxgrinder appliance definitions

7 years agopkg/kamailio/fedora/16: added SCTP dependencies to .spec
Peter Dunkley [Sat, 20 Oct 2012 02:06:30 +0000 (03:06 +0100)]
pkg/kamailio/fedora/16: added SCTP dependencies to .spec

7 years agopkg/kamailio/fedora/16: Updated .spec file
Peter Dunkley [Sat, 20 Oct 2012 01:38:18 +0000 (02:38 +0100)]
pkg/kamailio/fedora/16: Updated .spec file

- Added installation of auth.7.gz for Fedoa now that manpages are built for
  Fedora
- Added "make utils" to build section
- SCTP and STUN now included in build
- Removed kamailio-tls package - tls module now in main Kamailio RPM as that has
  openssl as a dependency for STUN

7 years agoMakefiles: Updated Makefiles to use db2x_docbook2man when docbook2x-man is not installed
Peter Dunkley [Sat, 20 Oct 2012 00:23:51 +0000 (01:23 +0100)]
Makefiles: Updated Makefiles to use db2x_docbook2man when docbook2x-man is not installed

- db2x_docbook2man is what Fedora contains

7 years agopkg/kamailio/fedora/16: Updated .spec to set ownership of /etc/kamailio to kamailio...
Peter Dunkley [Fri, 19 Oct 2012 23:29:07 +0000 (00:29 +0100)]
pkg/kamailio/fedora/16: Updated .spec to set ownership of /etc/kamailio to kamailio.kamailio

- Means that file-based DB (e.g. sqlite) files kept in /etc/kamailio can be
  written to by processes (including kamailio itself) run by the kamailio user.

7 years agomodules/websocket: Updated example configuration file
Peter Dunkley [Fri, 19 Oct 2012 13:34:54 +0000 (14:34 +0100)]
modules/websocket: Updated example configuration file

- Use qop="auth" for MSRP authentication
- Support Expires: header in MSRP AUTH requests
- Add Expires: header to 200 OK responses to MSRP AUTH requests
- Authenticate MSRP AUTH requests off subscriber DB

7 years agomodules/msrp: Updated MSRP configuration example
Peter Dunkley [Fri, 19 Oct 2012 13:25:35 +0000 (14:25 +0100)]
modules/msrp: Updated MSRP configuration example

- Enabled qop="auth" for authentication (mandated by RFC 4976)
- Added support for Expires: header in AUTH requests
- Added (mandatory) Expires: header to 200 OK responses to AUTH requests

7 years agortpproxy: allow flags parameter to rtpproxy_destroy()
Daniel-Constantin Mierla [Fri, 19 Oct 2012 09:53:17 +0000 (11:53 +0200)]
rtpproxy: allow flags parameter to rtpproxy_destroy()

- it is optional parameter, but was not allowed by c code
- reported by Juha Heinanen

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Olle E. Johansson [Thu, 18 Oct 2012 16:39:15 +0000 (18:39 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  all: OPENSER_MOD_INTERFACE replaced with KAMAILIO_MOD_INTERFACE
  all: fixed matrix doc generation and updates for &defaultdb;
  all: replaced db_url static value with &defaultrodb; in docs
  all: replaced openser with kamailio in license and comments
  dialog(k): run event route after setting cfg dlg vars
  rtpproxy: regenerated readme for flags x and 3
  rtpproxy: documented flag 3
  rtpproxy: propage flags from rtpproxy_manage() to unforce_rtp_proxy()
  pkg/gentoo: Added ebuild for v3.3.2
  Makefile: added uninstall target
  modules_k/db_sqlite: fix memory leak in sqlops query
  kamailio.cfg: handle UPDATE through nat traversal logic
  auth_db(k): new function is_subscriber(uri, dbtable, flags)

7 years agoall: OPENSER_MOD_INTERFACE replaced with KAMAILIO_MOD_INTERFACE
Daniel-Constantin Mierla [Thu, 18 Oct 2012 13:46:13 +0000 (15:46 +0200)]
all: OPENSER_MOD_INTERFACE replaced with KAMAILIO_MOD_INTERFACE

- OPENSER_MOD_INTERFACE still works if used in module Makefile

7 years agoall: fixed matrix doc generation and updates for &defaultdb;
Daniel-Constantin Mierla [Thu, 18 Oct 2012 12:46:37 +0000 (14:46 +0200)]
all: fixed matrix doc generation and updates for &defaultdb;

7 years agoall: replaced db_url static value with &defaultrodb; in docs
Daniel-Constantin Mierla [Thu, 18 Oct 2012 12:36:46 +0000 (14:36 +0200)]
all: replaced db_url static value with &defaultrodb; in docs

- regenerated the readmes for modules/ and modules_k/

7 years agoall: replaced openser with kamailio in license and comments
Daniel-Constantin Mierla [Thu, 18 Oct 2012 12:18:19 +0000 (14:18 +0200)]
all: replaced openser with kamailio in license and comments

- some files were forgotten during renaming

7 years agodialog(k): run event route after setting cfg dlg vars
Daniel-Constantin Mierla [Thu, 18 Oct 2012 07:54:53 +0000 (09:54 +0200)]
dialog(k): run event route after setting cfg dlg vars

- in this way they (e.g., $DLG_lifetime) should be accessible in event
  route

7 years agortpproxy: regenerated readme for flags x and 3
Daniel-Constantin Mierla [Wed, 17 Oct 2012 19:41:40 +0000 (21:41 +0200)]
rtpproxy: regenerated readme for flags x and 3

7 years agortpproxy: documented flag 3
Daniel-Constantin Mierla [Wed, 17 Oct 2012 19:33:45 +0000 (21:33 +0200)]
rtpproxy: documented flag 3

7 years agortpproxy: propage flags from rtpproxy_manage() to unforce_rtp_proxy()
Daniel-Constantin Mierla [Wed, 17 Oct 2012 19:25:00 +0000 (21:25 +0200)]
rtpproxy: propage flags from rtpproxy_manage() to unforce_rtp_proxy()

- unforce_rtp_proxy() can take flags 1 or 2, previously it didn't take
  any
- ignore all the other valid flags for rtpproxy_manage() in
  unforce_rtp_proxy()
- added flag 3 - add first via branch if it request (like flag 1) or add
  second via branch if it reply (like flag 2) - suitable for auto-pilot
  usage with rtpproxy_manage() function

7 years agopkg/gentoo: Added ebuild for v3.3.2
Claudio Furrer [Wed, 17 Oct 2012 17:38:52 +0000 (14:38 -0300)]
pkg/gentoo: Added ebuild for v3.3.2

7 years agoMakefile: added uninstall target
Daniel-Constantin Mierla [Wed, 17 Oct 2012 10:52:34 +0000 (12:52 +0200)]
Makefile: added uninstall target

- it prints hints and commands to perform uninstall when installation is
  done from sources

7 years agomodules_k/db_sqlite: fix memory leak in sqlops query
Timo Teräs [Wed, 17 Oct 2012 06:00:14 +0000 (09:00 +0300)]
modules_k/db_sqlite: fix memory leak in sqlops query

Seems that most other database drivers release the database
resource only at free_result time, which I some how missed.

Since we are doing a deep copy in store_result(), we can
just release the sqlite resources immediately raw_query().

Reported-by: Pedro Antonio Vico Solano <pvsolano@amper.es>
7 years agokamailio.cfg: handle UPDATE through nat traversal logic
Daniel-Constantin Mierla [Tue, 16 Oct 2012 19:59:28 +0000 (21:59 +0200)]
kamailio.cfg: handle UPDATE through nat traversal logic

- BYE is handled via branch route as well
- set tm routes only if they are not set, allowing better plug and play
  config snippets

7 years agoauth_db(k): new function is_subscriber(uri, dbtable, flags)
Daniel-Constantin Mierla [Tue, 16 Oct 2012 19:28:46 +0000 (21:28 +0200)]
auth_db(k): new function is_subscriber(uri, dbtable, flags)

- check if URI corresponds to a subscriber record in dbtable and load
  credentials for it

7 years agoasync Forgot to rebuild the README
Olle E. Johansson [Mon, 15 Oct 2012 17:51:21 +0000 (19:51 +0200)]
async Forgot to rebuild the README

7 years agoAsync typo fix
Olle E. Johansson [Mon, 15 Oct 2012 17:47:52 +0000 (19:47 +0200)]
Async typo fix

7 years agotextopsx - typo fixes, minor corrections
Olle E. Johansson [Mon, 15 Oct 2012 17:45:02 +0000 (19:45 +0200)]
textopsx - typo fixes, minor corrections

7 years agomodules_k/siptrace Fixed crash when using HEP v2
Dragos Dinu [Mon, 15 Oct 2012 15:29:48 +0000 (18:29 +0300)]
modules_k/siptrace Fixed crash when using HEP v2

7 years agoINSTALL - Fixing spelling error
Olle E. Johansson [Mon, 15 Oct 2012 12:35:10 +0000 (14:35 +0200)]
INSTALL - Fixing spelling error

7 years agoregistrar Fix typos in README
Olle E. Johansson [Sun, 14 Oct 2012 19:57:24 +0000 (21:57 +0200)]
registrar Fix typos in README

7 years agopv Fix typo in README
Olle E. Johansson [Sun, 14 Oct 2012 19:40:36 +0000 (21:40 +0200)]
pv Fix typo in README

7 years agodispatcher small documentation updates
Olle E. Johansson [Sun, 14 Oct 2012 19:32:56 +0000 (21:32 +0200)]
dispatcher small documentation updates

7 years agop_userloc Fixing the database URLs as entities
Olle E. Johansson [Sun, 14 Oct 2012 19:02:52 +0000 (21:02 +0200)]
p_userloc Fixing the database URLs as entities

7 years agoRevert "Changing database URL example to use entity"
Olle E. Johansson [Sun, 14 Oct 2012 17:54:19 +0000 (19:54 +0200)]
Revert "Changing database URL example to use entity"

This reverts commit 827e2d4bbab047fd4bbe4ada266327a823fc1cd3.

7 years agoChanging database URL example to use entity
Olle E. Johansson [Sun, 14 Oct 2012 17:38:47 +0000 (19:38 +0200)]
Changing database URL example to use entity

Making it easier when we change from "openserrw" to "kamailiorw"

7 years agodialog: minor typo fix
Olle E. Johansson [Sun, 14 Oct 2012 16:58:16 +0000 (18:58 +0200)]
dialog: minor typo fix

7 years agosiputils: README typo fixes
Olle E. Johansson [Sun, 14 Oct 2012 16:20:42 +0000 (18:20 +0200)]
siputils: README typo fixes

7 years agouac: README typos
Olle E. Johansson [Sun, 14 Oct 2012 16:11:29 +0000 (18:11 +0200)]
uac: README typos

7 years agoSL doc: fix typos
Olle E. Johansson [Sun, 14 Oct 2012 16:02:45 +0000 (18:02 +0200)]
SL doc: fix typos

7 years agoTM docs: fix typos
Olle E. Johansson [Sun, 14 Oct 2012 15:54:53 +0000 (17:54 +0200)]
TM docs: fix typos

7 years agotm: Updates of README, spelling errors
Olle E. Johansson [Sun, 14 Oct 2012 15:45:41 +0000 (17:45 +0200)]
tm: Updates of README, spelling errors

7 years agoasync: Speling erors fixed
Olle E. Johansson [Sun, 14 Oct 2012 15:24:21 +0000 (17:24 +0200)]
async: Speling erors fixed

7 years agomsilo: Updating docs
Olle E. Johansson [Sun, 14 Oct 2012 15:13:01 +0000 (17:13 +0200)]
msilo: Updating docs

Fixing a typo and while at it updating some texts.

7 years agokamailio.cfg: load corex module to get same cfg api as so far
Daniel-Constantin Mierla [Fri, 12 Oct 2012 13:40:24 +0000 (15:40 +0200)]
kamailio.cfg: load corex module to get same cfg api as so far

7 years agomodules/msrp: Added support for WS transport
Peter Dunkley [Thu, 11 Oct 2012 11:58:38 +0000 (12:58 +0100)]
modules/msrp: Added support for WS transport

- Updated parser to recognise/decode ";ws" as a transport
- Updated netio code to route MSRP messages destined for a
  WebSocket connection through the websocket module (instead of just
  tcp_send()ing them).

7 years agomodules/websocket: Added support for MSRP WebSocket sub-protocol
Peter Dunkley [Thu, 11 Oct 2012 11:57:26 +0000 (12:57 +0100)]
modules/websocket: Added support for MSRP WebSocket sub-protocol

- Prototype of draft-pd-msrp-websocket
- Enables session based chat and group chat from HTML5 clients

7 years agocore: fixed small issue w/ include directive
Marius Zbihlei [Thu, 11 Oct 2012 07:59:45 +0000 (10:59 +0300)]
core: fixed small issue w/ include directive

7 years agocore: disable build of DNSSEC (patch from Marius)
Henning Westerholt [Wed, 10 Oct 2012 17:15:10 +0000 (19:15 +0200)]
core: disable build of DNSSEC (patch from Marius)

7 years agomodules/msrp: Updated typo in MSRP example
Peter Dunkley [Wed, 10 Oct 2012 17:00:51 +0000 (18:00 +0100)]
modules/msrp: Updated typo in MSRP example

7 years agomodules/msrp: From-Path: not updated correctly in msrp_relay()
Peter Dunkley [Wed, 10 Oct 2012 15:15:32 +0000 (16:15 +0100)]
modules/msrp: From-Path: not updated correctly in msrp_relay()

- When the last To-Path-URI is pre-pended to the From-Path: header the first
  two characters of "From-Path: " are skipped, leaving "om-Path: ".  11
  characters should actually be skipped.

7 years agoCore: added DNSSEC support for DNS queries
Marius Zbihlei [Wed, 10 Oct 2012 14:53:02 +0000 (17:53 +0300)]
Core: added DNSSEC support for DNS queries

This is available by setting the USE_DNSSEC compile flag. It requires libval-threads and libres (part of dnssec-tools dnssec-tools.org)
The custom resolvers were replaced by val_gethostbyname, val_gethostbyname and val_res_query (for SRV).

7 years agomodules_k/xcap_server: Fixed small mistake in last xcap_server fix
Peter Dunkley [Wed, 10 Oct 2012 09:49:16 +0000 (10:49 +0100)]
modules_k/xcap_server: Fixed small mistake in last xcap_server fix

7 years agotcp: fix connection alias replacing
Andrei Pelinescu-Onciul [Wed, 10 Oct 2012 08:02:00 +0000 (10:02 +0200)]
tcp: fix connection alias replacing

When the TCP_ALIAS_REPLACE is set and an alias has to be added to
a connection that had 0 aliases (it can happen due to
TCP_ALIAS_REPLACE flag), the connection aliases count was wrongly
forced to 1.
For more details see:
http://lists.sip-router.org/pipermail/sr-users/2012-October/074932.html

Patch-by Jijo

7 years agomodules_k/xcap_server: Fixed segmentation fault
Peter Dunkley [Tue, 9 Oct 2012 20:07:10 +0000 (21:07 +0100)]
modules_k/xcap_server: Fixed segmentation fault

- Occurs when attempting to do an etag compare when there is no document/etag
  in the database.

7 years agocore: reset params pointers if there is a failure in parse_params()
Daniel-Constantin Mierla [Tue, 9 Oct 2012 14:30:24 +0000 (16:30 +0200)]
core: reset params pointers if there is a failure in parse_params()

- patch by Jijo

7 years agotm: set log level to debug for negative return code of run_top_route()
Daniel-Constantin Mierla [Tue, 9 Oct 2012 10:29:09 +0000 (12:29 +0200)]
tm: set log level to debug for negative return code of run_top_route()

- it returns the code of last execution action, negative return is not
  necessary an error

7 years agortpproxy: safety check for rtp stats pv
Daniel-Constantin Mierla [Tue, 9 Oct 2012 09:39:16 +0000 (11:39 +0200)]
rtpproxy: safety check for rtp stats pv

- if the rtpproxy is not responding, there is no returned value and
  could cause crash when doing strlen(NULL)
- return $null in case of various errors, being safer to check returned
  PV value in the script against $null, rather than having undefined
  value
- reported by J. Gallart

7 years agomsrp: fixed copy&paste issue for getting To-Path size
Daniel-Constantin Mierla [Tue, 9 Oct 2012 07:13:15 +0000 (09:13 +0200)]
msrp: fixed copy&paste issue for getting To-Path size

- the parsing of From-Path was used instead
- reported by Peter Dunkley

7 years agocore: Fix parser sdp bug. Reset connection IP for each stream.
Vicente Hernando [Fri, 7 Sep 2012 11:01:11 +0000 (07:01 -0400)]
core: Fix parser sdp bug. Reset connection IP for each stream.

If connection IP is not reset, then when a stream has no IP connection,
it uses former stream one instead of session default one.

7 years agomodules/sipcapture: Fixed crash in module initialization
Dragos Dinu [Mon, 8 Oct 2012 14:42:20 +0000 (17:42 +0300)]
modules/sipcapture: Fixed crash in module initialization

Leaving the default table_name parameter caused a segmentation fault
Reported by Juha Heinanen

7 years agoutils/misc/vim: added Makefile to install vim scripts
Daniel-Constantin Mierla [Sat, 6 Oct 2012 07:56:06 +0000 (09:56 +0200)]
utils/misc/vim: added Makefile to install vim scripts

- 'make install' copies the files to home .vim folder
- updated README to reflect the new command

7 years agopv: two new functions- typeof(...) and not_empty(...)
Daniel-Constantin Mierla [Sat, 6 Oct 2012 07:52:37 +0000 (09:52 +0200)]
pv: two new functions- typeof(...) and not_empty(...)

- typeof(pvar, vtype) - test the type of the pseudo-variable
- not_empty(pvar) - test if the type is string and the value not empty

7 years agocore: added mod fix helper fixup_pvar_none(...)
Daniel-Constantin Mierla [Sat, 6 Oct 2012 07:38:57 +0000 (09:38 +0200)]
core: added mod fix helper fixup_pvar_none(...)

- first parameter is PV and the rest are not fixed up

7 years agopkg/gentoo: version bump, added ebuild for v3.3.1
Claudio Furrer [Fri, 5 Oct 2012 06:32:16 +0000 (03:32 -0300)]
pkg/gentoo: version bump, added ebuild for v3.3.1

7 years agonathelper(k): nicer handling of no sdp in sdp_1918(...)
Daniel-Constantin Mierla [Fri, 5 Oct 2012 12:34:13 +0000 (14:34 +0200)]
nathelper(k): nicer handling of no sdp in sdp_1918(...)

- don't print error message if there is no sdp body

7 years agoauth: new function pv_auth_check(...)
Daniel-Constantin Mierla [Wed, 3 Oct 2012 18:25:52 +0000 (20:25 +0200)]
auth: new function pv_auth_check(...)

- equivalent of auth_check(...) from auth_db, but taking the password
  from a PV -- combines pv_proxy_authenticate() and
  pv_www_authenticate()
- new module parameter use_domain that controls whether the domain part
  of URIs should be used or not to make the identity checks upon
  authentication with pv_auth_check(...)

7 years agoauth_db(k): moved the authorization checks flags to auth api
Daniel-Constantin Mierla [Wed, 3 Oct 2012 18:25:15 +0000 (20:25 +0200)]
auth_db(k): moved the authorization checks flags to auth api

7 years agoauth: new function has_credentials(realm)
Daniel-Constantin Mierla [Wed, 3 Oct 2012 12:58:44 +0000 (14:58 +0200)]
auth: new function has_credentials(realm)

- returns true if an authorization header matching the realm is found

7 years agokamailio.cfg: show how to include a local file if exists
Daniel-Constantin Mierla [Wed, 3 Oct 2012 12:26:12 +0000 (14:26 +0200)]
kamailio.cfg: show how to include a local file if exists

- kamailio-local.cfg is attempted to be loaded if exists in the same
  folder, allowing to set defines/paramters inside it without changing
  main kamailio.cfg

7 years agokamailio.cfg: test if DBURL is already defined before defining it
Daniel-Constantin Mierla [Wed, 3 Oct 2012 12:21:11 +0000 (14:21 +0200)]
kamailio.cfg: test if DBURL is already defined before defining it

- allow to set it via command line with -A DBURL='...'

7 years agomem: fixed MDBG() parameters
Daniel-Constantin Mierla [Wed, 3 Oct 2012 12:20:27 +0000 (14:20 +0200)]
mem: fixed MDBG() parameters

- log level is not necessary for this macro

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Juha Heinanen [Wed, 3 Oct 2012 06:29:32 +0000 (09:29 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

7 years agomem/f_malloc.c: downgraded print free(0) warning from LOG to MDBG.
Juha Heinanen [Wed, 3 Oct 2012 06:27:38 +0000 (09:27 +0300)]
mem/f_malloc.c: downgraded print free(0) warning from LOG to MDBG.

7 years agouac(k): documented the new parameter restore_dlg
Daniel-Constantin Mierla [Tue, 2 Oct 2012 19:53:22 +0000 (21:53 +0200)]
uac(k): documented the new parameter restore_dlg

7 years agouac(k): new paramter restore_dlg
Daniel-Constantin Mierla [Tue, 2 Oct 2012 19:50:59 +0000 (21:50 +0200)]
uac(k): new paramter restore_dlg

- if set to 1, then the module uses dialog variables to store the
  initial and new values for From/To headers
- default set to 0 - otherwise all calls that have changes to From/To
  headers must be tracked by dialog
- result of checking a report from Alex Balashov

7 years agomem: enhanced the warning message for free(0) of QM in debug mode
Daniel-Constantin Mierla [Tue, 2 Oct 2012 19:24:09 +0000 (21:24 +0200)]
mem: enhanced the warning message for free(0) of QM in debug mode

7 years agosdpops: added new function sdp_remove_line_by_prefix(string)
Daniel-Constantin Mierla [Tue, 2 Oct 2012 14:05:38 +0000 (16:05 +0200)]
sdpops: added new function sdp_remove_line_by_prefix(string)

- removes lines from SDP body that matches the prefix
- patch by Mikko Lehto

7 years agoparser/sdp: exported extract_field(...)
Daniel-Constantin Mierla [Tue, 2 Oct 2012 14:02:05 +0000 (16:02 +0200)]
parser/sdp: exported extract_field(...)

- part of patch for sdpops by Mikko Lehto

7 years agotcp: fix _wbufq_insert bug
Andrei Pelinescu-Onciul [Mon, 1 Oct 2012 09:55:16 +0000 (11:55 +0200)]
tcp: fix _wbufq_insert bug

When _wbufq_insert was called on a connection that had already
some data added to the write buffer (another process was faster
and added some data before the process that created the connection
had a chance to do it), a wrong size was used in a memmove.
This could lead either to corrupted messages or even crashes (if
 the messages were big enough to cause a buffer overflow).

Many thanks to Jijo for debugging it.

Reported-by: Jijo
7 years agoldap(k): updates for usage of pv cache for pv_elem_t
Daniel-Constantin Mierla [Fri, 28 Sep 2012 21:40:01 +0000 (23:40 +0200)]
ldap(k): updates for usage of pv cache for pv_elem_t

7 years agocarrierroute: updates for usage of pv cache in pv_elem_t
Daniel-Constantin Mierla [Fri, 28 Sep 2012 21:31:50 +0000 (23:31 +0200)]
carrierroute: updates for usage of pv cache in pv_elem_t

7 years agoapp_mono: fixed c&p typo names in examples
Daniel-Constantin Mierla [Fri, 28 Sep 2012 12:38:42 +0000 (14:38 +0200)]
app_mono: fixed c&p typo names in examples

8 years agousrloc(k): table version increased internally
Daniel-Constantin Mierla [Fri, 28 Sep 2012 09:02:04 +0000 (11:02 +0200)]
usrloc(k): table version increased internally

- it was done only in db schema by commit
  78dae896127ce6762e3fa7c2541e1b5f9b8a9023
- reported by siklub

8 years agomodules_k/pua: always use_table before making db queries
Juha Heinanen [Thu, 27 Sep 2012 16:16:47 +0000 (19:16 +0300)]
modules_k/pua: always use_table before making db queries

8 years agomodules/websocket: Updated documentation and fixed typo in configuration file example
Peter Dunkley [Thu, 27 Sep 2012 15:29:03 +0000 (16:29 +0100)]
modules/websocket: Updated documentation and fixed typo in configuration file example