sip-router
10 years agoMerge remote branch 'origin/andrei/pointer_alias_warnings'
Andrei Pelinescu-Onciul [Thu, 28 Jan 2010 19:19:49 +0000 (20:19 +0100)]
Merge remote branch 'origin/andrei/pointer_alias_warnings'

compile warning fixes

* origin/andrei/pointer_alias_warnings:
  rr(s): fix recently introduced avp_cookie name bug
  core: avp aliasing warning fixes
  group: fix pointer aliasing warnings
  rr: pointer aliasing warning fixes
  db_postgres: pointer aliasing warnings fixes
  core: pointer aliasing warnings fixed
  cfg: fixed pointer aliasing warnings

Conflicts:
cfg/cfg_ctx.h
route.c

10 years agorr(s): fix recently introduced avp_cookie name bug andrei/pointer_alias_warnings
Andrei Pelinescu-Onciul [Thu, 28 Jan 2010 18:58:06 +0000 (19:58 +0100)]
rr(s): fix recently introduced avp_cookie name bug

- fix bug introduced in 34dc702 (while trying to fix pointer
  aliasing warnings)

10 years agocore: avp aliasing warning fixes
Andrei Pelinescu-Onciul [Thu, 28 Jan 2010 18:52:37 +0000 (19:52 +0100)]
core: avp aliasing warning fixes

- fixed bug introduced in e95c077.

10 years agopv(k): use $TV(Sn) for string timeval
Daniel-Constantin Mierla [Thu, 28 Jan 2010 18:43:50 +0000 (19:43 +0100)]
pv(k): use $TV(Sn) for string timeval

- previous commit introduced a naming conflict on 'sn'

10 years agopv(k): added $PV(sn)
Daniel-Constantin Mierla [Thu, 28 Jan 2010 18:35:10 +0000 (19:35 +0100)]
pv(k): added $PV(sn)

- string representation of current timeval (not cached)
- idea by Klaus Darilion

10 years agokamctl: added mtree sql scripts
Daniel-Constantin Mierla [Thu, 28 Jan 2010 17:57:39 +0000 (18:57 +0100)]
kamctl: added mtree sql scripts

10 years agomtree: added db table definition
Daniel-Constantin Mierla [Thu, 28 Jan 2010 17:54:08 +0000 (18:54 +0100)]
mtree: added db table definition

10 years agokamctl: added files for uac remote registrations
Daniel-Constantin Mierla [Thu, 28 Jan 2010 14:49:07 +0000 (15:49 +0100)]
kamctl: added files for uac remote registrations

10 years agouac(k): added table for remote user registration
Daniel-Constantin Mierla [Thu, 28 Jan 2010 14:47:02 +0000 (15:47 +0100)]
uac(k): added table for remote user registration

- xml files to generate db schema for uac module for remote server
  registrations

10 years agorenamed kamailio radius dictionary
Daniel-Constantin Mierla [Thu, 28 Jan 2010 13:21:57 +0000 (14:21 +0100)]
renamed kamailio radius dictionary

- matches the pattern used for install dictionary.$cfg_name

10 years agoMakefile: test if cfg, -basic and -oob exist
Daniel-Constantin Mierla [Thu, 28 Jan 2010 13:07:45 +0000 (14:07 +0100)]
Makefile: test if cfg, -basic and -oob exist

- cfg install check the existence of the files before atempting to copy
- name of cfg to install depends on flavour

10 years agoMakefile: use pkg/$MAIN_NAME/debian for defs
Daniel-Constantin Mierla [Thu, 28 Jan 2010 12:53:58 +0000 (13:53 +0100)]
Makefile: use pkg/$MAIN_NAME/debian for defs

- if pkg/$MAIN_NAME/debian dir exists use it to build debs, otherwise
  use pkg/debian

10 years agoMakefile: install kamctl for kamailio flavour
Daniel-Constantin Mierla [Thu, 28 Jan 2010 12:52:00 +0000 (13:52 +0100)]
Makefile: install kamctl for kamailio flavour

10 years agomtree: module compiles now
Daniel-Constantin Mierla [Thu, 28 Jan 2010 12:46:46 +0000 (13:46 +0100)]
mtree: module compiles now

- after early shm intialization was merged back from 3.0

10 years agoMakefile.defs: moved init of vars before FLAVOUR updates
Daniel-Constantin Mierla [Thu, 28 Jan 2010 12:44:08 +0000 (13:44 +0100)]
Makefile.defs: moved init of vars before FLAVOUR updates

- some vars might depend on type of FLAVOUR installed
- kamailio flavour compiles shm stats by default

