sip-router
7 years agocore: define PVT_XAVP as type for xavp pseudo-variables
Daniel-Constantin Mierla [Mon, 17 Jun 2013 12:47:56 +0000 (14:47 +0200)]
core: define PVT_XAVP as type for xavp pseudo-variables

- they may need special handling for debug purposes

7 years agopipelimit: fixed typo in module parameter name
Daniel-Constantin Mierla [Mon, 17 Jun 2013 09:00:29 +0000 (11:00 +0200)]
pipelimit: fixed typo in module parameter name

- patch by Krischan Udelhoven

7 years agomodules/app_lua: fixed runtime warning: exports dlflags interface is deprecated
Victor Seva [Mon, 17 Jun 2013 08:48:45 +0000 (10:48 +0200)]
modules/app_lua: fixed runtime warning: exports dlflags interface is deprecated

7 years agotopoh: safety check for To header
Daniel-Constantin Mierla [Sun, 16 Jun 2013 15:17:36 +0000 (17:17 +0200)]
topoh: safety check for To header

- protection for the case when sanity module checks are not enabled
- reported in FS#303 by Michel de Weerd

7 years agomtree: fixed typo in log function name
Daniel-Constantin Mierla [Sun, 16 Jun 2013 14:40:59 +0000 (16:40 +0200)]
mtree: fixed typo in log function name

7 years agocore: added function to get the pv cache table
Daniel-Constantin Mierla [Sun, 16 Jun 2013 14:39:14 +0000 (16:39 +0200)]
core: added function to get the pv cache table

- pv cache struct moved to header file

7 years agokamctl: new commands can be defined in separate files
Daniel-Constantin Mierla [Sat, 15 Jun 2013 20:03:58 +0000 (22:03 +0200)]
kamctl: new commands can be defined in separate files

- write new kamctl commands either in CFGDIR/kamctl.newcmd.ext or
  ~/.kamctl/kamctl.newcmd.ext
- 'newcmd' has to be replaced with the name of the command
- the file must include cmd_newcmd() function which is executed with the
  parameters after the command name
- example: adding new command 'sample'
- content of ~/.kamctl/kamctl.sample.ext file:

usage_sample() {
    echo
    mecho " -- command 'sample' - kamctl sample extension command"
    echo
cat <<EOF
 test ............................... print test message
 help ............................... help text
EOF
}

cmd_sample() {
    case $1 in
        test)
            echo "message from sample test command"
        ;;
        *)
            usage_sample
        ;;
    esac
    exit 1;
}

- new command 'sample' can be executed with:

kamctl sample test

7 years agokamctl: set internal version to 4.1.0
Daniel-Constantin Mierla [Sat, 15 Jun 2013 17:33:50 +0000 (19:33 +0200)]
kamctl: set internal version to 4.1.0

7 years agotm: readme updated based on latest docbook
Daniel-Constantin Mierla [Sat, 15 Jun 2013 17:31:43 +0000 (19:31 +0200)]
tm: readme updated based on latest docbook

7 years agotm: documented dn_reuse_rcv_socket parameter
Daniel-Constantin Mierla [Sat, 15 Jun 2013 17:30:59 +0000 (19:30 +0200)]
tm: documented dn_reuse_rcv_socket parameter

7 years agotm: new module parameter - dns_reuse_rcv_socket
Daniel-Constantin Mierla [Sat, 15 Jun 2013 17:08:38 +0000 (19:08 +0200)]
tm: new module parameter - dns_reuse_rcv_socket

- control reuse of the receive socket for additional branches added by
  dns failover
- if 1, the rcv socket is used, if not it depends on mhomed - when that
  is 0, the first socket is used, otherwise will be selected based on
  routing table
- default is 0
- therefore beware when setting this parameter and mhomed=1
- based on discussion for FS#313

