sip-router
8 years agocore: exported dprint_term_color() function
Elena-Ramona Modroiu [Wed, 26 Sep 2012 08:19:51 +0000 (10:19 +0200)]
core: exported dprint_term_color() function

8 years agopv: new transformation {s.stripto,c}
Daniel-Constantin Mierla [Wed, 26 Sep 2012 07:17:00 +0000 (09:17 +0200)]
pv: new transformation {s.stripto,c}

- remove the prefix until meeting 'c'
- "abcdef"{s.stripto,d} => "def"
- the char can be given in a pv

8 years agoregistrar(k): some contact attributes were not in $ulc(...)
Daniel-Constantin Mierla [Tue, 25 Sep 2012 22:18:49 +0000 (00:18 +0200)]
registrar(k): some contact attributes were not in $ulc(...)

- ruid, reg-id and instance were not returned by $ulc(...)

8 years agopv: new pv class - $K(key)
Daniel-Constantin Mierla [Tue, 25 Sep 2012 21:43:48 +0000 (23:43 +0200)]
pv: new pv class - $K(key)

- return the value for internal constant keywords
- key can be:
- IPv4 - returns AF_INET
- IPv6 - returns AF_INET6
- UDP - return PROTO_UDP
- TCP - return PROTO_TCP
- TLS - return PROTO_TLS
- SCTP - return PROTO_SCTP
- it can be used to compare the values from other pvs, such as $af(id),
  $snd(af), $snd(proto), ...

8 years agopv: new pv class - $af(key)
Daniel-Constantin Mierla [Tue, 25 Sep 2012 21:13:50 +0000 (23:13 +0200)]
pv: new pv class - $af(key)

- return address family for received message
- key can be:
- id: return integer representation for IPv4 or IPv6 (value of AF_INET and AF_INET6)
- name: return "IPv4" or "IPv6"

8 years agonathelper(k): removed set_rtp_proxy_set() from docs
Daniel-Constantin Mierla [Tue, 25 Sep 2012 20:20:21 +0000 (22:20 +0200)]
nathelper(k): removed set_rtp_proxy_set() from docs

- the function is now part of the rtpproxy module

8 years agoutils/misc: few updates to vim syntax highlighting
Daniel-Constantin Mierla [Tue, 25 Sep 2012 11:52:05 +0000 (13:52 +0200)]
utils/misc: few updates to vim syntax highlighting

8 years agosanity: fix to parameter type in example
Daniel-Constantin Mierla [Tue, 25 Sep 2012 09:31:17 +0000 (11:31 +0200)]
sanity: fix to parameter type in example

8 years agomodules_k/nathelper: add_contact_alias() now accepts parameters
Juha Heinanen [Fri, 21 Sep 2012 09:55:36 +0000 (12:55 +0300)]
modules_k/nathelper: add_contact_alias() now accepts parameters

- Function add_contact_alias() can now be given ip addr, port, and proto
  as parameters.

8 years agotopoh: use L_DBG instead of L_ERR for some debugging messages
Daniel-Constantin Mierla [Fri, 21 Sep 2012 07:44:21 +0000 (09:44 +0200)]
topoh: use L_DBG instead of L_ERR for some debugging messages

- reported by Miguel Baptista

8 years agomodules/ctl: remove limitation on number of message chunks
Richard Fuchs [Thu, 20 Sep 2012 16:08:03 +0000 (12:08 -0400)]
modules/ctl: remove limitation on number of message chunks

binrpc uses an iovec to send out replies, which is limited in size and so
severely limits the number of elements that can be returned. This patch adds
a callback function to send out and empty the iovec array every time it gets
full while it's being populated.

8 years agoMakefile: added new target 'printvar'
Daniel-Constantin Mierla [Wed, 19 Sep 2012 19:44:01 +0000 (21:44 +0200)]
Makefile: added new target 'printvar'

- prints the value of a Makefile variable whose name is provided in
  variable 'v', e.g.,::
