sip-router
8 years agorls: fix small typo, reported from Klaus in FS#11
Henning Westerholt [Mon, 17 Jan 2011 17:47:44 +0000 (18:47 +0100)]
rls: fix small typo, reported from Klaus in FS#11

8 years agomodules_k/auth_diameter : if realm is NULL, do not crash but instead use uri.host...
Marius Zbihlei [Mon, 17 Jan 2011 12:42:31 +0000 (14:42 +0200)]
modules_k/auth_diameter : if realm is NULL, do not crash but instead use uri.host (as it was intended)

8 years agomodules_k/group : In case of incorrect param, don't crash
Marius Zbihlei [Mon, 17 Jan 2011 12:32:22 +0000 (14:32 +0200)]
modules_k/group : In case of incorrect param, don't crash

8 years agomodules/auth Fixed a bug when realm is NULL in challenge method
Marius Zbihlei [Mon, 17 Jan 2011 10:06:55 +0000 (12:06 +0200)]
modules/auth Fixed a bug when realm is NULL in challenge method

8 years agocore: switch.c Fixed dereference of null pointer
Marius Zbihlei [Fri, 14 Jan 2011 17:10:08 +0000 (19:10 +0200)]
core: switch.c Fixed dereference of null pointer

c->ct_rve is NULL in else branch, further deref. will cause chaos.

8 years agodb_postgres: check result status after query
Daniel-Constantin Mierla [Sun, 16 Jan 2011 22:05:19 +0000 (23:05 +0100)]
db_postgres: check result status after query

- connection might be broken and reported after the query operation
- try to reset the connection in this case
- reported by Javier Gallart

8 years agoapp_lua: updated the docs
Daniel-Constantin Mierla [Sun, 16 Jan 2011 21:44:32 +0000 (22:44 +0100)]
app_lua: updated the docs

8 years agoapp_lua: include xhttp api headers
Daniel-Constantin Mierla [Sun, 16 Jan 2011 21:40:54 +0000 (22:40 +0100)]
app_lua: include xhttp api headers

8 years agoapp_lua: exported xhttp API to Lua
Daniel-Constantin Mierla [Sun, 16 Jan 2011 21:32:28 +0000 (22:32 +0100)]
app_lua: exported xhttp API to Lua

8 years agoxhttp: exported xhttp reply via inter-module api
Daniel-Constantin Mierla [Sat, 15 Jan 2011 15:29:02 +0000 (16:29 +0100)]
xhttp: exported xhttp reply via inter-module api

8 years agodispatcher(k): don't safety check db con in child init
Daniel-Constantin Mierla [Sat, 15 Jan 2011 11:34:11 +0000 (12:34 +0100)]
dispatcher(k): don't safety check db con in child init

- proper db connection is returned based on pid condition

8 years agopdt(k): don't safety check the db con in child init
Daniel-Constantin Mierla [Sat, 15 Jan 2011 11:25:45 +0000 (12:25 +0100)]
pdt(k): don't safety check the db con in child init

- proper db connection is returned based on pid condition

8 years agomtree: don't safety check for db con in mod child
Daniel-Constantin Mierla [Sat, 15 Jan 2011 11:22:45 +0000 (12:22 +0100)]
mtree: don't safety check for db con in mod child

- proper connection will be returned based on pid condition

8 years agocore:modparam.c In case of a STRING type to STR type convertion, garbage was written
Marius Zbihlei [Fri, 14 Jan 2011 15:52:52 +0000 (17:52 +0200)]
core:modparam.c In case of a STRING  type to STR type convertion, garbage was written

The local "s" var was never written, a line was missing.

8 years agomodules_k/usrloc If path is Null, prevent memcpy on it in get_all_ucontact(mode DB_ONLY)
Marius Zbihlei [Fri, 14 Jan 2011 15:47:32 +0000 (17:47 +0200)]
modules_k/usrloc If path is Null, prevent memcpy on it in get_all_ucontact(mode DB_ONLY)

8 years agocore: In case of OOM, prevent crash
Marius Zbihlei [Fri, 14 Jan 2011 15:30:32 +0000 (17:30 +0200)]
core: In case of OOM, prevent crash

