sip-router
7 years agoparser: const-correctness for some module utility functions
Henning Westerholt [Thu, 5 Jul 2012 21:14:42 +0000 (23:14 +0200)]
parser: const-correctness for some module utility functions

7 years agoparser: some more const-correctness for the other functions in msg_parser.[c,h]
Henning Westerholt [Thu, 5 Jul 2012 21:04:43 +0000 (23:04 +0200)]
parser: some more const-correctness for the other functions in msg_parser.[c,h]

7 years agoparser: remove two blocks of old code, commented some years ago
Henning Westerholt [Thu, 5 Jul 2012 20:40:45 +0000 (22:40 +0200)]
parser: remove two blocks of old code, commented some years ago

7 years agoparser: make get_hdr_field(..) and necessary called functions const-correct
Henning Westerholt [Thu, 5 Jul 2012 20:35:22 +0000 (22:35 +0200)]
parser: make get_hdr_field(..) and necessary called functions const-correct

7 years agopkg/kamailio/fedora/16: fixed typo in .spec
Peter Dunkley [Thu, 5 Jul 2012 20:16:43 +0000 (21:16 +0100)]
pkg/kamailio/fedora/16: fixed typo in .spec

7 years agopkg/kamailio/(centos|fedora): Updated .spec and .appl files to build RPM for cdp...
Peter Dunkley [Thu, 5 Jul 2012 19:41:36 +0000 (20:41 +0100)]
pkg/kamailio/(centos|fedora): Updated .spec and .appl files to build RPM for cdp and cdp_avp modules

7 years agopkg/kamailio/(centos|fedora): Added git to the build appliances
Peter Dunkley [Thu, 5 Jul 2012 11:16:31 +0000 (12:16 +0100)]
pkg/kamailio/(centos|fedora): Added git to the build appliances

7 years agopkg/kamailio/(centos|fedora): Added instructions on using BoxGrinder appliances to...
Peter Dunkley [Wed, 4 Jul 2012 22:46:46 +0000 (23:46 +0100)]
pkg/kamailio/(centos|fedora): Added instructions on using BoxGrinder appliances to build Kamailio RPMs

7 years agoremove one redundant inclusion of casandra module in excluded modules
Henning Westerholt [Wed, 4 Jul 2012 20:24:33 +0000 (22:24 +0200)]
remove one redundant inclusion of casandra module in excluded modules

7 years agoadd cdp module to excluded modules, as its depends on libxml
Henning Westerholt [Wed, 4 Jul 2012 20:22:26 +0000 (22:22 +0200)]
add cdp module to excluded modules, as its depends on libxml

7 years agomodules/lcr: Fixed to/from_gw tests when proto parameter is 0 (ANY)
Juha Heinanen [Wed, 4 Jul 2012 14:15:43 +0000 (17:15 +0300)]
modules/lcr: Fixed to/from_gw tests when proto parameter is 0 (ANY)

- Also, updated README regarding handling of NULL value in lcr_gw
  transport column.

7 years agocdp_avp: added README file
Jason Penton [Tue, 3 Jul 2012 10:50:10 +0000 (12:50 +0200)]
cdp_avp: added README file

7 years agoCDP: Fixed README
Jason Penton [Tue, 3 Jul 2012 10:40:43 +0000 (12:40 +0200)]
CDP: Fixed README

7 years agoCDP: A few fixes to docs and location of image files - cleaner organisation
Jason Penton [Tue, 3 Jul 2012 10:14:21 +0000 (12:14 +0200)]
CDP: A few fixes to docs and location of image files - cleaner organisation

7 years agonew modules: CDP (C Diameter Peer) and CDP_AVP
Jason Penton [Tue, 3 Jul 2012 09:24:36 +0000 (11:24 +0200)]
new modules: CDP (C Diameter Peer) and CDP_AVP
- These modules were originally written by Fraunhofer and have been
  ported to Kamailio, with some minor additions and improvements. Examples
  on using the modules to come shortly - diameter_rx, diameter_ro, etc

7 years agopkg/kamailio/fedora: Updated some packaging related stuff
Peter Dunkley [Sat, 30 Jun 2012 20:05:40 +0000 (21:05 +0100)]
pkg/kamailio/fedora: Updated some packaging related stuff

- Updated the rel in the .spec to dev1
- Replaced local %{_sharedir} macro in .spec with standard %{_datadir} macro
- Tweak/update to Fedora 16 test appliance
- Added BoxGrinder appliances for Fedora 17