10 years agoMakefile: version set to 3.0.99-dev1
Daniel-Constantin Mierla [Thu, 28 Jan 2010 12:34:21 +0000 (13:34 +0100)]
Makefile: version set to 3.0.99-dev1

10 years agopv(k): new PV class to select next hop attributes
Daniel-Constantin Mierla [Thu, 28 Jan 2010 11:53:08 +0000 (12:53 +0100)]
pv(k): new PV class to select next hop attributes

- use dst_uri if set otherwise new r-uri or original r-uri
- $nh(u) - uri
- $nh(U) - username
- $nh(d) - domain
- $nh(p) - port
- $nh(P) - protocol

10 years agopresence(k): dynamic support for new event package
Daniel-Constantin Mierla [Thu, 28 Jan 2010 11:06:07 +0000 (12:06 +0100)]
presence(k): dynamic support for new event package

- patch by Aymeric Moizard
- events can be given as EVENT_OTHER, matching being done on string
  value

10 years agomodules_k:siputils Improved documentation of ring_timeout parameter
Marius Zbihlei [Thu, 28 Jan 2010 10:10:24 +0000 (12:10 +0200)]
modules_k:siputils Improved documentation of ring_timeout parameter

10 years agopv(k): added new PV class to get timeval attributes
Daniel-Constantin Mierla [Wed, 27 Jan 2010 22:17:59 +0000 (23:17 +0100)]
pv(k): added new PV class to get timeval attributes

- $TV(s) - struct timeval tv_sec (cached per sip message)
- $TV(u) - struct timeval tv_usec (cached per sip message)
- $TV(sn) - struct timeval tv_sec (not cached)
- $TV(un) - struct timeval tv_usec (not cached)

10 years agosl(k): docs extension, dependency on tm
Henning Westerholt [Wed, 27 Jan 2010 16:38:17 +0000 (17:38 +0100)]
sl(k): docs extension, dependency on tm

10 years agodrouting: register MI commands
Daniel-Constantin Mierla [Wed, 27 Jan 2010 11:33:26 +0000 (12:33 +0100)]
drouting: register MI commands

- the module didn't register the MI commands in mod init
- reported by Denis Putyato

10 years agodrouting: updated db schema definition
Daniel-Constantin Mierla [Wed, 27 Jan 2010 11:27:51 +0000 (12:27 +0100)]
drouting: updated db schema definition

- use module name in description
- more appropriate field sizes

10 years agoMakefile: intialization of FLAVOUR var
Daniel-Constantin Mierla [Wed, 27 Jan 2010 11:15:14 +0000 (12:15 +0100)]
Makefile: intialization of FLAVOUR var

- use ?= instead of = to enable usage of value from env

10 years agoMerge remote branch 'origin/sr_3.0'
Andrei Pelinescu-Onciul [Wed, 27 Jan 2010 10:31:25 +0000 (11:31 +0100)]
Merge remote branch 'origin/sr_3.0'

latest sr_3.0 and kamailio_3.0 backports

* origin/sr_3.0: (90 commits)
  usrloc(k): rpc version for ul.dump
  core: init the len of sock_str attribute
  ctl: added parameters to control buffer size
  htable(k): rpc commad to dump htable
  pv(k): fixed $shv engine
  sanity: print From hdr in warning message
  nathelper(k): print bad contact uri
  core: more verbose when error parsing hdr
  kamailio.cfg: updated cfg with sample PSTN gw routing
  nathelper(k): fix for swap scenario
  presence(k): aliased MLA to SLA
  core: event parsing enahced for dialog;ma
  tm: documented t_relay_to() function
  tm: added t_relay_to(proxy, flags)
  tm: documented t_replicate() functions
  tm: t_replicate() can take avps & select as params
  tm: added t_replicate(uri)
  db_oracle: use PARAM_TYPE_MASK when checking param type
  snmpstats: fix param type checking
  core: define module_loaded to use find_module_by_name
  ...

Conflicts:
lib/srdb1/schema/dr_gateways.xml
lib/srdb1/schema/dr_groups.xml
lib/srdb1/schema/dr_gw_lists.xml
lib/srdb1/schema/dr_rules.xml
lib/srdb1/schema/kamailio-drouting.xml
modules/ctl/README
modules/topoh/README
modules_k/uac/auth.c
modules_k/uac/uac_send.c
parser/parse_param.h
utils/kamctl/mysql/drouting-create.sql
utils/kamctl/oracle/drouting-create.sql
utils/kamctl/postgres/drouting-create.sql

10 years agoapp_lua: added sl module to Lua
Daniel-Constantin Mierla [Tue, 26 Jan 2010 22:40:49 +0000 (23:40 +0100)]
app_lua: added sl module to Lua