7 years agotm: copy tm routing blocks ids for new branches added by dns failover
Daniel-Constantin Mierla [Sat, 15 Jun 2013 16:54:59 +0000 (18:54 +0200)]
tm: copy tm routing blocks ids for new branches added by dns failover

- patch by Jasmin Schnatterbeck, part of FS#313

7 years agokamailio.cfg: route subscribe for event message-summary to voicemail server
Daniel-Constantin Mierla [Sat, 15 Jun 2013 16:23:48 +0000 (18:23 +0200)]
kamailio.cfg: route subscribe for event message-summary to voicemail server

7 years agokamctl: added show command to display user attributes in subscriber table
Daniel-Constantin Mierla [Fri, 14 Jun 2013 06:42:37 +0000 (08:42 +0200)]
kamctl: added show command to display user attributes in subscriber table

7 years agocore: do not repeat key names on xavp_get_list_key_names function result
Victor Seva [Wed, 12 Jun 2013 13:58:29 +0000 (15:58 +0200)]
core: do not repeat key names on xavp_get_list_key_names function result

7 years agomtree: print more details if the record in db is broken
Daniel-Constantin Mierla [Wed, 12 Jun 2013 06:50:26 +0000 (08:50 +0200)]
mtree: print more details if the record in db is broken

7 years agomtree: make log message on not maching character a debug instead of error
Daniel-Constantin Mierla [Tue, 11 Jun 2013 16:47:54 +0000 (18:47 +0200)]
mtree: make log message on not maching character a debug instead of error

7 years agoregistrar: readme regenerated
Daniel-Constantin Mierla [Tue, 11 Jun 2013 16:41:05 +0000 (18:41 +0200)]
registrar: readme regenerated

7 years agoregistrar: fixed typo in example of xavp_rcd parameter
Daniel-Constantin Mierla [Tue, 11 Jun 2013 16:39:31 +0000 (18:39 +0200)]
registrar: fixed typo in example of xavp_rcd parameter

7 years agoregistrar: more debug messages when adding ruid xavp
Daniel-Constantin Mierla [Tue, 11 Jun 2013 16:37:32 +0000 (18:37 +0200)]
registrar: more debug messages when adding ruid xavp

- free local ruid xavp if cannot be added to root list

7 years agomodules/ims_isc: several safety checks
Camille Oudot [Tue, 11 Jun 2013 14:34:49 +0000 (16:34 +0200)]
modules/ims_isc: several safety checks

- fixed potential buffer overflow
- fixed potential crash if regcomp fails

7 years agomodules/ims_isc: fix several compiler warnings
Camille Oudot [Tue, 11 Jun 2013 14:24:15 +0000 (16:24 +0200)]
modules/ims_isc: fix several compiler warnings

7 years agoapp_lua: solve crash when setting a variable not convertible to string.
Vicente Hernando [Mon, 10 Jun 2013 10:14:54 +0000 (12:14 +0200)]
app_lua: solve crash when setting a variable not convertible to string.

7 years agomodules/ims_registrar_scscf: safety check for log line when recieving an SAR_UNREGIST...
Camille Oudot [Tue, 28 May 2013 15:53:07 +0000 (17:53 +0200)]
modules/ims_registrar_scscf: safety check for log line when recieving an SAR_UNREGISTERED_USER response

7 years agoMakefile: update de-stable target: squeeze -> wheezy
Ovidiu Sas [Fri, 7 Jun 2013 16:09:38 +0000 (12:09 -0400)]
Makefile: update de-stable target: squeeze -> wheezy

7 years agoregistrar: print bogus AoR in error log
Ovidiu Sas [Thu, 6 Jun 2013 19:21:19 +0000 (15:21 -0400)]
registrar: print bogus AoR in error log

7 years agoacc_radius: exit at startup if radius_config is not set
Daniel-Constantin Mierla [Thu, 6 Jun 2013 13:58:58 +0000 (15:58 +0200)]
acc_radius: exit at startup if radius_config is not set