8 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Marius Bucur [Fri, 14 Jan 2011 15:33:40 +0000 (17:33 +0200)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

8 years agomodules_l/presence/notify.c fixed null pointer bug
Marius Bucur [Fri, 14 Jan 2011 15:31:25 +0000 (17:31 +0200)]
modules_l/presence/notify.c fixed null pointer bug

Added an additional check to avoid a possible dereference of a null pointer.

8 years agoPrevent NULL pointer dereference when rtype was incorrect
Marius Zbihlei [Fri, 14 Jan 2011 15:20:40 +0000 (17:20 +0200)]
Prevent NULL pointer dereference when rtype was incorrect

Found with clang

8 years agolib/srdb1 Prevent crash in case of incorrect parameter
Marius Zbihlei [Fri, 14 Jan 2011 15:04:09 +0000 (17:04 +0200)]
lib/srdb1 Prevent crash in case of incorrect parameter

Reported by clang.

8 years agomodules_s/register Prevented crash in case of incorrect uri
Marius Zbihlei [Fri, 14 Jan 2011 14:58:03 +0000 (16:58 +0200)]
modules_s/register Prevented crash in case of incorrect uri

Error logic performed a free_params on an garbage value (not initialized)
Reported by clang & llvm

8 years agomodules_k/mi_datagram Fixed pkg_free of incorrect pointer on error path
Marius Zbihlei [Fri, 14 Jan 2011 14:53:43 +0000 (16:53 +0200)]
modules_k/mi_datagram Fixed pkg_free of incorrect pointer on error path

Static analysis provided by clang and llvm

8 years agosnmpstats: fixed faulty allocation of snmp stats array
Daniel-Constantin Mierla [Thu, 13 Jan 2011 10:20:07 +0000 (11:20 +0100)]
snmpstats: fixed faulty allocation of snmp stats array

- the size of struct was used while the pointer to that struct was in
  the array
- reported by Paul Pankhurst

8 years agomodules_k/presence: added new functionality to the presence engine
Marius Bucur [Wed, 12 Jan 2011 16:13:32 +0000 (18:13 +0200)]
modules_k/presence: added new functionality to the presence engine

The new "dbmode" parameter controls the way subscriptions are handled: in memory, fallback to database, or database only.
The "fallback2db" parameter will still ve available for config compatibility.

8 years agodb_postgres: reconnect support for DB API v1
Daniel-Constantin Mierla [Tue, 11 Jan 2011 22:08:25 +0000 (23:08 +0100)]
db_postgres: reconnect support for DB API v1

- attept to reconnect to postgres server upon bad connection (e.g.,
  connection lost)
- number of retries can be set via command line parameter, reusing
  exisiting one from DB API v2

8 years agodialog(k): fix db connection conflict after the last backports
Daniel-Constantin Mierla [Tue, 11 Jan 2011 16:00:38 +0000 (17:00 +0100)]
dialog(k): fix db connection conflict after the last backports

- reported by Phillman25 Kyriacou

8 years agosrdb1: extended warning with PIDs of conflicting connections
Daniel-Constantin Mierla [Mon, 10 Jan 2011 21:44:31 +0000 (22:44 +0100)]
srdb1: extended warning with PIDs of conflicting connections

- troubleshooting purposes

8 years agouac_redirect: use the flag for parsing contact header
Daniel-Constantin Mierla [Fri, 7 Jan 2011 22:25:10 +0000 (23:25 +0100)]
uac_redirect: use the flag for parsing contact header

- header type was used instead

8 years agomodules/enum: fixed access to service parameter in enum_query.
Juha Heinanen [Thu, 6 Jan 2011 09:14:14 +0000 (11:14 +0200)]
modules/enum: fixed access to service parameter in enum_query.

8 years agoMakefile: increased devel version
Daniel-Constantin Mierla [Wed, 5 Jan 2011 19:25:05 +0000 (20:25 +0100)]
Makefile: increased devel version

8 years agomsilo(k): simplified getting of From/To
Daniel-Constantin Mierla [Wed, 5 Jan 2011 19:00:49 +0000 (20:00 +0100)]
msilo(k): simplified getting of From/To

8 years agorls(k): module polishing
Daniel-Constantin Mierla [Wed, 5 Jan 2011 18:52:27 +0000 (19:52 +0100)]
rls(k): module polishing

- optimiezed error checking for broken sip requests
- internal naming changes to avoid object conflicts
- query for rls services documents (reported by Klaus Darilion)

8 years agocore: defines to return parsed uri in From and To
Daniel-Constantin Mierla [Wed, 5 Jan 2011 17:55:54 +0000 (18:55 +0100)]
core: defines to return parsed uri in From and To

8 years agocore: parse_to_header() moved to parser/parse_to.{c,h}
Daniel-Constantin Mierla [Wed, 5 Jan 2011 15:23:44 +0000 (16:23 +0100)]
core: parse_to_header() moved to parser/parse_to.{c,h}

- more convenient way of testing the validity of To header

8 years agorls(k): control loading db subs
Daniel-Constantin Mierla [Wed, 5 Jan 2011 14:24:02 +0000 (15:24 +0100)]
rls(k): control loading db subs

- parameter that can be used to control the db load from config

8 years agorls(k): fixed double-quotes wrong position
Daniel-Constantin Mierla [Wed, 5 Jan 2011 14:11:39 +0000 (15:11 +0100)]
rls(k): fixed double-quotes wrong position

- reported by Klaus Darilion

8 years agokcore: extended supported parser with eventlist
Daniel-Constantin Mierla [Wed, 5 Jan 2011 14:11:08 +0000 (15:11 +0100)]
kcore: extended supported parser with eventlist

8 years agocfg_rpc: RPC commands for value deletion
Miklos Tirpak [Wed, 5 Jan 2011 14:10:06 +0000 (15:10 +0100)]
cfg_rpc: RPC commands for value deletion

Two RPC commands added for deleting a configuration value from
a group instance:

cfg.del group[id] var
cfg.del_delayed group[id] var

8 years agocfg framework: group instance values can be deleted
Miklos Tirpak [Wed, 5 Jan 2011 13:57:14 +0000 (14:57 +0100)]
cfg framework: group instance values can be deleted

Added support for deleting a single value from a group instance.
The value is reset to the default value in this case, it follows the
changes of the default value.

Related functions:

- cfg_del_now()
- cfg_del_delayed()

8 years agobit test: bit_test_and_reset() added
Miklos Tirpak [Wed, 5 Jan 2011 10:40:20 +0000 (11:40 +0100)]
bit test: bit_test_and_reset() added

The function returns the bit found at offset position
in a bitstring and resets the bit to 0.

8 years agocfg framework: cfg_group_inst_exists() added
Miklos Tirpak [Tue, 4 Jan 2011 15:21:04 +0000 (16:21 +0100)]
cfg framework: cfg_group_inst_exists() added

The function checkes whether or not a group instance exists.

8 years agocfg framework: cfg_set_* works with dynamic group even before forking
Miklos Tirpak [Tue, 4 Jan 2011 14:47:14 +0000 (15:47 +0100)]
cfg framework: cfg_set_* works with dynamic group even before forking

Added support for the cfg_set_* functions for dynamic groups
(i.e. variables declared from the script) before forking.

8 years agocfg framework: crash when adding a new group instance
Miklos Tirpak [Tue, 4 Jan 2011 10:28:53 +0000 (11:28 +0100)]
cfg framework: crash when adding a new group instance

A log message trying to print a NULL variable name caused
a crash when a new group instance was added before forking
without any variable.

8 years agocfg framework: mem leak in del_group_inst is corrected
Miklos Tirpak [Tue, 4 Jan 2011 10:14:30 +0000 (11:14 +0100)]
cfg framework: mem leak in del_group_inst is corrected

cfg_del_group_inst() did not free the strings that were
set within the group instance. When the group instance was
deleted, the strings left allocated.

8 years agocfg framework: add/del_group_inst updates the local config
Miklos Tirpak [Mon, 3 Jan 2011 11:22:46 +0000 (12:22 +0100)]
cfg framework: add/del_group_inst updates the local config

add/del_group_inst() updates the local configuration to
make sure that cfg_set_*() sees the change when it immediately
follows the group intance modification.

8 years agopkg/deb(k): removed rls from excluded list
Daniel-Constantin Mierla [Wed, 5 Jan 2011 12:17:26 +0000 (13:17 +0100)]
pkg/deb(k): removed rls from excluded list

- patch by Klaus Darilion

8 years agoxcap_server: fix len for 'uri' comparison
Daniel-Constantin Mierla [Wed, 5 Jan 2011 12:15:32 +0000 (13:15 +0100)]
xcap_server: fix len for 'uri' comparison

- patch by Klaus Darilion

8 years agorls(k): documented server_address parameter
Daniel-Constantin Mierla [Wed, 5 Jan 2011 11:59:41 +0000 (12:59 +0100)]
rls(k): documented server_address parameter

- patch by Klaus Darilion

8 years agorls(k): use server_address paramter as contact in reply
Daniel-Constantin Mierla [Wed, 5 Jan 2011 11:47:37 +0000 (12:47 +0100)]
rls(k): use server_address paramter as contact in reply

- server_address was just defined as parameter, but not used at all
- server_address defines the rls server address to be set in Contact
  header of 200 replies. It has to be a valid SIP URI
- fix cseq stale check
- remove Max-Forward header because it is automatically added and use
  Suppoted instead of Support for header name with supported events
- patch by Klaus Darilion

8 years agorls(k): added CRLF for Subscription-State header
Daniel-Constantin Mierla [Wed, 5 Jan 2011 11:45:58 +0000 (12:45 +0100)]
rls(k): added CRLF for Subscription-State header

- for the case of subscrition termination on timeout, the header was
  missing CRLF to its end
- patch by Klaus Darilion

8 years agorls(k): documented outbound_proxy parameter
Daniel-Constantin Mierla [Wed, 5 Jan 2011 10:19:49 +0000 (11:19 +0100)]
rls(k): documented outbound_proxy parameter

8 years agorls(k): added outbound_proxy parameter
Daniel-Constantin Mierla [Wed, 5 Jan 2011 10:15:28 +0000 (11:15 +0100)]
rls(k): added outbound_proxy parameter

- set SIP uri where to send subscriptions

8 years agodb_flatstore: skip child init for proc init rank
Daniel-Constantin Mierla [Mon, 3 Jan 2011 23:43:08 +0000 (00:43 +0100)]
db_flatstore: skip child init for proc init rank

8 years agodb_flatstore: use PROC_MIN to compute process uid
Daniel-Constantin Mierla [Mon, 3 Jan 2011 23:39:58 +0000 (00:39 +0100)]
db_flatstore: use PROC_MIN to compute process uid

- PROC_TCP_MAIN is no longer the lowerest and can produce overlappings

8 years agopdb: skip child init for proc init and tcp main
Daniel-Constantin Mierla [Mon, 3 Jan 2011 23:29:16 +0000 (00:29 +0100)]
pdb: skip child init for proc init and tcp main

8 years agomatrix: don't do db init for rank==proc_init and tcp main
Daniel-Constantin Mierla [Mon, 3 Jan 2011 23:25:20 +0000 (00:25 +0100)]
matrix: don't do db init for rank==proc_init and tcp main

8 years agodoc: add small note about SCTP compile time deps to INSTALL file, reported from Juha
Henning Westerholt [Mon, 3 Jan 2011 11:41:20 +0000 (12:41 +0100)]
doc: add small note about SCTP compile time deps to INSTALL file, reported from Juha

8 years agodialog(k): open db connection for main process in db delayed mode
Daniel-Constantin Mierla [Sun, 2 Jan 2011 18:56:40 +0000 (19:56 +0100)]
dialog(k): open db connection for main process in db delayed mode

- used at shutdown to write to db

8 years agopdt(k): mi child init function name updated
Daniel-Constantin Mierla [Sun, 2 Jan 2011 18:44:18 +0000 (19:44 +0100)]
pdt(k): mi child init function name updated

- child_init => mi_child_init
- mod_child_init => child_init

8 years agomtree: skip db init for special ranks
Daniel-Constantin Mierla [Sun, 2 Jan 2011 18:39:11 +0000 (19:39 +0100)]
mtree: skip db init for special ranks

8 years agodialplan: fix matching string comparison op
Daniel-Constantin Mierla [Sun, 2 Jan 2011 15:10:40 +0000 (16:10 +0100)]
dialplan: fix matching string comparison op

- the return code was tested as for match of regexp, which led to
  mismatches for str comparison
- credits to Jordan Levy

8 years agodialplan: use size_t to get the size of compiled pcre
Daniel-Constantin Mierla [Sun, 2 Jan 2011 15:00:13 +0000 (16:00 +0100)]
dialplan: use size_t to get the size of compiled pcre

- it caused crash on 64b since size was declared as int and
  pcre_fullinfo() expects size_t (on 32b is the same struct size)
- reported by Javier Gallart and Bayan Towfiq
- credits to Bayan for provinding testing environment and
  troubleshooting assistance, closes FS#109

8 years agoxhttp: safety checks for null parameter values
Daniel-Constantin Mierla [Thu, 30 Dec 2010 23:40:32 +0000 (00:40 +0100)]
xhttp: safety checks for null parameter values

8 years agodialplan: specific reply for translation failure
Daniel-Constantin Mierla [Thu, 30 Dec 2010 23:00:26 +0000 (00:00 +0100)]
dialplan: specific reply for translation failure

- 404 no translation returned if dp_translate MI command fails to do
  dialplan translate
- added extra debug message

8 years agomodules_k/pv: Fix microsecond respresentation of $TV(Sn)
Alex Hermann [Tue, 28 Dec 2010 12:44:53 +0000 (13:44 +0100)]
modules_k/pv: Fix microsecond respresentation of $TV(Sn)

Make sure <100000us isn't off by multiple powers of 10.
eg make sure 5us isn't printed as 0.5 sec by padding with 0's

8 years agoldap(k): connect to server for negative ranks
Daniel-Constantin Mierla [Tue, 28 Dec 2010 10:38:57 +0000 (11:38 +0100)]
ldap(k): connect to server for negative ranks

- there are some processes with negative rank that need connection to
  ldap server, like timers
- reported by Pan Christensen

8 years agokamctl: removed db_berkeley lcr obsolete tables
Daniel-Constantin Mierla [Tue, 28 Dec 2010 10:02:38 +0000 (11:02 +0100)]
kamctl: removed db_berkeley lcr obsolete tables

8 years agokamctl: added db_berkeley table definitions for lcr
Daniel-Constantin Mierla [Tue, 28 Dec 2010 10:00:59 +0000 (11:00 +0100)]
kamctl: added db_berkeley table definitions for lcr

- reported by Noa Resare

8 years agolcr: removed obsoleted db tables
Daniel-Constantin Mierla [Tue, 28 Dec 2010 09:59:09 +0000 (10:59 +0100)]
lcr: removed obsoleted db tables

8 years agodb_text(k): add lcr tables def files
Daniel-Constantin Mierla [Mon, 27 Dec 2010 12:54:55 +0000 (13:54 +0100)]
db_text(k): add lcr tables def files

8 years agokex: get rid of 64b warnings in pkg stats updates
Daniel-Constantin Mierla [Thu, 23 Dec 2010 10:23:36 +0000 (11:23 +0100)]
kex: get rid of 64b warnings in pkg stats updates

8 years agocore: fix typo added with pkg stats
Daniel-Constantin Mierla [Thu, 23 Dec 2010 08:42:01 +0000 (09:42 +0100)]
core: fix typo added with pkg stats

- reported by Juha Heinanen

8 years agokex: updated pkg.stats documentation
Daniel-Constantin Mierla [Wed, 22 Dec 2010 12:07:33 +0000 (13:07 +0100)]
kex: updated pkg.stats documentation

8 years agokex: pkg.stats command extended
Daniel-Constantin Mierla [Wed, 22 Dec 2010 11:59:00 +0000 (12:59 +0100)]
kex: pkg.stats command extended

- it can take optionally a filter for which process to print pkg stats.
  It can be:
  - pid value - print by process pid
  - rank value - print by process rank
  - index value - print by index in process table

8 years agocore: fix ignored force_rport
Andrei Pelinescu-Onciul [Tue, 21 Dec 2010 13:38:45 +0000 (14:38 +0100)]
core: fix ignored force_rport

The global force_rport config setting (not the force_rport()
script function), was ignored in some cases (e.g. tm & sl).

Reported-by: Tomas Mandys tomas.mandys iptel org
8 years agokex: doxumented pkg.stats rpc command
Daniel-Constantin Mierla [Mon, 20 Dec 2010 22:39:07 +0000 (23:39 +0100)]
kex: doxumented pkg.stats rpc command

8 years agokex: print private memory usage per process via rpc
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:51:05 +0000 (09:51 +0100)]
kex: print private memory usage per process via rpc