7 years agokamailio.cfg: use add_contact_alias()/handle_uri_alias() for NATed calls
Daniel-Constantin Mierla [Fri, 29 Jun 2012 14:06:42 +0000 (16:06 +0200)]
kamailio.cfg: use add_contact_alias()/handle_uri_alias() for NATed calls

7 years agoMakefile.defs: version set to 3.4.0-dev1
Daniel-Constantin Mierla [Fri, 29 Jun 2012 10:34:08 +0000 (12:34 +0200)]
Makefile.defs: version set to 3.4.0-dev1

7 years agokamailio.cfg: set version to 3.4 in the top comments
Daniel-Constantin Mierla [Fri, 29 Jun 2012 10:28:07 +0000 (12:28 +0200)]
kamailio.cfg: set version to 3.4 in the top comments

7 years agotm: added t_is_set("target") function
Daniel-Constantin Mierla [Fri, 29 Jun 2012 10:25:24 +0000 (12:25 +0200)]
tm: added t_is_set("target") function

- returns true if the attribute specified by the target parameter is set
  for current transaction (e.g., failure_route, branch_route,
  onreply_route)
- on_negative was replaced with on_failure internally to be consistent
  with config file naming

7 years agop_usrloc: added missing usrloc API members
Daniel-Constantin Mierla [Thu, 28 Jun 2012 14:24:47 +0000 (16:24 +0200)]
p_usrloc: added missing usrloc API members

- they are set to NULL to get a clean crash, they have to be implemented
- the missing API members are the functions introduced in 3.3 for
  handling SIP GRUU and Outbound extensions
- a proper fix to follow
- reported by Dan Bogos

7 years agopkg/deb Fix lsb init file
Jon Bonilla [Thu, 28 Jun 2012 00:13:54 +0000 (02:13 +0200)]
pkg/deb Fix lsb init file

We depend on $remote_fs as required_[start|stop]

7 years agopkg/deb Build kamailio-dbg package
Jon Bonilla [Thu, 28 Jun 2012 00:01:11 +0000 (02:01 +0200)]
pkg/deb Build kamailio-dbg package

7 years agomodules_k/presence_xml Xcap auth reason when user deleted from list
Anca Vamanu [Wed, 27 Jun 2012 15:34:55 +0000 (18:34 +0300)]
modules_k/presence_xml Xcap auth reason when user deleted from list

The reason in Subscription-Status header in Notify when a user is
deleted from the contact list can be decided by the admin by setting
presence_xml module parameter xcapauth_usedel_reason. Default value is
"probation".
(cherry picked from commit 3abf967f61a1bd95c28d4e8a929a8bd5df00671d)

7 years agodialog(k): proper unlock of profile for mi list command
Daniel-Constantin Mierla [Mon, 25 Jun 2012 16:36:18 +0000 (18:36 +0200)]
dialog(k): proper unlock of profile for mi list command

- the profile was unlocked in a wrong place, before finishing listing
  the its content and could cause a race in accessing it
- reported by Ricardo Martinez

7 years agodispatcher(k): allow set id 0 for OPTIONS callback
Daniel-Constantin Mierla [Mon, 25 Jun 2012 08:36:31 +0000 (10:36 +0200)]
dispatcher(k): allow set id 0 for OPTIONS callback

- set id is provided in param pointer address, 0 being equivalent to
  NULL
- reported by Avi Brender

7 years agondb_redis: README file update for unix domain socket support.
Vicente Hernando [Wed, 20 Jun 2012 19:08:19 +0000 (21:08 +0200)]
ndb_redis: README file update for unix domain socket support.

7 years agondb_redis: able to connect to redis server via unix domain socket.
Vicente Hernando [Wed, 20 Jun 2012 18:59:47 +0000 (14:59 -0400)]
ndb_redis: able to connect to redis server via unix domain socket.

- added unix atribute in server modparam
- unix attribute has higher precedence over address and port

7 years agoDisable keeping alive of dialog, if the dialog-api does not provide a dlg_flag.
Carsten Bock [Wed, 20 Jun 2012 13:41:02 +0000 (15:41 +0200)]
Disable keeping alive of dialog, if the dialog-api does not provide a dlg_flag.

7 years agondb_redis: remove warning: implicit declaration of function redisc_free_reply
Vicente Hernando [Tue, 19 Jun 2012 17:31:42 +0000 (13:31 -0400)]
ndb_redis: remove warning: implicit declaration of function redisc_free_reply