7 years agocfgutils: updated docs to specify correct time unit for usleep
Daniel-Constantin Mierla [Thu, 6 Jun 2013 09:47:10 +0000 (11:47 +0200)]
cfgutils: updated docs to specify correct time unit for usleep

- it is microseconds, pointed by David K

7 years agokamailio.cfg: reset $du for voicemail re-routing in failure route
Daniel-Constantin Mierla [Thu, 6 Jun 2013 07:09:14 +0000 (09:09 +0200)]
kamailio.cfg: reset $du for voicemail re-routing in failure route

7 years agosiputils: added new function is_first_hop()
Daniel-Constantin Mierla [Thu, 6 Jun 2013 07:05:28 +0000 (09:05 +0200)]
siputils: added new function is_first_hop()

- detect if it is first hop after original sender
- added section ids for functions, remove a duplicate content for
  is_rpid_user_e164()

7 years agokamailio.cfg: few updates related to nat traversal
Daniel-Constantin Mierla [Wed, 5 Jun 2013 20:44:13 +0000 (22:44 +0200)]
kamailio.cfg: few updates related to nat traversal

- added "co" flags to rtpproxy_manage() to change all IPs in sdp, many
  phone get confused if only media ip is changed
- add nat=yes parameter only for in branch route to avoid multiple
  occurences

7 years agomodule/ims_auth: protection against crash if there is no auth vector initialised.
Jason Penton [Wed, 5 Jun 2013 06:58:29 +0000 (08:58 +0200)]
module/ims_auth: protection against crash if there is no auth vector initialised.
- patch submitted by Camille Oudot

7 years agomodules/ims_isc: Add support for P-Serverd-User header
Jason Penton [Wed, 5 Jun 2013 06:46:13 +0000 (08:46 +0200)]
modules/ims_isc: Add support for P-Serverd-User header
- This header allows a triggered Application Server to know the IMS user for who it was
triggered, and in what state (originating/terminating, registered/unregistered)
- Thanks to Camille Oudot for patch!

7 years agosercmd: pass OS define at compile time
Daniel-Constantin Mierla [Tue, 4 Jun 2013 21:21:11 +0000 (23:21 +0200)]
sercmd: pass OS define at compile time

7 years agosercmd: possibility to enable EXTRA_DEBUG via compile time option
Daniel-Constantin Mierla [Tue, 4 Jun 2013 20:17:52 +0000 (22:17 +0200)]
sercmd: possibility to enable EXTRA_DEBUG via compile time option

- should get rid of empty DBG() resulting in unused init variable

7 years agomodules/lcr: use pv_cache_get
Juha Heinanen [Tue, 4 Jun 2013 07:44:36 +0000 (10:44 +0300)]
modules/lcr: use pv_cache_get

- Applied patch by Victor Seva.

7 years agomodules/auth_db: regenerate README
Klaus Darilion [Mon, 3 Jun 2013 22:13:20 +0000 (22:13 +0000)]
modules/auth_db: regenerate README

7 years agomodules/auth_db: document authentication return values
Klaus Darilion [Mon, 3 Jun 2013 22:10:20 +0000 (22:10 +0000)]
modules/auth_db: document authentication return values

7 years agoMakefile: added install-initd-centos target
Daniel-Constantin Mierla [Mon, 3 Jun 2013 21:23:15 +0000 (23:23 +0200)]
Makefile: added install-initd-centos target

- install centos specific init.d scripts

7 years agodialog: shift next timer run for keepalives of dialog
Daniel-Constantin Mierla [Mon, 3 Jun 2013 18:53:05 +0000 (20:53 +0200)]
dialog: shift next timer run for keepalives of dialog

- reported by Daniel Tryba

7 years agomodules/debugger: fixed last commit.
Victor Seva [Mon, 3 Jun 2013 16:43:51 +0000 (18:43 +0200)]
modules/debugger: fixed last commit.