- sl send_reply() function exported to Lua under module sr.sl
- restructured existing code for easier extensibility
- allow to register optional modules to Lua via new parameter 'register'

10 years agoMakefile: excluded app_lua from compile list
Daniel-Constantin Mierla [Tue, 26 Jan 2010 19:31:18 +0000 (20:31 +0100)]
Makefile: excluded app_lua from compile list

- depends on liblua5.1-dev

10 years agoMerge remote branch 'origin/tmp/k3.0_sr_backports' into sr_3.0
Andrei Pelinescu-Onciul [Tue, 26 Jan 2010 19:10:53 +0000 (20:10 +0100)]
Merge remote branch 'origin/tmp/k3.0_sr_backports' into sr_3.0

* origin/tmp/k3.0_sr_backports: (86 commits)
  usrloc(k): rpc version for ul.dump
  core: init the len of sock_str attribute
  ctl: added parameters to control buffer size
  htable(k): rpc commad to dump htable
  pv(k): fixed $shv engine
  sanity: print From hdr in warning message
  nathelper(k): print bad contact uri
  core: more verbose when error parsing hdr
  kamailio.cfg: updated cfg with sample PSTN gw routing
  nathelper(k): fix for swap scenario
  presence(k): aliased MLA to SLA
  core: event parsing enahced for dialog;ma
  tm: documented t_relay_to() function
  tm: added t_relay_to(proxy, flags)
  tm: documented t_replicate() functions
  tm: t_replicate() can take avps & select as params
  tm: added t_replicate(uri)
  db_oracle: use PARAM_TYPE_MASK when checking param type
  snmpstats: fix param type checking
  core: define module_loaded to use find_module_by_name
  ...

10 years agoreg(k): fix a (probably) copy and paste error
Henning Westerholt [Tue, 26 Jan 2010 16:50:02 +0000 (17:50 +0100)]
reg(k): fix a (probably) copy and paste error

10 years agoapp_lua: run Lua scripts from cfg
Daniel-Constantin Mierla [Mon, 25 Jan 2010 23:11:02 +0000 (00:11 +0100)]
app_lua: run Lua scripts from cfg

- new module to run embedded Lua scripts from cfg
- module exports functions to Lua in order to access current processed
  SIP message
- uses two Lua contexts, one for cached scripts (run functions from them
  at runtime) and one for execution of entire Lua scripts at runtime
- so far exported to Lua
- dbg, err and log functions - print messages using internal DBG API
- sr.hdr.{append, insert, remove, append_to_reply} - header
  management
- sr.pv.{get, seti, setf, unset, is_null} - PV management

10 years agouac(k): added remote registration capability
Daniel-Constantin Mierla [Sun, 24 Jan 2010 20:48:20 +0000 (21:48 +0100)]
uac(k): added remote registration capability

- uac module can register contacts to a remote server
- can auth REGISTER challenges
- uses db table uacreg to load credentials at startup
- no reload for now (have to restart to get the db updates)
- rpc function uac.reg_dump to dump in-memory table

10 years agouac(k): use header types for detection
Daniel-Constantin Mierla [Sun, 24 Jan 2010 20:21:59 +0000 (21:21 +0100)]
uac(k): use header types for detection

10 years agouac(k): renamed static var to avoid conflicts
Daniel-Constantin Mierla [Sun, 24 Jan 2010 20:21:08 +0000 (21:21 +0100)]
uac(k): renamed static var to avoid conflicts

10 years agouac(k): proper test for send failure
Daniel-Constantin Mierla [Sun, 24 Jan 2010 20:20:02 +0000 (21:20 +0100)]
uac(k): proper test for send failure

10 years agouac(k): exported functions for auth
Daniel-Constantin Mierla [Sun, 24 Jan 2010 18:49:21 +0000 (19:49 +0100)]
uac(k): exported functions for auth

- added prototypes and structures to .h

10 years agouac(k): set type for tm callback
Daniel-Constantin Mierla [Sun, 24 Jan 2010 18:43:09 +0000 (19:43 +0100)]
uac(k): set type for tm callback

- requires to be TMCB_LOCAL_COMPLETED

10 years agomodules_k/ratelimit Using ser's cfg framework for modifying module parameters at...
Marius Zbihlei [Fri, 22 Jan 2010 10:23:33 +0000 (12:23 +0200)]
modules_k/ratelimit Using ser's cfg framework for modifying module parameters at runtime(reply_code and reply_reason).