make printvar v=exclude_modules

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Carsten Bock [Tue, 18 Sep 2012 18:43:29 +0000 (20:43 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

8 years agoMinor bug-fix: Need to update length.
Carsten Bock [Tue, 18 Sep 2012 18:42:55 +0000 (20:42 +0200)]
Minor bug-fix: Need to update length.

8 years agomodules/websocket: Updated example kamailio.cfg
Peter Dunkley [Tue, 18 Sep 2012 18:29:36 +0000 (19:29 +0100)]
modules/websocket: Updated example kamailio.cfg

- Now using corex and alias_subdomains.

  It is quite likely that a WebSocket server will be running on a host within
  the domain it is authoritative for and that the WebSocket client will
  address that host directly.  This means that the alias_subdomains modparam
  is a good way to get a domain and all of its sub-domains to match "myself".

  This is very useful for checking the Host: header in the WebSocket
  handshake.

- Added handling of OPTIONS pings.

- Fixed a problem with the Host: header check.

  When you connect to a WS or WSS socket in Google Chrome on the default ports
  (80 and 443 respectively) the Host: header will contain just a hostname
  (for example, "proxy.example.com") which works with is_myself().

  When you connect to a WS or WSS socket in Google Chrome on a non-default port
  (for example, 8080 or 8443 respectively) the Host: header will contain a
  hostname and port (for example, "proxy.example.com:8080") whoch does not work
  with is_myself().

  However, both "sip:proxy.example.com" and "sip:proxy.example.com:8080" will
  work, so simply adding "sip:" to the start of the contents of the Host:
  header before checking fixes the problem.

- Tidied up response reason texts.

- Tidied up some of the TLS specific checks in event_route[xhttp:request].

- Removed some DBG level log messages.

- Added a (commented out) example for checking the Origin: header in the
  WebSocket handshake.

8 years agocorex: fixed typos in documentation example
Daniel-Constantin Mierla [Tue, 18 Sep 2012 12:50:33 +0000 (14:50 +0200)]
corex: fixed typos in documentation example

8 years agopkg/kamailio/(centos|fedora): Fixed some issues with boxgrinder builds
Peter Dunkley [Tue, 18 Sep 2012 10:53:02 +0000 (11:53 +0100)]
pkg/kamailio/(centos|fedora): Fixed some issues with boxgrinder builds

- Fixed typo in README
- New version of BoxGrinder limits appliance name to 35 characters
  (so had to shorten these)

8 years agopkg/kamailio/rpm: fixed copy&paste error for PKG_MEMORY size
Daniel-Constantin Mierla [Tue, 18 Sep 2012 07:27:38 +0000 (09:27 +0200)]
pkg/kamailio/rpm: fixed copy&paste error for PKG_MEMORY size

8 years agopkg/kamailio/rpm: added option to set pkg memory size for init.d script
Daniel-Constantin Mierla [Tue, 18 Sep 2012 07:18:52 +0000 (09:18 +0200)]
pkg/kamailio/rpm: added option to set pkg memory size for init.d script

- split of MEMORY parameter to SHM_MEMORY and PKG_MEMORY
- EXTRA_OPTIONS variable to add other command line parameters

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Carsten Bock [Mon, 17 Sep 2012 15:29:48 +0000 (17:29 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

8 years agoNew Option: "x" for automatic bridging between IPv4 and IPv6.
Carsten Bock [Mon, 17 Sep 2012 15:25:38 +0000 (17:25 +0200)]
New Option: "x" for automatic bridging between IPv4 and IPv6.
Based on the following assumption: "i" is the IPv4 interface
and "e" is the IPv6 interface on the RTPProxy (tested with both
RTPProxy and Sipwise's ngcp-mediaproxy-ng).

Mechanism is as follows:
- IP in SDP is IPv4: Do bridging "ie"
- IP in SDP is IPv6: Do bridging "ei"

Not a big deal, but makes the configuration much more easier.

8 years agocore:parser fix possible bug in msg_parser
Marius Zbihlei [Mon, 17 Sep 2012 14:34:57 +0000 (17:34 +0300)]
core:parser fix possible bug in msg_parser

If buffer was NULL, tmp was returned uninitialized, thus possible to cause problems

8 years agocore: fixed some bening (-Wunused-var) warnings displayed by clang
Marius Zbihlei [Mon, 17 Sep 2012 14:21:37 +0000 (17:21 +0300)]
core: fixed some bening (-Wunused-var) warnings displayed by clang

Core builds with no errors/warning

8 years agoMakefiles.defs: clang compiles to O9
Marius Zbihlei [Mon, 17 Sep 2012 14:21:02 +0000 (17:21 +0300)]
Makefiles.defs: clang compiles to O9

8 years agoRevert "Do not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets."
Carsten Bock [Mon, 17 Sep 2012 12:36:00 +0000 (14:36 +0200)]
Revert "Do not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets."
Can be done by configuration.

This reverts commit e1b3961b16b76b02ae7ad5f52b2e9db126f81ff9.

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Carsten Bock [Mon, 17 Sep 2012 12:35:12 +0000 (14:35 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

8 years agobenchmark: fixed bug/typo in calculating time diff ;)
Jason Penton [Mon, 17 Sep 2012 08:55:48 +0000 (10:55 +0200)]
benchmark: fixed bug/typo in calculating time diff ;)

8 years agocfg.y : improved printing of error messages to stderr
Marius Zbihlei [Mon, 17 Sep 2012 08:42:01 +0000 (11:42 +0300)]
cfg.y : improved printing of error messages to stderr

The -E was ignored during the yyparse() stage, if log_stderr=no parameter in the cfg was set (default config)
This caused problems debugging certain lodmodule errors.

8 years agoProvide inline linkage for non-gcc compilers(like clang)
Marius Zbihlei [Mon, 17 Sep 2012 07:17:41 +0000 (10:17 +0300)]
Provide inline linkage for non-gcc compilers(like clang)

Inline method in headers should be declared extern.

8 years agopkg/kamailio/fedora/16: Updated .spec for Fedora and CentOS builds
Peter Dunkley [Sun, 16 Sep 2012 23:03:58 +0000 (00:03 +0100)]
pkg/kamailio/fedora/16: Updated .spec for Fedora and CentOS builds

8 years agomodules_k/rls: Fixed segmentation fault in RLS when a resource-list is updated
Peter Dunkley [Sun, 16 Sep 2012 22:47:20 +0000 (23:47 +0100)]
modules_k/rls: Fixed segmentation fault in RLS when a resource-list is updated

- Found and fixed by Hugh Waite @ Crocodile RCS

8 years agomodules_k/rls: Fixed race-condition on multi-server systems that can cause different...
Peter Dunkley [Sun, 16 Sep 2012 22:46:07 +0000 (23:46 +0100)]
modules_k/rls: Fixed race-condition on multi-server systems that can cause different NOTIFYs with the same CSeq

- Found by Hugh Waite @ Crocodile RCS and fixed by Peter Dunkley @ Crocodile RCS

8 years agomodules_k/usrloc: modified syslog messages on bad and non-local sockets
Juha Heinanen [Sun, 16 Sep 2012 14:20:38 +0000 (17:20 +0300)]
modules_k/usrloc: modified syslog messages on bad and non-local sockets
- Changed syslog message on non-local socket from warning to debug,
  because non-local socket is ok when nathelper obtains the contacts and
  overrides the socket.
- Corrected syslog messages on bad and non-local sockets.

8 years agolib/srdb1/schema: added expires_idx on location table
Juha Heinanen [Sun, 16 Sep 2012 14:14:18 +0000 (17:14 +0300)]
lib/srdb1/schema: added expires_idx on location table

8 years agoMakefile.defs: version set to 3.4.0-dev4
Daniel-Constantin Mierla [Fri, 14 Sep 2012 11:45:14 +0000 (13:45 +0200)]
Makefile.defs: version set to 3.4.0-dev4

8 years agolib/kcore: other inline linker fixes
Marius Zbihlei [Fri, 14 Sep 2012 10:53:00 +0000 (13:53 +0300)]
lib/kcore: other inline linker fixes

use of 'static inline' where appliable

8 years agocore: Added support for the clang compiler
Marius Zbihlei [Fri, 14 Sep 2012 10:17:24 +0000 (13:17 +0300)]
core: Added support for the clang compiler

Support for clang, a C compiler from the LLVM suite has been added.
Install clang and run 'make cfg CC=clang && make' for building. GCC Inline assembly is supported.
TODO: clean warning caused by clang (-Wunused-variable, etc)

8 years agocore: Fixed inline function declaration for non-gcc linkers
Marius Zbihlei [Fri, 14 Sep 2012 10:15:47 +0000 (13:15 +0300)]
core: Fixed inline function declaration for non-gcc linkers

usage of either 'extern inline' or 'static inline' depending on function scope is recommended

8 years agocorex: documented the new parameter alias_subdomains
Daniel-Constantin Mierla [Tue, 11 Sep 2012 20:02:21 +0000 (22:02 +0200)]
corex: documented the new parameter alias_subdomains

8 years agocorex: new parameter alias_subdomains
Daniel-Constantin Mierla [Tue, 11 Sep 2012 19:52:01 +0000 (21:52 +0200)]
corex: new parameter alias_subdomains

- adds domain and all its subdomains to myself condition, registering a
  callback for check self event

8 years agoDo not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets.
Carsten Bock [Tue, 11 Sep 2012 17:39:32 +0000 (19:39 +0200)]
Do not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets.

8 years agodb scheme: add missing usrloc and aliases version increase, reported from Juha
Henning Westerholt [Tue, 11 Sep 2012 13:13:39 +0000 (15:13 +0200)]
db scheme: add missing usrloc and aliases version increase, reported from Juha

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Peter Dunkley [Tue, 11 Sep 2012 13:01:16 +0000 (14:01 +0100)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  registrar(k): set found if lookup for uri branch is successful

8 years agolib/srdb1/schema: Updated indices for presence tables based on results of latest...
Peter Dunkley [Tue, 11 Sep 2012 12:59:55 +0000 (13:59 +0100)]
lib/srdb1/schema: Updated indices for presence tables based on results of latest performance testing

- By Hugh Waite @ Crocodile RCS Ltd and Peter Dunkley @ Crocodile RCS Ltd

8 years agoregistrar(k): set found if lookup for uri branch is successful
Daniel-Constantin Mierla [Tue, 11 Sep 2012 12:46:03 +0000 (14:46 +0200)]
registrar(k): set found if lookup for uri branch is successful

- the additional branches can hit all not found, but still a found on
  r-uri can happen

8 years agomodules_k/pua: Adjusted locking for dialog insertion. Candidate fix for "temporary...
Peter Dunkley [Tue, 11 Sep 2012 12:23:23 +0000 (13:23 +0100)]
modules_k/pua: Adjusted locking for dialog insertion.  Candidate fix for "temporary dialog" error reported by Juha

8 years agomodules_k/rls: Fixed segmentation fault when uploading new contact lists for a logged...
Peter Dunkley [Tue, 11 Sep 2012 12:10:08 +0000 (13:10 +0100)]
modules_k/rls: Fixed segmentation fault when uploading new contact lists for a logged in subscriber

- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/rls: Improved check for expired subscriptions in DB only mode
Peter Dunkley [Tue, 11 Sep 2012 12:09:22 +0000 (13:09 +0100)]
modules_k/rls: Improved check for expired subscriptions in DB only mode

8 years agomodules_k/rls: Fixed issues with for() loops in DB only mode
Peter Dunkley [Tue, 11 Sep 2012 12:08:38 +0000 (13:08 +0100)]
modules_k/rls: Fixed issues with for() loops in DB only mode

- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/rls: core_hash() not used correctly to distribute notifier traffic
Peter Dunkley [Tue, 11 Sep 2012 12:06:54 +0000 (13:06 +0100)]
modules_k/rls: core_hash() not used correctly to distribute notifier traffic

- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/rls: Fixed issues to do with expiry and rls_expires_offset
Peter Dunkley [Tue, 11 Sep 2012 12:05:15 +0000 (13:05 +0100)]
modules_k/rls: Fixed issues to do with expiry and rls_expires_offset

- These cause particular problems on multi-server systems.
- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/rls: Added missing lock_release()
Peter Dunkley [Tue, 11 Sep 2012 12:03:32 +0000 (13:03 +0100)]
modules_k/rls: Added missing lock_release()

- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/pua_db: If PUA finds more than one matching dialog (when there should only...
Peter Dunkley [Tue, 11 Sep 2012 11:59:08 +0000 (12:59 +0100)]
modules_k/pua_db: If PUA finds more than one matching dialog (when there should only be one) delete them all

- A timing difference on multiple-servers can sometimes cause this,
  and (if it happens, it doesn't when the clocks are synced) you can
  end up with the same error coming out lots because the DB is not
  cleaned up.

8 years agomodules_k/pua: Fixed incorrect check/use of update_period modparam
Peter Dunkley [Tue, 11 Sep 2012 11:58:13 +0000 (12:58 +0100)]
modules_k/pua: Fixed incorrect check/use of update_period modparam

8 years agomodules_k/presence: Improved check for expired dialogs in DB only mode with notifier...
Peter Dunkley [Tue, 11 Sep 2012 11:56:52 +0000 (12:56 +0100)]
modules_k/presence: Improved check for expired dialogs in DB only mode with notifier tasks

8 years agomodules_k/presence: Fixed some problems with for() loops in DB only mode
Peter Dunkley [Tue, 11 Sep 2012 11:55:49 +0000 (12:55 +0100)]
modules_k/presence: Fixed some problems with for() loops in DB only mode

- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/presence: Fixed level of a diagnostic message
Peter Dunkley [Tue, 11 Sep 2012 11:54:51 +0000 (12:54 +0100)]
modules_k/presence: Fixed level of a diagnostic message

8 years agomodules_k/presence: core_hash not used correctly to distribute notifier traffic
Peter Dunkley [Tue, 11 Sep 2012 11:53:58 +0000 (12:53 +0100)]
modules_k/presence: core_hash not used correctly to distribute notifier traffic

- Found and fixed by Hugh Waite @ Crocodile RCS Ltd

8 years agomodules_k/presence: Fixed inconsistencies in use of expires_offset for removing subcr...
Peter Dunkley [Tue, 11 Sep 2012 11:51:33 +0000 (12:51 +0100)]
modules_k/presence: Fixed inconsistencies in use of expires_offset for removing subcriptions

- These caused particular problems on mulit-server, DB only, systems
- Found and fixed by Hugh Waite @ Crocodile RCS Ltd.

8 years agoregistrar(k): documented lookup_branches(...) function
Daniel-Constantin Mierla [Tue, 11 Sep 2012 11:01:13 +0000 (13:01 +0200)]
registrar(k): documented lookup_branches(...) function

8 years agoregistrar(k): new function lookup_branches(domain)
Daniel-Constantin Mierla [Tue, 11 Sep 2012 10:52:45 +0000 (12:52 +0200)]
registrar(k): new function lookup_branches(domain)

- lookup the contacts for r-uri and additional branches
- only branches that are clean (i.e., have only r-uri set) are used
- useful for group dialing, to lookup all AoR in the group, without a
  need to loop back

8 years agocore: whitespace identation fixes
Daniel-Constantin Mierla [Tue, 11 Sep 2012 10:45:25 +0000 (12:45 +0200)]
core: whitespace identation fixes

8 years agokamctl: regenerated the db creation scripts
Daniel-Constantin Mierla [Tue, 11 Sep 2012 07:02:51 +0000 (09:02 +0200)]
kamctl: regenerated the db creation scripts

- there were changes in presence tables not propagated to scripts
- it includes the updates for location tables

8 years agolib/srdb1: added unique constraint on ruid for aliases table
Daniel-Constantin Mierla [Tue, 11 Sep 2012 07:02:34 +0000 (09:02 +0200)]
lib/srdb1: added unique constraint on ruid for aliases table

8 years agolib/srdb1: added unique constraint on ruid for location table
Daniel-Constantin Mierla [Tue, 11 Sep 2012 07:00:10 +0000 (09:00 +0200)]
lib/srdb1: added unique constraint on ruid for location table

8 years agokex: documented mi statistics commands
Daniel-Constantin Mierla [Tue, 11 Sep 2012 06:52:53 +0000 (08:52 +0200)]
kex: documented mi statistics commands

- reported by David at lublink

8 years agodb schema: removed unique requirement from pua expires_idx
Juha Heinanen [Fri, 7 Sep 2012 16:16:37 +0000 (19:16 +0300)]
db schema: removed unique requirement from pua expires_idx

- TODO: change also other than mysql table structures

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Henning Westerholt [Fri, 7 Sep 2012 11:52:36 +0000 (13:52 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  Use &long_hf_len; instead of &uri_len; for path column in location table.

8 years agodb scheme: move usrloc and alias expire time 10 years to the future, to 2030
Henning Westerholt [Fri, 7 Sep 2012 10:57:30 +0000 (12:57 +0200)]
db scheme: move usrloc and alias expire time 10 years to the future, to 2030

8 years agoUse &long_hf_len; instead of &uri_len; for path column in location table.
Iñaki Baz Castillo [Fri, 7 Sep 2012 10:53:48 +0000 (12:53 +0200)]
Use &long_hf_len; instead of &uri_len; for path column in location table.

8 years agodialog: use long_hf_len instead of hardcoded value in table defs, no actual schema...
Henning Westerholt [Fri, 7 Sep 2012 10:44:33 +0000 (12:44 +0200)]
dialog: use long_hf_len instead of hardcoded value in table defs, no actual schema change

8 years agosdpops: Fix memory leakage in w_get_sdp function.
Vicente Hernando [Wed, 5 Sep 2012 10:44:39 +0000 (06:44 -0400)]
sdpops: Fix memory leakage in w_get_sdp function.

8 years agodialog(k): fixed the name of event route
Daniel-Constantin Mierla [Wed, 5 Sep 2012 06:58:18 +0000 (08:58 +0200)]
dialog(k): fixed the name of event route

- it is 'dialog:failed' instead of 'dialog:failure'
- reported by Uri Shacked

8 years agomodules/db_cassandra: Added raw query support
Boudewyn Ligthart [Tue, 4 Sep 2012 13:16:38 +0000 (16:16 +0300)]
modules/db_cassandra: Added raw query support

The raw queries can be performed through avpops module and have to have
the CQL syntax.

8 years agob/f: In case of IPv6 Option in the RTP-Command, the pointers and the length need...
Carsten Bock [Mon, 3 Sep 2012 19:31:58 +0000 (21:31 +0200)]
b/f: In case of IPv6 Option in the RTP-Command, the pointers and the length need to be updated.

8 years agokamdbctl: add some explanation to the variables section and fix path
Henning Westerholt [Mon, 3 Sep 2012 11:01:05 +0000 (13:01 +0200)]
kamdbctl: add some explanation to the variables section and fix path

8 years agoxlog: new module parameters log_colors
Elena-Ramona Modroiu [Mon, 3 Sep 2012 06:53:47 +0000 (08:53 +0200)]
xlog: new module parameters log_colors

- update the colorscheme for log levels

8 years agocore: added function to update log level color scheme
Elena-Ramona Modroiu [Mon, 3 Sep 2012 06:52:26 +0000 (08:52 +0200)]
core: added function to update log level color scheme

8 years agokamctl: regenerated db creation scripts
Daniel-Constantin Mierla [Sun, 2 Sep 2012 11:36:55 +0000 (13:36 +0200)]
kamctl: regenerated db creation scripts

8 years agoprefix_route: new parameter to control the exit from config
Daniel-Constantin Mierla [Sun, 2 Sep 2012 11:29:18 +0000 (13:29 +0200)]
prefix_route: new parameter to control the exit from config

- 'exit' controls if prefix_route() triggers cfg exit or returns true
  upon matching a prefix. Default is 1 (on) for backward compatibility
- prefix_route() takes an optional parameter that can be used to match
  the prefix instead of r-uri username

8 years agosrdb1: table_name set to unique constraint in version table
Daniel-Constantin Mierla [Sun, 2 Sep 2012 11:08:53 +0000 (13:08 +0200)]
srdb1: table_name set to unique constraint in version table

8 years agotm: new config parameter - remap_503_500
Daniel-Constantin Mierla [Sun, 2 Sep 2012 09:59:38 +0000 (11:59 +0200)]
tm: new config parameter - remap_503_500

- option to disable remapping of 503 response code to 500

8 years agocore: log_color - new global parameter to enable colorful log messages
Elena-Ramona Modroiu [Sat, 1 Sep 2012 14:24:02 +0000 (16:24 +0200)]
core: log_color - new global parameter to enable colorful log messages

- enabled only when log_stderr=1
- equivalent of -e command parameter
- it can be: 0 - disabled (no colors, default); 1 - enabled

8 years agocore: -e - new cli parameter to enable colorful log messages
Elena-Ramona Modroiu [Sat, 1 Sep 2012 14:16:21 +0000 (16:16 +0200)]
core: -e - new cli parameter to enable colorful log messages

- used only when log messages are printed to stderr
- each log level is printed in different color, using term colors (like
  $C(xy) variable)

8 years agomodules/dialplan: always set type of attrs pvar value
Juha Heinanen [Sat, 1 Sep 2012 10:32:18 +0000 (13:32 +0300)]
modules/dialplan: always set type of attrs pvar value

- Type of attrs pvar value was not set when dp_translate didn't result
  in any change.

8 years agoauth: print return code in log when nonce is invalid
Daniel-Constantin Mierla [Fri, 31 Aug 2012 08:29:45 +0000 (10:29 +0200)]
auth: print return code in log when nonce is invalid

- it will give a clue about why nonce is considered invalid

8 years agocorex: a new module to collect reimplemented core cfg functions
Daniel-Constantin Mierla [Thu, 30 Aug 2012 20:38:11 +0000 (22:38 +0200)]
corex: a new module to collect reimplemented core cfg functions

- old core functions for cofiguration file do not take variables in the
  parameters, working only with static strings or integers
- some of them will be reimplemented in corex moduel to add support for
  variables, making the parameters to be dynamic at runtime
- append_branch(...) was reimplemented at this moment, allowing URI and
  Q parameters to contain variables
- there are also brand new features - two RPC commands, one to list the
  listen sockets and the other to list the hostname aliases
- name of the module comes from CORE eXtensions

8 years agocore: removed append_branch() from cfg language structure
Daniel-Constantin Mierla [Thu, 30 Aug 2012 20:36:10 +0000 (22:36 +0200)]
core: removed append_branch() from cfg language structure

- cfg append_branch() is no longer implemented by core, being moved to
  corex module in order to allow variables in the parameters

8 years agokex: removed km_append_branch() cfg funtion
Daniel-Constantin Mierla [Thu, 30 Aug 2012 20:34:40 +0000 (22:34 +0200)]
kex: removed km_append_branch() cfg funtion

- functionalty being replaced by append_branch() from corex module which
  can take also Q as parameter

8 years agocore: exported get_valid_proto_name() via headers
Daniel-Constantin Mierla [Thu, 30 Aug 2012 08:16:04 +0000 (10:16 +0200)]
core: exported get_valid_proto_name() via headers

8 years agodb_cluster: safety check for existence of several DB API members
Daniel-Constantin Mierla [Thu, 30 Aug 2012 08:15:26 +0000 (10:15 +0200)]
db_cluster: safety check for existence of several DB API members

8 years agomodules/db_cassandra Updated in doc location table schema
Anca Vamanu [Thu, 30 Aug 2012 14:39:47 +0000 (17:39 +0300)]
modules/db_cassandra Updated in doc location table schema

8 years agomodules/db_cassandra: Fixed segmentation fault in case of bad table schema
Anca Vamanu [Thu, 30 Aug 2012 14:21:29 +0000 (17:21 +0300)]
modules/db_cassandra: Fixed segmentation fault in case of bad table schema

Reported by Boudewyn Ligthart.

8 years agondb_redis: argument checking in redisc_free_reply
Vicente Hernando [Thu, 30 Aug 2012 09:20:25 +0000 (05:20 -0400)]
ndb_redis: argument checking in redisc_free_reply

8 years agomodules/db_cassandra: Updated replace function to the new signature
Anca Vamanu [Thu, 30 Aug 2012 09:24:24 +0000 (12:24 +0300)]
modules/db_cassandra: Updated replace function to the new signature

8 years agomodules_k/nathelper: fix a= lines inserted out of order
Richard Fuchs [Wed, 29 Aug 2012 19:47:10 +0000 (15:47 -0400)]
modules_k/nathelper: fix a= lines inserted out of order

RFC 4566 dictates a particular order of fields in the SDP body, in particular
media-specific a= lines must be last fields within an m= block. Inserting
them right after the m= lines violates this order if other fields (such as
c=) are present, causing parse errors in some clients. So instead, insert
them at the end of each m= block.

8 years agondb_redis: redisc_exec_argv function
Vicente Hernando [Wed, 29 Aug 2012 16:45:40 +0000 (12:45 -0400)]
ndb_redis: redisc_exec_argv function

8 years agokamctl/dbcassandra: Updated schema for cassandra location table
Anca Vamanu [Wed, 29 Aug 2012 16:33:51 +0000 (19:33 +0300)]
kamctl/dbcassandra: Updated schema for cassandra location table

8 years agondb_redis: add some error checks in redisc_exec function.
Vicente Hernando [Mon, 27 Aug 2012 20:22:35 +0000 (16:22 -0400)]
ndb_redis: add some error checks in redisc_exec function.

8 years agondb_redis: add goto error_exec instead of return
Vicente Hernando [Mon, 27 Aug 2012 11:01:18 +0000 (07:01 -0400)]
ndb_redis: add goto error_exec instead of return