7 years agopv: new variable $cnt(...) to count the number of other array variables
Daniel-Constantin Mierla [Tue, 19 Jun 2012 13:06:03 +0000 (15:06 +0200)]
pv: new variable $cnt(...) to count the number of other array variables

- for now it supports counting AVPS - $cnt($avp(x) - returns the number
  of how many AVPs with name x exist
- future plans - count headers with same name, xavps ...

7 years agocore: typedefed avp search state structure
Daniel-Constantin Mierla [Tue, 19 Jun 2012 13:05:33 +0000 (15:05 +0200)]
core: typedefed avp search state structure

7 years agondb_redis: README file update for redis_free function.
Vicente Hernando [Tue, 19 Jun 2012 10:18:30 +0000 (12:18 +0200)]
ndb_redis: README file update for redis_free function.

7 years agondb_redis: redis_free function.
Vicente Hernando [Tue, 19 Jun 2012 09:56:24 +0000 (05:56 -0400)]
ndb_redis: redis_free function.

- Free an unused ndb_redis reply, including also its inner rplRedis
structure.

7 years agondb_redis: free _redisc_rpl_list.
Vicente Hernando [Sun, 17 Jun 2012 13:02:43 +0000 (15:02 +0200)]
ndb_redis: free _redisc_rpl_list.

- Free pending redis data to close ndb_redis module in a cleaner way.

7 years agodialog(k): proper local linking of profile before dlg is created
Daniel-Constantin Mierla [Fri, 15 Jun 2012 15:17:07 +0000 (17:17 +0200)]
dialog(k): proper local linking of profile before dlg is created

- reported by Nick R.

7 years agomodules_k/presence: partial NOTIFYs for presence.winfo not correctly formed when...
Peter Dunkley [Thu, 14 Jun 2012 16:43:54 +0000 (17:43 +0100)]
modules_k/presence: partial NOTIFYs for presence.winfo not correctly formed when using notifier processes

- I seem to have broken things when I did a pre-merge re-order/clean-up
  of the code
- Issue found by Hugh Waite @ Crocodile RCS and fixed by Hugh Waite and
  Peter Dunkley @ Crocodile RCS

7 years agomodules_k/pua: send_publish() doesn't work correctly in DB only mode with certain DBs
Peter Dunkley [Thu, 14 Jun 2012 16:41:49 +0000 (17:41 +0100)]
modules_k/pua: send_publish() doesn't work correctly in DB only mode with certain DBs

- The pua record wasn't getting inserted in some cases
- Looks like I removed a couple of lines I shouldn't have when merging
  from Crocodile's internal SVN repository to git
- Issue found by Hugh Waite @ Crocodile RCS and fixed by Hugh Waite and
  Peter Dunkley @ Crocodile RCS

7 years agomodules_k/presence: Fixed segmentation fault when uploading pres-rules documents
Peter Dunkley [Thu, 14 Jun 2012 11:10:35 +0000 (12:10 +0100)]
modules_k/presence: Fixed segmentation fault when uploading pres-rules documents

- Found and fixed by Hugh Waite @ Crocodile RCS

7 years agopua: remove wrong free of TM callback param in send_publish()
Daniel-Constantin Mierla [Thu, 14 Jun 2012 10:24:36 +0000 (12:24 +0200)]
pua: remove wrong free of TM callback param in send_publish()

- reported by Charles Chance and Juha Heinanen

7 years agousrloc(k): better safety check for null record access
Daniel-Constantin Mierla [Wed, 13 Jun 2012 15:29:51 +0000 (17:29 +0200)]
usrloc(k): better safety check for null record access

7 years agousrloc(k): safety check for first record in udomain slot
Daniel-Constantin Mierla [Wed, 13 Jun 2012 14:33:17 +0000 (16:33 +0200)]
usrloc(k): safety check for first record in udomain slot

- reported by David Kovarik, FS#234

7 years agoMakefile: Add db_cluster
Jon Bonilla [Wed, 13 Jun 2012 13:38:20 +0000 (15:38 +0200)]
Makefile: Add db_cluster

Added to standard group as it has no dependencies

7 years agomodules_k/presence_[dialoginfo|mwi|reginfo]: fixed test of wrong variable
Juha Heinanen [Wed, 13 Jun 2012 13:25:12 +0000 (16:25 +0300)]
modules_k/presence_[dialoginfo|mwi|reginfo]: fixed test of wrong variable

7 years agomodules_k/usrloc: Only run timer when timer_interval > 0
Peter Dunkley [Wed, 13 Jun 2012 10:47:07 +0000 (11:47 +0100)]
modules_k/usrloc: Only run timer when timer_interval > 0

- This is useful on DB only multi-server systems when the database is
  cleaned up outside of Kamailio.
- This is a re-instatement of something that worked before the
  addition of GRUU.

7 years agodrouting: reset the content of routing tree if root pointer is not freed
Daniel-Constantin Mierla [Wed, 13 Jun 2012 09:51:57 +0000 (11:51 +0200)]
drouting: reset the content of routing tree if root pointer is not freed

- reported by Yufei Tao

7 years agopkg/deb Update debian version to 3.4.0~dev0
Jon Bonilla [Wed, 13 Jun 2012 01:16:37 +0000 (03:16 +0200)]
pkg/deb Update debian version to 3.4.0~dev0

7 years agomodules_k/registrar: Fixed merge error in api.c
Peter Dunkley [Tue, 12 Jun 2012 13:24:48 +0000 (14:24 +0100)]
modules_k/registrar: Fixed merge error in api.c

- Issue found and fixed by Hugh Waite @ Crocodile RCS Ltd

7 years agomodules/ipops: Added new exported function is_in_subnet()
Peter Dunkley [Tue, 12 Jun 2012 01:25:24 +0000 (02:25 +0100)]
modules/ipops: Added new exported function is_in_subnet()

- Feature added by Hugh Waite @ Crocodile RCS Ltd

7 years agomodules/app_lua: Added registrar:save_uri support
Peter Dunkley [Tue, 12 Jun 2012 01:10:30 +0000 (02:10 +0100)]
modules/app_lua: Added registrar:save_uri support

- Feature by Hugh Waite @ Crocodile RCS Ltd

7 years agomodules_k/registrar: Exported save_uri
Peter Dunkley [Tue, 12 Jun 2012 01:07:42 +0000 (02:07 +0100)]
modules_k/registrar: Exported save_uri

- Feature added by Hugh Waite @ Crocodile RCS Ltd

7 years agomodules/tls: Fixed log level and diagnostic typo
Peter Dunkley [Tue, 12 Jun 2012 01:01:10 +0000 (02:01 +0100)]
modules/tls: Fixed log level and diagnostic typo

- Fix by Hugh Waite @ Crocodile RCS Ltd

7 years agopkg/kamailio/fedora/16: Updated ver and rel in .spec to 3.4.0 and dev0
Peter Dunkley [Mon, 11 Jun 2012 21:39:10 +0000 (22:39 +0100)]
pkg/kamailio/fedora/16: Updated ver and rel in .spec to 3.4.0 and dev0

7 years agoregistrar(k): don't access realm_prefix.s if len is <=0
Daniel-Constantin Mierla [Mon, 11 Jun 2012 12:32:44 +0000 (14:32 +0200)]
registrar(k): don't access realm_prefix.s if len is <=0

- solaris is not happy accessing .s struct field if set to 0

7 years agoMakefile: version set to 3.4.0-dev0
Daniel-Constantin Mierla [Mon, 11 Jun 2012 10:32:05 +0000 (12:32 +0200)]
Makefile: version set to 3.4.0-dev0

- development for future major version 3.4.0 is open

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Juha Heinanen [Sat, 9 Jun 2012 14:05:49 +0000 (17:05 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

Forgot pull before push.

7 years agomodules/tls/sbufq.h: got rid of compiler warning
Juha Heinanen [Sat, 9 Jun 2012 14:04:30 +0000 (17:04 +0300)]
modules/tls/sbufq.h: got rid of compiler warning

7 years agosdpops: documented sdp_get() function
Daniel-Constantin Mierla [Fri, 8 Jun 2012 20:55:40 +0000 (22:55 +0200)]
sdpops: documented sdp_get() function

7 years agosdpops: use PV cache to lookup the parameter
Daniel-Constantin Mierla [Fri, 8 Jun 2012 20:47:21 +0000 (22:47 +0200)]
sdpops: use PV cache to lookup the parameter

- parsing PV names at runtime is a memory leak risk as PVs support
  dynamic names and allocate memory for them (applies for AVPs as well)
- don't add an avps with a string value pointing to NULL in case SDP is
  missing - potential risk of seg fault in very strict OSes as later
  there is a memcpy() to clone the value. Return -2 if there is no SDP

7 years agomqueue: use received sip msg if availabe instead of faked one
Daniel-Constantin Mierla [Fri, 8 Jun 2012 20:32:00 +0000 (22:32 +0200)]
mqueue: use received sip msg if availabe instead of faked one

- fake msg has meaningless attributes which may give different results
  to PVs than people expect when processing a real sip message

7 years agomodules/xmlrpc: got rid of unused variable
Juha Heinanen [Fri, 8 Jun 2012 20:15:46 +0000 (23:15 +0300)]
modules/xmlrpc: got rid of unused variable

7 years agomsg_translator.c: got rid of compiler warning
Juha Heinanen [Fri, 8 Jun 2012 20:10:43 +0000 (23:10 +0300)]
msg_translator.c: got rid of compiler warning

- Many more to go before 3.3 release.

7 years agopkg/deb Add lua to wheezy builds
Jon Bonilla [Fri, 8 Jun 2012 09:10:23 +0000 (11:10 +0200)]
pkg/deb Add lua to wheezy builds

Lua is back to wheezy thanks to Juha and Daniel

7 years agomodules/app_lua/Makefile: temporary fix for Debian Wheezy
Juha Heinanen [Thu, 7 Jun 2012 09:55:27 +0000 (12:55 +0300)]
modules/app_lua/Makefile:  temporary fix for Debian Wheezy

7 years agomodules_k/registrar Fixed memory leak in reg_fetch_contacts()
Anca Vamanu [Wed, 6 Jun 2012 12:49:57 +0000 (15:49 +0300)]
modules_k/registrar Fixed memory leak in reg_fetch_contacts()

7 years agosiputils: fix for is_gruu()
Daniel-Constantin Mierla [Tue, 5 Jun 2012 21:40:53 +0000 (23:40 +0200)]
siputils: fix for is_gruu()

- improper return code check resulted in wrong gruu detection when there
  was no uri parameter
- reported by Juha Heinanen, closes FS#235

7 years agomodules_k/path: Use single-quotes around received
Andreas Granig [Tue, 5 Jun 2012 12:31:04 +0000 (14:31 +0200)]
modules_k/path: Use single-quotes around received

For full RFC3261 compliance, use single-quoted "received" param
instead of double-quoted one.

7 years agoparser: Also support single-quoted URI params.
Andreas Granig [Tue, 5 Jun 2012 12:29:13 +0000 (14:29 +0200)]
parser: Also support single-quoted URI params.

RFC3261 only allows single-quoted params (no double-quoted
ones), however better support both.

7 years agopkg/kamailio/(centos|fedora): Tidied up a couple of issues in the BoxGrinder appliances
Peter Dunkley [Mon, 4 Jun 2012 14:31:36 +0000 (15:31 +0100)]
pkg/kamailio/(centos|fedora): Tidied up a couple of issues in the BoxGrinder appliances

7 years agopkg/kamailio/fedora: Updated .spec file to fix issue where some directories were...
Peter Dunkley [Mon, 4 Jun 2012 14:30:21 +0000 (15:30 +0100)]
pkg/kamailio/fedora: Updated .spec file to fix issue where some directories were left on uninstall

- Just needed a few %dir lines in the right place so that RPM knows
  to delete all of the Kamilio directories on uninstall.

7 years agoutils/kamctl: kamctl.sqlite not installed, kamctl.pgsql is installed (as kamctl.sqlit...
Peter Dunkley [Mon, 4 Jun 2012 11:58:56 +0000 (12:58 +0100)]
utils/kamctl: kamctl.sqlite not installed, kamctl.pgsql is installed (as kamctl.sqlite) instead

7 years agodispatcher(k): improved debug message
Daniel-Constantin Mierla [Mon, 4 Jun 2012 10:28:09 +0000 (12:28 +0200)]
dispatcher(k): improved debug message

- when hashing due to alg 7, print the string to be hased as well as the
  hash code for it

7 years agoapp_lua: explicit link against libm only of no pkg-config or lua-config is found
Daniel-Constantin Mierla [Mon, 4 Jun 2012 09:54:09 +0000 (11:54 +0200)]
app_lua: explicit link against libm only of no pkg-config or lua-config is found

- otherwise it appears two times in the libs linking string

7 years agoregistrar(k): moved realm prefix as first field in cfg registrar struct
Daniel-Constantin Mierla [Mon, 4 Jun 2012 09:40:11 +0000 (11:40 +0200)]
registrar(k): moved realm prefix as first field in cfg registrar struct

- added debug message to print the realm prefix

7 years agopkg/deb Remove mono build from Squeeze
Jon Bonilla [Mon, 4 Jun 2012 08:19:00 +0000 (10:19 +0200)]
pkg/deb Remove mono build from Squeeze

The module depends on Mono2.0 which is not
available in Squeeze.

7 years agopkg/kamialio/(centos|fedora): Tidied up some stuff in the Boxgrinder appliances
Peter Dunkley [Sat, 2 Jun 2012 20:40:13 +0000 (21:40 +0100)]
pkg/kamialio/(centos|fedora): Tidied up some stuff in the Boxgrinder appliances

7 years agopkg/kamailio/fedora/16: Updated .spec to require redhat-rpm-config for building
Peter Dunkley [Sat, 2 Jun 2012 19:25:38 +0000 (20:25 +0100)]
pkg/kamailio/fedora/16: Updated .spec to require redhat-rpm-config for building

- This is needed to get debuginfo RPMs to build automatically

7 years agopkg/kamailio/fedora/16: Updated Boxgrinder build appliance to install redhat-rpm...
Peter Dunkley [Sat, 2 Jun 2012 19:23:51 +0000 (20:23 +0100)]
pkg/kamailio/fedora/16: Updated Boxgrinder build appliance to install redhat-rpm-config

- This is needed to get debuginfo RPMs to build automatically

7 years agopkg/kamailio/centos/6: Updated Boxgrinder build appliance to install redhat-rpm-config
Peter Dunkley [Sat, 2 Jun 2012 19:22:50 +0000 (20:22 +0100)]
pkg/kamailio/centos/6: Updated Boxgrinder build appliance to install redhat-rpm-config

- This is needed to get debuginfo RPMs to build automatically

7 years agopkg/kamailio/fedora: Improvements to service script and .spec
Peter Dunkley [Fri, 1 Jun 2012 23:48:29 +0000 (00:48 +0100)]
pkg/kamailio/fedora: Improvements to service script and .spec

- systemd service script now deletes PID file and restarts Kamailio
  automatically if it fails due to an unhandled signal.
- Updated .spec to call "systemctl --system daemon-reload" after uninstall

7 years agopkg/kamailio/fedora: Changed directory structure a little and tweaked .spec for Fedora 17
Peter Dunkley [Fri, 1 Jun 2012 22:09:41 +0000 (23:09 +0100)]
pkg/kamailio/fedora: Changed directory structure a little and tweaked .spec for Fedora 17

7 years agomodules_k/presence: Fixed presence hard-state implementation
Peter Dunkley [Fri, 1 Jun 2012 10:50:17 +0000 (11:50 +0100)]
modules_k/presence: Fixed presence hard-state implementation

- Removed modparams added when I did this originally
- Hard-state is still "publish"ed to the presentity table (with expiry
  of -1)
- Removed exported function for updating hard-state presentity and
  added a new type to pres_refresh_watchers instead (also updated
  refreshWatchers MI command)
- Hard-state presentity now fetched using the event->get_pidf_doc()
  function instead of directly from the database
- Also fixed two bugs (from my notifier work) found during testing:
  - query_db_notify() sends NOTIFY requests immediately (instead of
    through notifier tasks)
  - segmentation fault in update_pw_dialogs_dbonlymode() when there
    are no matching dialogs

7 years agomodules_k/presence_xml: pidf-manipulation now fetched using event->get_pidf_doc()
Peter Dunkley [Fri, 1 Jun 2012 10:48:29 +0000 (11:48 +0100)]
modules_k/presence_xml: pidf-manipulation now fetched using event->get_pidf_doc()

- Part of the fix to the way presence hard-state works.
- Removed the, now unused, pidf_manipulation modparam

7 years agomodules_k/permissions: allow_trusted() doesn't work for HTTP requests
Peter Dunkley [Fri, 1 Jun 2012 10:37:21 +0000 (11:37 +0100)]
modules_k/permissions: allow_trusted() doesn't work for HTTP requests

- This is because HTTP requests don't have From: headers.
- Fixed by only checking From-URIs for SIP requests.

7 years agonathelper(k): remove maddr param in fix_nated_contact()
Daniel-Constantin Mierla [Fri, 1 Jun 2012 09:34:20 +0000 (11:34 +0200)]
nathelper(k): remove maddr param in fix_nated_contact()

- if maddr exists, it makes no sense anymore if the contact uri is
  changed by the proxy
- reported by Morten Isaksen

7 years agocore: Via parser allows generic parameters without value separated by white spaces...
Daniel-Constantin Mierla [Fri, 1 Jun 2012 07:06:33 +0000 (09:06 +0200)]
core: Via parser allows generic parameters without value separated by white spaces and semicolon

- reported by Iñaki Baz Castillo, closes FS#127

7 years agopkg/kamailio/centos/6: Replaced kamailio.spec with symbolic link to ../../fedora...
Peter Dunkley [Thu, 31 May 2012 22:11:21 +0000 (23:11 +0100)]
pkg/kamailio/centos/6: Replaced kamailio.spec with symbolic link to ../../fedora/fc16/kamailio.spec

7 years agopkg/kamailio/fedora/fc16: Updated .spec file to work for both Fedora 16 and CentOS 6
Peter Dunkley [Thu, 31 May 2012 22:10:23 +0000 (23:10 +0100)]
pkg/kamailio/fedora/fc16: Updated .spec file to work for both Fedora 16 and CentOS 6

- Also updated release number to pre3

7 years agousrloc(k): fix detection of usrloc callbacks
Daniel-Constantin Mierla [Thu, 31 May 2012 21:39:03 +0000 (23:39 +0200)]
usrloc(k): fix detection of usrloc callbacks

- proper check of ul callback types
- harmless, just a bit of performance gain, however, the code was
  mistaken

7 years agoapp_lua: don't use variable for lua version detection
Daniel-Constantin Mierla [Thu, 31 May 2012 20:22:19 +0000 (22:22 +0200)]
app_lua: don't use variable for lua version detection

- trying to see if this makes it work on debian wheezy, as the make
  command is re-exeuting in infinite loop of implicit rule

7 years agousrloc(k): option to check if contact DB UPDATE was successful
Daniel-Constantin Mierla [Thu, 31 May 2012 17:15:52 +0000 (19:15 +0200)]
usrloc(k): option to check if contact DB UPDATE was successful

- use DB API affected_rows() when available to detect if the DB UPDATE
  operation for a contact was successful, if not, do an INSERT instead
- behaviour controlled by parameter db_check_update, default is 0 (no
  check for affected rows and no insert -- backward compatible)
- closes items FS#41 and FS#226

7 years agoapp_lua: set libm dependency before internal SER_LIBS var
Daniel-Constantin Mierla [Thu, 31 May 2012 14:34:50 +0000 (16:34 +0200)]
app_lua: set libm dependency before internal SER_LIBS var

7 years agoMakefile: version set to 3.3.0-pre3
Daniel-Constantin Mierla [Thu, 31 May 2012 12:45:41 +0000 (14:45 +0200)]
Makefile: version set to 3.3.0-pre3

7 years agocore/select: fixed @via... without header index
Daniel-Constantin Mierla [Thu, 31 May 2012 12:44:19 +0000 (14:44 +0200)]
core/select: fixed @via... without header index

- reported by Iñaki Baz Castillo, fixes FS#138

7 years agopkg/deb Add Ubuntu 12.04 debian folder
Jon Bonilla [Wed, 30 May 2012 12:38:34 +0000 (14:38 +0200)]
pkg/deb Add Ubuntu 12.04 debian folder

7 years ago- improved URI while publishing user location
Carsten Bock [Wed, 30 May 2012 10:53:03 +0000 (12:53 +0200)]
- improved URI while publishing user location
- extended user-record-data in the XML
Credits go to Gnaneshwar Gatla, InTouch Health

7 years agoMakefile: Add tmrec to standard groups
Jon Bonilla [Wed, 30 May 2012 09:07:51 +0000 (11:07 +0200)]
Makefile: Add tmrec to standard groups

7 years agoplg/deb fix app_mono depends
Jon Bonilla [Wed, 30 May 2012 08:50:55 +0000 (10:50 +0200)]
plg/deb fix app_mono depends

7 years agopkg/deb Add mono module to debian packaging
Jon Bonilla [Wed, 30 May 2012 08:39:38 +0000 (10:39 +0200)]
pkg/deb Add mono module to debian packaging

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Juha Heinanen [Wed, 30 May 2012 08:09:34 +0000 (11:09 +0300)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router