- new rpc command pkg.stats that prints used, free and real_used metrics
  per process for private memory (pkg)
- you can see how much pkg each process is eating and how much is still
  available
- should be useful to track pkg memory leaks and/or trigger alerts when
  there is no more pkg available

8 years agodebugger: added some comments for functions
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:44:43 +0000 (09:44 +0100)]
debugger: added some comments for functions

8 years agocore: execute core events when pkg usage changes
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:40:46 +0000 (09:40 +0100)]
core: execute core events when pkg usage changes

- track used and real_used metrics for q/f_malloc when MALLOC_STATS is
  defined

8 years agocore: added core events for pkg operations
Daniel-Constantin Mierla [Mon, 20 Dec 2010 08:39:40 +0000 (09:39 +0100)]
core: added core events for pkg operations

- ability to track pkg used and real_used metrics

8 years agocfgutils: documented pkg/shm_summary()
Daniel-Constantin Mierla [Sun, 19 Dec 2010 20:23:15 +0000 (21:23 +0100)]
cfgutils: documented pkg/shm_summary()

8 years agocfgutils: added pkg_summary() and shm_summary()
Daniel-Constantin Mierla [Sun, 19 Dec 2010 20:13:06 +0000 (21:13 +0100)]
cfgutils: added pkg_summary() and shm_summary()