- checked malloc result on dbg_init_pvcache.
- checked result of dbg_init_pvcache on mod_init.
- removed commented code.

7 years agomodules/debugger: new parameter log_assign
Victor Seva [Mon, 3 Jun 2013 13:10:27 +0000 (15:10 +0200)]
modules/debugger: new parameter log_assign

This parameter enables logging every single assign action on the config.

7 years agohtable: documented the new rpc commands
Elena-Ramona Modroiu [Mon, 3 Jun 2013 09:13:56 +0000 (11:13 +0200)]
htable: documented the new rpc commands

- htable.sets and htable.seti

7 years agohtable: added rpc commands for setting items in a hash table
Elena-Ramona Modroiu [Mon, 3 Jun 2013 09:05:58 +0000 (11:05 +0200)]
htable: added rpc commands for setting items in a hash table

- htable.sets - set to a string value
- htable.seti - set to an integer value

7 years agomodules/usrloc: rpc statistics command update
Juha Heinanen [Sat, 1 Jun 2013 14:47:58 +0000 (17:47 +0300)]
modules/usrloc: rpc statistics command update

- ul.db_users and ul.db_contacts now deal with unexpired records only
- new command ul.db_expired_contacts tells number of expired contacts

7 years agopua: release lock on not finding temp dialog
Daniel-Constantin Mierla [Fri, 31 May 2013 15:05:40 +0000 (17:05 +0200)]
pua: release lock on not finding temp dialog

- patch by Halina Nowak

7 years agocore: don't free pvar spec - is reference to cache
Daniel-Constantin Mierla [Thu, 30 May 2013 15:59:01 +0000 (17:59 +0200)]
core: don't free pvar spec - is reference to cache

- reported by Peter Dunkley

7 years agodocumentation: Rebuild all modified READMEs
Hugh Waite [Wed, 29 May 2013 13:47:21 +0000 (14:47 +0100)]
documentation: Rebuild all modified READMEs

7 years agouid_uri_db: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:46:40 +0000 (14:46 +0100)]
uid_uri_db: Fix TOC in documentation

7 years agouid_gflags: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:46:24 +0000 (14:46 +0100)]
uid_gflags: Fix TOC in documentation

7 years agouid_domain: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:46:04 +0000 (14:46 +0100)]
uid_domain: Fix TOC in documentation

7 years agouid_avp_db: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:45:49 +0000 (14:45 +0100)]
uid_avp_db: Fix TOC in documentation

7 years agouid_auth_db: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:45:28 +0000 (14:45 +0100)]
uid_auth_db: Fix TOC in documentation

7 years agoxprint: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:44:45 +0000 (14:44 +0100)]
xprint: Fix TOC in documentation

7 years agoxmlops: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:44:28 +0000 (14:44 +0100)]
xmlops: Fix TOC in documentation

7 years agotm: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:44:09 +0000 (14:44 +0100)]
tm: Fix TOC in documentation

7 years agotls: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:43:57 +0000 (14:43 +0100)]
tls: Fix TOC in documentation

7 years agotimer: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:43:42 +0000 (14:43 +0100)]
timer: Fix TOC in documentation

7 years agotextopsx: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:43:24 +0000 (14:43 +0100)]
textopsx: Fix TOC in documentation

7 years agosms: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:43:09 +0000 (14:43 +0100)]
sms: Fix TOC in documentation

7 years agosl: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:42:54 +0000 (14:42 +0100)]
sl: Fix TOC in documentation

7 years agosanity: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:42:35 +0000 (14:42 +0100)]
sanity: Fix TOC in documentation

7 years agoprint_lib: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:42:20 +0000 (14:42 +0100)]
print_lib: Fix TOC in documentation

7 years agoprint: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:42:05 +0000 (14:42 +0100)]
print: Fix TOC in documentation

7 years agoprefix_route: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:41:51 +0000 (14:41 +0100)]
prefix_route: Fix TOC in documentation