The patch allow reply_code and reply_reason to be modified using sercmd (modules/ctl/ctl.so and
modules/cfg_rpc/cfg_rpc.so must be loaded).Check module documentation for example.
Also it is interesting if we can modify at runtime other parameters of the module, like queue and pipe

10 years agoldap(k): fix ldapsearch with empty filter
Henning Westerholt [Thu, 21 Jan 2010 18:26:08 +0000 (19:26 +0100)]
ldap(k): fix ldapsearch with empty filter

  * fix ldapsearch with empty filter
  * When in routing script ldapsearch() is executed on LDAP query URL without
    the ‘filter’ section, request forming fails:
    ERROR: ldap [ldap_api_fn.c:193]: vsnprintf failed
  * Workaround for administrators can be filling filter section with
    ‘(objectclass=*)’, what is anyway substituted by ldap library to request
    in case filter parameter set to NULL.
 * Please notice that va_end() call is missing in original code.
 * Patch FS#23 from andrey dot utkin at wildix dot com

10 years agoutils/sercmd: Fixed getopt() missing param
Marius Zbihlei [Thu, 21 Jan 2010 15:32:42 +0000 (17:32 +0200)]
utils/sercmd: Fixed getopt() missing param

Getopt was missing the -U param

10 years agoMakefile: geoip module added to excluded list
Daniel-Constantin Mierla [Wed, 20 Jan 2010 10:52:37 +0000 (11:52 +0100)]
Makefile: geoip module added to excluded list

- depends on libgeoip

10 years agogeoip: new module for GeoIP checking
Daniel-Constantin Mierla [Wed, 20 Jan 2010 10:49:10 +0000 (11:49 +0100)]
geoip: new module for GeoIP checking

- get details about an ip address from GeoIP database
- results can be accessed via pseudo-variables: $gip(pvc=>key)
- ability to perform many searches and use results in parallel
- geoip db is loaded in cache at startup

10 years agomtree: in memory tree containers
Daniel-Constantin Mierla [Tue, 19 Jan 2010 18:24:07 +0000 (19:24 +0100)]
mtree: in memory tree containers

- new module that loads db tables in tree structures in shared memory
- tree are construct based on allowed character list (default:
  0123456789)
- it returns associated value as string, and has support to get it in
  precompiled form, returning in AVPs (for now pairs of dstid:weight)
- there can be many trees defined, with mi commands to reload and print
  content

10 years agoMakefile: blacklisted mtree module from compilation
Daniel-Constantin Mierla [Tue, 19 Jan 2010 18:20:21 +0000 (19:20 +0100)]
Makefile: blacklisted mtree module from compilation

- it requires backports from sr branch (shm_initialized())

10 years agointroducing new attribute "sw_max_uri_user" used by serweb
Karel Kozlik [Tue, 19 Jan 2010 09:05:30 +0000 (10:05 +0100)]
introducing new attribute "sw_max_uri_user" used by serweb

10 years agotest/unit/32.sh: Fixed test (postgresql)
Marius Zbihlei [Mon, 18 Jan 2010 13:41:43 +0000 (15:41 +0200)]
test/unit/32.sh: Fixed test (postgresql)

10 years agotest/unit/29.sh :Fixed test
Marius Zbihlei [Mon, 18 Jan 2010 13:26:29 +0000 (15:26 +0200)]
test/unit/29.sh :Fixed test

10 years agotest/unit/28.sh Fixed CPL-C module test
Marius Zbihlei [Mon, 18 Jan 2010 12:38:19 +0000 (14:38 +0200)]
test/unit/28.sh Fixed CPL-C module test

10 years agotest/unit/24.sh: Fixed path to kamdbctl script
Marius Zbihlei [Mon, 18 Jan 2010 12:26:01 +0000 (14:26 +0200)]
test/unit/24.sh: Fixed path to kamdbctl script

10 years agodb scheme(k): add missing d_routing database definitions for dbtext and db_berkeley
Henning Westerholt [Mon, 18 Jan 2010 11:49:57 +0000 (12:49 +0100)]
db scheme(k): add missing d_routing database definitions for dbtext and db_berkeley

10 years agonathelper(k): small code cleanup
Klaus Darilion [Mon, 18 Jan 2010 10:45:33 +0000 (10:45 +0000)]
nathelper(k): small code cleanup

- remove variable "asymmetric" as it is redundant and have same behavior as "real" variable

10 years agonathelper(k): improve documentation
Klaus Darilion [Mon, 18 Jan 2010 10:40:29 +0000 (10:40 +0000)]
nathelper(k): improve documentation

- better description about usage of i and e flags

10 years agosl(k):Fixed documentation error
Marius Zbihlei [Mon, 18 Jan 2010 09:17:52 +0000 (11:17 +0200)]
sl(k):Fixed documentation error