- ability to print summary of pkg and shm from config

8 years agoacc(k): take r-uri from winning branch for missed call acc
Daniel-Constantin Mierla [Sun, 19 Dec 2010 10:56:49 +0000 (11:56 +0100)]
acc(k): take r-uri from winning branch for missed call acc

- only if the branch was relayed, otherwise uac struct might be
  unfinished due to drop call in config. Use r-uri from uas struct
  otherwise
- reported by Juha Henanen

8 years agodialplan: don't print PV name in replacement
Daniel-Constantin Mierla [Fri, 17 Dec 2010 23:34:54 +0000 (00:34 +0100)]
dialplan: don't print PV name in replacement

- reported by Andreas Granig

8 years agopv: added PV $rmid - request method id
Daniel-Constantin Mierla [Thu, 16 Dec 2010 13:11:56 +0000 (14:11 +0100)]
pv: added PV $rmid - request method id

- return internal integer representation of SIP method type

8 years agomodules/lcr: do not try to use rule target if its gw has been disabled.
Juha Heinanen [Thu, 16 Dec 2010 08:59:56 +0000 (10:59 +0200)]
modules/lcr: do not try to use rule target if its gw has been disabled.
(cherry picked from commit 46eb7cc5e7ed341111f5cefd667b97f98d73591e)