7 years agomangler: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:41:28 +0000 (14:41 +0100)]
mangler: Fix TOC in documentation

7 years agomalloc_test: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:40:54 +0000 (14:40 +0100)]
malloc_test: Fix TOC in documentation

7 years agoiptrtpproxy: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:40:31 +0000 (14:40 +0100)]
iptrtpproxy: Fix TOC in documentation

7 years agodb_flatstore: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:40:06 +0000 (14:40 +0100)]
db_flatstore: Fix TOC in documentation

7 years agodb2_ops: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:39:45 +0000 (14:39 +0100)]
db2_ops: Fix TOC in documentation

7 years agodb2_ldap: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:38:43 +0000 (14:38 +0100)]
db2_ldap: Fix TOC in documentation

7 years agoctl: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:38:25 +0000 (14:38 +0100)]
ctl: Fix TOC in documentation

7 years agocounters: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:38:07 +0000 (14:38 +0100)]
counters: Fix TOC in documentation

7 years agocfg_rpc: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:37:45 +0000 (14:37 +0100)]
cfg_rpc: Fix TOC in documentation

7 years agocfg_db: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:37:26 +0000 (14:37 +0100)]
cfg_db: Fix TOC in documentation

7 years agoblst: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:37:03 +0000 (14:37 +0100)]
blst: Fix TOC in documentation

7 years agoavp: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:11:23 +0000 (14:11 +0100)]
avp: Fix TOC in documentation

7 years agoauth_identity: Fix TOC in documentation
Hugh Waite [Wed, 29 May 2013 13:10:31 +0000 (14:10 +0100)]
auth_identity: Fix TOC in documentation

7 years agoauth_ephemeral: Minor documentation improvement
Hugh Waite [Wed, 29 May 2013 13:09:08 +0000 (14:09 +0100)]
auth_ephemeral: Minor documentation improvement

7 years agoDB scheme: remove default MySQL engine definition
Henning Westerholt [Wed, 29 May 2013 10:38:10 +0000 (12:38 +0200)]
DB scheme: remove default MySQL engine definition

* remove default MySQL engine definition from table definitions
* if nothing is specified then MySQL server will choose the default from its cfg
* if you like to specify it, change the MYSQL_TABLE_TYPE define in
  lib/srdb1/schema/entities.xml and run "make dbschema" in the top level directory
* the stylesheet doesn't check the engine type, Kamailio supports MyISAM and InnoDB

7 years agoRevert "DB scheme: as discussed on sr-users list, change default mysql engine to...
Henning Westerholt [Wed, 29 May 2013 10:30:58 +0000 (12:30 +0200)]
Revert "DB scheme: as discussed on sr-users list, change default mysql engine to InnoDB"

This reverts commit fa49fe070adadfff893b338f2a2d69776c043653.

7 years agocore: added helper function pv_cache_get_name() in order
Victor Seva [Wed, 29 May 2013 10:25:50 +0000 (12:25 +0200)]
core: added helper function pv_cache_get_name() in order
 to get the name of a pv_spec_t on pv_cache.

7 years agocore: Add callback to be able to log assign actions.
Victor Seva [Wed, 29 May 2013 10:25:09 +0000 (12:25 +0200)]
core: Add callback to be able to log assign actions.

7 years agocore: use pointer to pv_spec_t on lvalue union. Use pv_cache_get() on interpreter.
Victor Seva [Wed, 29 May 2013 10:24:00 +0000 (12:24 +0200)]
core: use pointer to pv_spec_t on lvalue union. Use pv_cache_get() on interpreter.

7 years agoDB scheme: as discussed on sr-users list, change default mysql engine to InnoDB
Henning Westerholt [Wed, 29 May 2013 09:49:59 +0000 (11:49 +0200)]
DB scheme: as discussed on sr-users list, change default mysql engine to InnoDB