The correct param is bind_tm

10 years agoauth_db(k): document NONCE_REUSED code, port from 1.5, r5967
Henning Westerholt [Fri, 15 Jan 2010 18:56:23 +0000 (19:56 +0100)]
auth_db(k): document NONCE_REUSED code, port from 1.5, r5967

  * document return code -6: NONCE_REUSED. perhaps we might also just use the
    existing code -3: STALE_NONCE instead..
  * regenerate the docs for module

10 years agoauth(k): a few whitespace changes, adjust indention
Henning Westerholt [Fri, 15 Jan 2010 18:45:38 +0000 (19:45 +0100)]
auth(k): a few whitespace changes, adjust indention

10 years agoregistrar(k): port r5966, small doc clarification for default_expires param
Henning Westerholt [Fri, 15 Jan 2010 17:55:11 +0000 (18:55 +0100)]
registrar(k): port r5966,  small doc clarification for default_expires param

10 years agosr: small spelling fix in default sr cfg
Henning Westerholt [Fri, 15 Jan 2010 17:31:36 +0000 (18:31 +0100)]
sr: small spelling fix in default sr cfg

10 years agoImproved multihomed performance
Marius Zbihlei [Fri, 15 Jan 2010 16:56:29 +0000 (18:56 +0200)]
Improved multihomed performance

The mhomed implementation works by calling a socket()/connect()/getsockname()/close()
to find out the interface in a multihomed system.
Because mhomed works only for UDP sockets, a major performance improvement is shown
if we use the same socket for multiple connect()s, thus completly removing the socket() call
and the close() call.

The CPU load(user+system) shown in a mhomed environment on a stateless router, with a call rate of 6000 calls/s
is 46.1% load in the case of this patched version, versus 63.54% load in the case of the original
version.

10 years agoRevert "Fixed documentation naming of parameter in modules_k/sl module"
Marius Zbihlei [Fri, 15 Jan 2010 16:44:27 +0000 (18:44 +0200)]
Revert "Fixed documentation naming of parameter in modules_k/sl module"

This reverts commit fe71e47101defb0b7e61c0aa1157cb88d6be497e.

10 years agousrloc(k): rpc version for ul.dump
Daniel-Constantin Mierla [Sun, 10 Jan 2010 19:01:01 +0000 (20:01 +0100)]
usrloc(k): rpc version for ul.dump

- ul.dump is rpc alternative for MI ul_dump
- better alternative to avoid pkg frametation in MI process
(cherry picked from commit 3cc229a3c7ba36475c3bd67e4849297f9548bf26)

10 years agocore: init the len of sock_str attribute
Daniel-Constantin Mierla [Sun, 10 Jan 2010 18:02:42 +0000 (19:02 +0100)]
core: init the len of sock_str attribute
(cherry picked from commit f0d89fb89d1b588f253f048ab8fc22e0db7fff66)

10 years agoctl: added parameters to control buffer size
Daniel-Constantin Mierla [Sun, 10 Jan 2010 15:56:54 +0000 (16:56 +0100)]
ctl: added parameters to control buffer size

- new parameters to control binrpc buffers size:
- binrpc_max_body_size
- binrpc_struct_max_body_size
(cherry picked from commit acfc2142ed5ef3e61138792136eb32616502229d)

10 years agohtable(k): rpc commad to dump htable
Daniel-Constantin Mierla [Sun, 10 Jan 2010 14:56:10 +0000 (15:56 +0100)]
htable(k): rpc commad to dump htable

- htable can get big, rpc behaves better than MI
(cherry picked from commit 5997048fdbefee51aebb8c996178ceb44120a482)

10 years agopv(k): fixed $shv engine
Daniel-Constantin Mierla [Sun, 10 Jan 2010 13:25:54 +0000 (14:25 +0100)]
pv(k): fixed $shv engine

- shv relies on early shm initialization
- got rid of hacks to define first in pkg and move in shm at mod_init
- fixes 3.0 specific issues reported by Andrey 'Krieger' Utkin
- closes FS#22
(cherry picked from commit b69e1c96bf65a4c4f8fa6bec28699607ea03e24d)

10 years agosanity: print From hdr in warning message
Daniel-Constantin Mierla [Sun, 10 Jan 2010 11:09:20 +0000 (12:09 +0100)]
sanity: print From hdr in warning message

- when parsing of the header fails
(cherry picked from commit 195cdf43e8eea385330376184f8b78b7d0322780)

10 years agonathelper(k): print bad contact uri
Daniel-Constantin Mierla [Sun, 10 Jan 2010 11:08:45 +0000 (12:08 +0100)]
nathelper(k): print bad contact uri