8 years agocore: removed unused piece of code
Daniel-Constantin Mierla [Wed, 15 Dec 2010 19:54:38 +0000 (20:54 +0100)]
core: removed unused piece of code

- reported by Klaus Darilion

8 years agomodules/lcr: fixed adding of ;transport parameter
Juha Heinanen [Mon, 13 Dec 2010 16:12:08 +0000 (18:12 +0200)]
modules/lcr: fixed adding of ;transport parameter

9 years agouac(k): stop trying to re-auth if first attempt fails
Daniel-Constantin Mierla [Tue, 7 Dec 2010 23:20:44 +0000 (00:20 +0100)]
uac(k): stop trying to re-auth if first attempt fails

- don't do cascade authentication if server keeps sending 401 for new
  attepts
- reported by Bernhard Suttner, part of FS#108

9 years agodrouting: added note about dr_gateways
Daniel-Constantin Mierla [Mon, 6 Dec 2010 09:23:54 +0000 (10:23 +0100)]
drouting: added note about dr_gateways

- it can link to dr_gw_lists with '#'
- reported by Marc Cardinal, FS#96

9 years agopv: $snd(id) broken in $sndto(id) and $sndfrom(id)
Daniel-Constantin Mierla [Sun, 5 Dec 2010 23:05:46 +0000 (00:05 +0100)]
pv: $snd(id) broken in $sndto(id) and $sndfrom(id)