7 years agotopoh: safety check for Via header when removed from script
Daniel-Constantin Mierla [Wed, 29 May 2013 08:49:40 +0000 (10:49 +0200)]
topoh: safety check for Via header when removed from script

- reported by Guillaume Bour, FS#300

7 years agomisc_radius: updated readme
Daniel-Constantin Mierla [Tue, 28 May 2013 13:48:22 +0000 (15:48 +0200)]
misc_radius: updated readme

- from a patch by Victor V. Kustov

7 years agomisc_radius: handle IPv4 returned attributes
Daniel-Constantin Mierla [Tue, 28 May 2013 13:43:27 +0000 (15:43 +0200)]
misc_radius: handle IPv4 returned attributes

- populate attributes for negative replies when common_response is set
- patch by Victor V. Kustov

7 years agomodules/auth_ephemeral: updated to use SHA1_DIGEST_LENGTH #define from openssl/sha.h
Peter Dunkley [Mon, 27 May 2013 23:46:26 +0000 (00:46 +0100)]
modules/auth_ephemeral: updated to use SHA1_DIGEST_LENGTH #define from openssl/sha.h

7 years agomodules/auth_ephemeral: tidied up the headers and tidied up more debug
Peter Dunkley [Mon, 27 May 2013 23:27:37 +0000 (00:27 +0100)]
modules/auth_ephemeral: tidied up the headers and tidied up more debug

7 years agomodules/auth_ephemeral: updated to handle usernames from the web-service that just...
Peter Dunkley [Mon, 27 May 2013 23:20:20 +0000 (00:20 +0100)]
modules/auth_ephemeral: updated to handle usernames from the web-service that just consist of timestamps

- tidied up the diagnostic output

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Juha Heinanen [Mon, 27 May 2013 14:58:33 +0000 (17:58 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

- i did pull , but there was race conditions with somebody else's push

7 years agomodules/usrloc: renamed ul.users and ul.contacts rpc commands
Juha Heinanen [Mon, 27 May 2013 14:57:07 +0000 (17:57 +0300)]
modules/usrloc: renamed ul.users and ul.contacts rpc commands

- new, more descriptive names are ul.db_users and ul.db_contacts

7 years agocore: enclose uri in angle brakets for redirect contact header
Daniel-Constantin Mierla [Mon, 27 May 2013 14:54:02 +0000 (16:54 +0200)]
core: enclose uri in angle brakets for redirect contact header

- safer for uri with parameters and no q
- reported by Dan Bogos

7 years agomodules/usrloc: added two new rpc commands ul.users and ul.contacts
Juha Heinanen [Mon, 27 May 2013 10:54:23 +0000 (13:54 +0300)]
modules/usrloc: added two new rpc commands ul.users and ul.contacts

- for accessing number of different AoRs and contacts in a location table

7 years agomodules/dialog: regenerate README
Klaus Darilion [Mon, 27 May 2013 10:44:51 +0000 (10:44 +0000)]
modules/dialog: regenerate README

7 years agomodules/dialog: improve documentation of DID matching
Klaus Darilion [Mon, 27 May 2013 10:44:03 +0000 (10:44 +0000)]
modules/dialog: improve documentation of DID matching

7 years agopkg/kamailio/(centos|fedora): Added RPM for auth_ephemeral module
Peter Dunkley [Sun, 26 May 2013 23:49:46 +0000 (00:49 +0100)]
pkg/kamailio/(centos|fedora): Added RPM for auth_ephemeral module

7 years agocore: updated groups to include new auth_ephemeral module
Peter Dunkley [Sun, 26 May 2013 23:32:19 +0000 (00:32 +0100)]
core: updated groups to include new auth_ephemeral module

7 years agomodules/auth_ephemeral: new module for ephemeral credential based authentication
Peter Dunkley [Sun, 26 May 2013 23:25:03 +0000 (00:25 +0100)]
modules/auth_ephemeral: new module for ephemeral credential based authentication