- help in troubleshooting bad sip clients
(cherry picked from commit a93f7ad1ce21413d0e2a00e4c8579f6bfe0a8a3f)

10 years agocore: more verbose when error parsing hdr
Daniel-Constantin Mierla [Sun, 10 Jan 2010 11:07:34 +0000 (12:07 +0100)]
core: more verbose when error parsing hdr

- give a hint about the content parsing (max first 20 chars of attempted
  string)
(cherry picked from commit 78e8075eea603a854dcf0142dda0f1dae6c69857)

10 years agokamailio.cfg: updated cfg with sample PSTN gw routing
Daniel-Constantin Mierla [Fri, 8 Jan 2010 16:16:28 +0000 (17:16 +0100)]
kamailio.cfg: updated cfg with sample PSTN gw routing

- defined within WITH_PSTN
- calls to numbers starting with + or 00 are sent to PSTN GW
- use of custome cfg parameter to define GW IP
- remove preloaded Route headers for initial requests
(cherry picked from commit a9e4d86edeee7b2f70b33c89c91e800aefe11da0)

10 years agonathelper(k): fix for swap scenario
Daniel-Constantin Mierla [Thu, 7 Jan 2010 10:33:37 +0000 (11:33 +0100)]
nathelper(k): fix for swap scenario

A -> RTPP -> B, offer in INVITE, answer in 200 OK (SDP in INVITE+200 OK)
A -> RTPP -> B, re-Invite on session expiry, SDP in 200 OK + ACK

The from-tag and to-tag are not swapped in the ACK with
rtpproxy_answer(). Options "sl" would do the trick also, but "s" is
deprecated soon

Patch by Walter Schober
(cherry picked from commit 839e2fee663846f68289a519c27aef433a872afa)

10 years agopresence(k): aliased MLA to SLA
Daniel-Constantin Mierla [Wed, 6 Jan 2010 17:50:31 +0000 (18:50 +0100)]
presence(k): aliased MLA to SLA

- doc updated to reflect RFCs and drafts
(cherry picked from commit 1a9f379ed66dbcc05f7750ff961c0a7a6607b0db)

10 years agocore: event parsing enahced for dialog;ma
Daniel-Constantin Mierla [Wed, 6 Jan 2010 17:47:36 +0000 (18:47 +0100)]
core: event parsing enahced for dialog;ma

- event defined by draft-anil-sipping-bla for Multiple Line Appearances,
folloing to Shared/Bridged Line Appearances (SLA, BLA)
- draft is defunct but still some implementations out there
(cherry picked from commit 1e99795d2ddebe8a6794c3b407f96d30378b872f)

10 years agotm: documented t_relay_to() function
Daniel-Constantin Mierla [Wed, 6 Jan 2010 14:39:46 +0000 (15:39 +0100)]
tm: documented t_relay_to() function
(cherry picked from commit d8af3a4b17bf1ca71df1d977d986f407ff34cfc2)

10 years agotm: added t_relay_to(proxy, flags)
Daniel-Constantin Mierla [Wed, 6 Jan 2010 13:36:55 +0000 (14:36 +0100)]
tm: added t_relay_to(proxy, flags)

- parameters compatible with t_relay() in K old version
- proxy value can be: [proto:]host[:port]
- flgas can be 0x01, 0x04 or 0x05, 0x02 flag not supported
- all or any of the parameters can be omitted
(cherry picked from commit fc59de27f87772df40a4408485a34344acbec950)

10 years agotm: documented t_replicate() functions
Daniel-Constantin Mierla [Wed, 6 Jan 2010 11:32:01 +0000 (12:32 +0100)]
tm: documented t_replicate() functions
(cherry picked from commit a511ceccfb593736d44b7701fd07f3f9b5c3a104)

10 years agotm: t_replicate() can take avps & select as params
Andrei Pelinescu-Onciul [Fri, 15 Jan 2010 13:26:22 +0000 (14:26 +0100)]
tm: t_replicate() can take avps & select as params

t_replicate(uri) can now take ser-style avps ($foo) and selects (@ruri)
as params (along PVs and normal strings).

10 years agotm: added t_replicate(uri)
Daniel-Constantin Mierla [Wed, 6 Jan 2010 10:57:24 +0000 (11:57 +0100)]
tm: added t_replicate(uri)

- the parameter has to be a valid SIP uri
- it can be given via a script variable
- K compatibility mode
- reported by Santiago Gimeno
(cherry picked from commit 64e19a6a44a21adf6f743420a26a48cc3acd099a)