- $snd(id) is aliased to $sndto(id)
- $sndto(id) points to next hop address
- $sndfrom(id) points to local socket to be used for sending

9 years agoauth: README regenerated
Daniel-Constantin Mierla [Sun, 5 Dec 2010 22:28:31 +0000 (23:28 +0100)]
auth: README regenerated

9 years agoauth_db(k): more granular return codes for failure cases
Daniel-Constantin Mierla [Sun, 5 Dec 2010 22:25:41 +0000 (23:25 +0100)]
auth_db(k): more granular return codes for failure cases

- enhanced the config auth functions return codes
- part of a path by Alex Hermann, FS#101

9 years agoauth: more return codes for auth API
Daniel-Constantin Mierla [Sun, 5 Dec 2010 22:23:41 +0000 (23:23 +0100)]
auth: more return codes for auth API

- report more granular failure causes
- part of patch by Alex Hermann, FS#101

9 years agodb_berkeley: updated module name
Daniel-Constantin Mierla [Sun, 5 Dec 2010 21:33:02 +0000 (22:33 +0100)]
db_berkeley: updated module name

- module name was set to db_bdb upon integration of k and s version,
  instead of module path name
- set now to db_berkeley
- reported by stas - FS#106

9 years agopkg/debian: Fix bad changelog.
Jon Bonilla [Sat, 4 Dec 2010 08:22:15 +0000 (09:22 +0100)]
pkg/debian: Fix bad changelog.
  * Prevents dpkg-parsechangelog not parsing the correct version and generating bad versiones packages.