10 years agodb_oracle: use PARAM_TYPE_MASK when checking param type
Daniel-Constantin Mierla [Tue, 5 Jan 2010 17:40:17 +0000 (18:40 +0100)]
db_oracle: use PARAM_TYPE_MASK when checking param type
(cherry picked from commit d1e89c65a9412d2a0560c5699a34dd01e231a2d9)

10 years agosnmpstats: fix param type checking
Daniel-Constantin Mierla [Tue, 5 Jan 2010 17:27:46 +0000 (18:27 +0100)]
snmpstats: fix param type checking

- parameter type is given from definition of params not from modparam
  value type, resulting in mismatches for parameters that have
  USE_FUNC_PARAM flag set
- reported by Santiago Gimeno
(cherry picked from commit 9cf36478222aaf573a6cd7b65e6a4fd6227eb8cd)

10 years agocore: define module_loaded to use find_module_by_name
Daniel-Constantin Mierla [Mon, 4 Jan 2010 20:32:24 +0000 (21:32 +0100)]
core: define module_loaded to use find_module_by_name

- it was declared but not implemented
- in use by snmpstats and perlvdb modules
- reported by Santiago Gimeno
(cherry picked from commit d4db8304926d30a4244b9ee05d21b5614eae5f94)

10 years agotopoh: documented mask_ip parameter
Daniel-Constantin Mierla [Mon, 4 Jan 2010 20:11:29 +0000 (21:11 +0100)]
topoh: documented mask_ip parameter
(cherry picked from commit 15ece92703aa691333d06a79b7e9901bf893bf74)

10 years agotopoh: new mod param mask_ip
Daniel-Constantin Mierla [Mon, 4 Jan 2010 19:15:12 +0000 (20:15 +0100)]
topoh: new mod param mask_ip

- allow to set the value of IP address used in masked URIs
- reported by Klaus Darilion
(cherry picked from commit ff748db23dfdbf022d37071181628ddf5591b58b)

10 years agokamctl: regenerate db creation scripts
Daniel-Constantin Mierla [Mon, 4 Jan 2010 13:35:19 +0000 (14:35 +0100)]
kamctl: regenerate db creation scripts
(cherry picked from commit af5463d865bde28d1a2f977d0c9bd9347588b6e0)

10 years agodrouting: updated db schema from master
Daniel-Constantin Mierla [Mon, 4 Jan 2010 13:32:19 +0000 (14:32 +0100)]
drouting: updated db schema from master
(cherry picked from commit 700fb1a97a5c6c089fce85f547117286644872b5)

10 years agokamctl: added new db table definitions
Daniel-Constantin Mierla [Sun, 3 Jan 2010 12:31:23 +0000 (13:31 +0100)]
kamctl: added new db table definitions

- sql to create drouting tables for mysql, postgres and oracle
(cherry picked from commit 0292a4b5f2cb0564649699c592e51a06edbd91a4)

10 years agosrdb1: version table updated
Daniel-Constantin Mierla [Sun, 3 Jan 2010 12:29:58 +0000 (13:29 +0100)]
srdb1: version table updated
(cherry picked from commit df46a824d87dfcf839c175c77addda9eed533c03)

10 years agodrouting: adding db table definitions
Daniel-Constantin Mierla [Sun, 3 Jan 2010 12:27:57 +0000 (13:27 +0100)]
drouting: adding db table definitions

- built based on readme
- needs further updates as the code is ahead of documentation with what
  tables are used and their structure
(cherry picked from commit 53a25f097d127eea7fef3c3c32f7f24421aaad15)

10 years agodrouting: regenerate readme
Daniel-Constantin Mierla [Sun, 3 Jan 2010 12:25:51 +0000 (13:25 +0100)]
drouting: regenerate readme

- it was out of sync with docbook sources
- use entity for application name and corrected db url
(cherry picked from commit 0d88fc527d5ddb90e3d52ca8f369bdcfaab63ed4)

10 years agodrouting: lookup route block by name
Daniel-Constantin Mierla [Sun, 3 Jan 2010 11:38:48 +0000 (12:38 +0100)]
drouting: lookup route block by name

- routes are identified in 3.0 by string name
- if name is "0", do not execute the route (this is the main one) for
  backward compatibility
- based on patch by Andrey 'Krieger' Utkin, FS#24
(cherry picked from commit 94f834041eb43121e6750cf524c32225aaf1c80d)

10 years agotopoh: updated README
Daniel-Constantin Mierla [Sun, 20 Dec 2009 17:48:37 +0000 (18:48 +0100)]
topoh: updated README
(cherry picked from commit 63664db5030d1a6c5e700e645cebac9238e985ba)

10 years agotopoh: update Replaces header
Daniel-Constantin Mierla [Sun, 20 Dec 2009 17:44:33 +0000 (18:44 +0100)]
topoh: update Replaces header

- case when call-id is masked
(cherry picked from commit f03706ce3b8670d052619ac4a38fda4fa35bedfd)

10 years agotopoh: code to update Refer-to URI
Daniel-Constantin Mierla [Sun, 20 Dec 2009 16:50:51 +0000 (17:50 +0100)]
topoh: code to update Refer-to URI
(cherry picked from commit e9400dba371252edef970407be7b85dbe45e1ea3)

10 years agotopoh: callid prefix can be set via param
Daniel-Constantin Mierla [Sun, 20 Dec 2009 11:49:59 +0000 (12:49 +0100)]
topoh: callid prefix can be set via param
(cherry picked from commit a8f1190d0a400c34809af798a482311539b15527)

10 years agotopoh: add prefix to encoded callid
Daniel-Constantin Mierla [Sun, 20 Dec 2009 11:46:10 +0000 (12:46 +0100)]
topoh: add prefix to encoded callid
(cherry picked from commit 9d5a1ff7736d49794d5ca0f29e118d90f0ee5b68)

10 years agopv: completed $snd() pv with buf and len
Daniel-Constantin Mierla [Thu, 24 Dec 2009 16:10:44 +0000 (17:10 +0100)]
pv: completed $snd() pv with buf and len

- missing parts of available info about message to be sent
(cherry picked from commit aedb1ee1f3e43341fe507f41ca12208c2dec3cf7)

10 years agotm: further fixes for t_drop_replies()
Daniel-Constantin Mierla [Wed, 23 Dec 2009 21:34:28 +0000 (22:34 +0100)]
tm: further fixes for t_drop_replies()

- use a dedicated variable replies_dropped to signal that replies were
  dropped instead of using drop_replies marker
(cherry picked from commit e024da1fb6cd4b74d68760070f9e159356d93b0e)

10 years agotm: updated doc for t_drop_replies()
Daniel-Constantin Mierla [Wed, 23 Dec 2009 16:34:09 +0000 (17:34 +0100)]
tm: updated doc for t_drop_replies()
(cherry picked from commit cb1866ee7b23688d12b222d503b1709f16f75a12)

10 years agotm: fix drop reply behavior
Daniel-Constantin Mierla [Wed, 23 Dec 2009 16:24:30 +0000 (17:24 +0100)]
tm: fix drop reply behavior

- Kamailio default behavior after failure route was to drop previous
  received replies. However, if the failure_route didn't add a new
  branch, resulted in a 500 TM reply error
- thanks to Ricardo Martinez for reporting
- credits to Andrei Pelinescu-Onciul for troubleshooting and prviding
  the fix: a new default mode for Kamailio (3) which does not drop
  previous replies if no new branch was added
(cherry picked from commit a883a0b2501ba2b25ca87994d4c211f75a556ebe)

10 years agopua_dialoginfo: use contact addresses in document
Daniel-Constantin Mierla [Sat, 19 Dec 2009 22:26:01 +0000 (23:26 +0100)]
pua_dialoginfo: use contact addresses in document

- for local and remote targets
- patch by Santiago Gimeno, FS#20
(cherry picked from commit d35df0cdab10aa83b3ceedde3a8cde8baeabfc79)

10 years agodialog: new column to hold request uri
Daniel-Constantin Mierla [Sat, 19 Dec 2009 22:02:32 +0000 (23:02 +0100)]
dialog: new column to hold request uri

- table version set to 4
- regenerated db creation scripts
(cherry picked from commit 1f64908ea0e6ad14ad6d209ba0eeb7b11c6b1e18)

10 years agopua_dialoginfo: patch from FS#18
Daniel-Constantin Mierla [Sat, 19 Dec 2009 21:58:26 +0000 (22:58 +0100)]
pua_dialoginfo: patch from FS#18

- applied patch from Francisco Javier Lizaran Vilches
- use r-uri in published document
(cherry picked from commit 09d1bdc38b51619c65c6a9ec8f293cf9c395c6c1)

10 years agodialog(k): patch from FS#18
Daniel-Constantin Mierla [Sat, 19 Dec 2009 21:44:28 +0000 (22:44 +0100)]
dialog(k): patch from FS#18

- reworked part of patch from Francisco Javier Lizaran Vilches
- add r-uri to dialog structure
- r-uri value can be specified as PV via parameter, default is $ru
- for dlg_bridge, r-uri is same as to-uri
(cherry picked from commit df950f2a01f5f3d3da04e84a4f4a1cb810def038)