(cherry picked from commit 88bda825581a919778eb6f85e0a7bf6b04ede630)

9 years agopkg debian
Jon Bonilla [Fri, 3 Dec 2010 15:38:01 +0000 (16:38 +0100)]
pkg debian
  * Update version to 3.1.1
  * Install general ChangeLog instead of Debian's one.
(cherry picked from commit 22b18eefa163392ab37c6274d1631824908a4b47)

9 years agouac: safety checks for empty values in uacreg
Daniel-Constantin Mierla [Fri, 3 Dec 2010 09:59:05 +0000 (10:59 +0100)]
uac: safety checks for empty values in uacreg

- the values in uacreg table must not be empty
- reported by Bernhard Suttner

9 years agodispatcher(k): fixed use of use_default parameter
Daniel-Constantin Mierla [Fri, 3 Dec 2010 09:45:00 +0000 (10:45 +0100)]
dispatcher(k): fixed use of use_default parameter

- when there was a single destination in destination set and it was in
  inactive state, then having parameter use_default=1 caused a divion by
  0 while atteptimpting to look for active destaintaion
- reported by Eric Hiller

9 years agomodules_k/textops: new function is_audio_on_hold()
Ovidiu Sas [Thu, 2 Dec 2010 19:56:11 +0000 (14:56 -0500)]
modules_k/textops: new function is_audio_on_hold()

 - returns true if at least one 'audio' stream is on hold
 - only 'audio' streams are checked