sip-router
8 years agoMerge branch 'master' into websocket
Peter Dunkley [Wed, 4 Jul 2012 17:08:02 +0000 (18:08 +0100)]
Merge branch 'master' into websocket

* master:
  modules/lcr: Fixed to/from_gw tests when proto parameter is 0 (ANY)
  cdp_avp: added README file
  CDP: Fixed README
  CDP: A few fixes to docs and location of image files - cleaner organisation
  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

8 years agomodules/websocket: Fixes to WS and WSS message sending
Peter Dunkley [Wed, 4 Jul 2012 15:15:29 +0000 (16:15 +0100)]
modules/websocket: Fixes to WS and WSS message sending

8 years agomodules_k/pv: Added missing break;s
Peter Dunkley [Wed, 4 Jul 2012 15:13:40 +0000 (16:13 +0100)]
modules_k/pv: Added missing break;s

8 years agocore: Fixes for WSS (secure WebSocket) transport and Via:s
Peter Dunkley [Wed, 4 Jul 2012 15:12:53 +0000 (16:12 +0100)]
core: Fixes for WSS (secure WebSocket) transport and Via:s

8 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.

8 years agomodules/websocket and pkg/kamailio/fedora: Added websocket module documentation
Peter Dunkley [Tue, 3 Jul 2012 22:59:22 +0000 (23:59 +0100)]
modules/websocket and pkg/kamailio/fedora: Added websocket module documentation

8 years agopkg/kamailio/(centos|fedora): Tweaked .spec and .appl files to add WebSocket support
Peter Dunkley [Tue, 3 Jul 2012 15:57:50 +0000 (16:57 +0100)]
pkg/kamailio/(centos|fedora): Tweaked .spec and .appl files to add WebSocket support

8 years agocore: Added websocket module to Makefile
Peter Dunkley [Tue, 3 Jul 2012 15:57:00 +0000 (16:57 +0100)]
core: Added websocket module to Makefile

8 years agomodules/websocket: Updated example kamailio.cfg
Peter Dunkley [Tue, 3 Jul 2012 15:56:11 +0000 (16:56 +0100)]
modules/websocket: Updated example kamailio.cfg

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

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

8 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

8 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

8 years agomodules/websockets: Added some extra debug/diagnostics
Peter Dunkley [Sun, 1 Jul 2012 21:21:38 +0000 (22:21 +0100)]
modules/websockets: Added some extra debug/diagnostics

8 years agocore: Updated Via and Record-Route generation for WebSockets
Peter Dunkley [Sun, 1 Jul 2012 21:20:36 +0000 (22:20 +0100)]
core: Updated Via and Record-Route generation for WebSockets

8 years agocore: Added more PROTO_WS and PROTO_WSS checks
Peter Dunkley [Sat, 30 Jun 2012 21:53:00 +0000 (22:53 +0100)]
core: Added more PROTO_WS and PROTO_WSS checks

8 years agomodules/websocket: Removed SIPp script and HTML file from example directory
Peter Dunkley [Sat, 30 Jun 2012 21:52:26 +0000 (22:52 +0100)]
modules/websocket: Removed SIPp script and HTML file from example directory

8 years agoMerge branch 'master' into websocket
Peter Dunkley [Sat, 30 Jun 2012 20:13:58 +0000 (21:13 +0100)]
Merge branch 'master' into websocket

Conflicts:
pkg/kamailio/fedora/16/kamailio.spec

8 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

8 years agomodules/websocket: Corrected output of ws.dump MI command
Peter Dunkley [Sat, 30 Jun 2012 19:36:00 +0000 (20:36 +0100)]
modules/websocket: Corrected output of ws.dump MI command

8 years agocore: Fixed segmentation fault
Peter Dunkley [Sat, 30 Jun 2012 19:35:10 +0000 (20:35 +0100)]
core: Fixed segmentation fault

- Tiny window for this...  but I hit it when Google Chrome crashed during
  a WebSocket session

8 years agomodules/websocket: Updated connection reuse and closing flags for WebSocket handshake.
Peter Dunkley [Fri, 29 Jun 2012 23:46:20 +0000 (00:46 +0100)]
modules/websocket: Updated connection reuse and closing flags for WebSocket handshake.

- Updated the sample kamailio.cfg to match too.

8 years agomodules/websocket: improved sample kamailio.cfg for WebSockets
Peter Dunkley [Fri, 29 Jun 2012 23:02:29 +0000 (00:02 +0100)]
modules/websocket: improved sample kamailio.cfg for WebSockets

8 years agoeverything: shotgun attempt to put PROTO_WS and PROTO_WSS across core and in modules...
Peter Dunkley [Fri, 29 Jun 2012 23:01:07 +0000 (00:01 +0100)]
everything: shotgun attempt to put PROTO_WS and PROTO_WSS across core and in modules I use

- Bound to have missed something and lots of testing required.

8 years agocore: rolled back changes to receive.c
Peter Dunkley [Fri, 29 Jun 2012 22:11:15 +0000 (23:11 +0100)]
core: rolled back changes to receive.c

- Not actually needed because the recent change to ws_frame.c covers it all
  (I think)

8 years agomodules/websocket: Make sure that all WebSocket messages are sent on connections...
Peter Dunkley [Fri, 29 Jun 2012 22:08:19 +0000 (23:08 +0100)]
modules/websocket: Make sure that all WebSocket messages are sent on connections that already exist

- This is the same as using set_forward_no_connect() and
  set_reply_no_connect() in kamailio.cfg.  But this means it will
  always happen automatically for WebSocket messages.
- This is important as a WebSocket server cannot create connections -
  so we always have to use one that already exists.

8 years agocore: Make sure that responses to requests received on a WebSocket are sent on existi...
Peter Dunkley [Fri, 29 Jun 2012 22:05:48 +0000 (23:05 +0100)]
core: Make sure that responses to requests received on a WebSocket are sent on existing connections

- WebSocket servers cannot create connections to WebSocket clients - so
  this setting is essential.
- It does exactly the same thing as using set_reply_no_connect() in
  kamailio.cfg - but this way it is always on (as it must be) for
  WebSockets.

8 years agomodules_k/nathelper: Added nat_uac_test() check for WebSockets
Peter Dunkley [Fri, 29 Jun 2012 22:03:15 +0000 (23:03 +0100)]
modules_k/nathelper: Added nat_uac_test() check for WebSockets

- At the moment (and until Kamailio and _all_ WebSocket clients support
  outbound) we want to treat WebSocket UAs as behind NATs (even when they
  are not).
- This is so that the aliasing (which is good for TCP/TLS connection reuse
  as well as NAT traversal) can be used to make sure messages to WebSocket
  UAs are routed correctly.

8 years agomodules/websockets: Changes WS to be a protocol in its own right instead of a flag...
Peter Dunkley [Fri, 29 Jun 2012 16:47:22 +0000 (17:47 +0100)]
modules/websockets: Changes WS to be a protocol in its own right instead of a flag on TCP/TLS connections

8 years agomodules_k/nathelper: Added PROTO_WS support
Peter Dunkley [Fri, 29 Jun 2012 16:47:06 +0000 (17:47 +0100)]
modules_k/nathelper: Added PROTO_WS support

8 years agomodules/tm: Added PROTO_WS support
Peter Dunkley [Fri, 29 Jun 2012 16:46:36 +0000 (17:46 +0100)]
modules/tm: Added PROTO_WS support

8 years agocore: Changed WS from being a flag on a TCP/TLS connection to a protocol in its own...
Peter Dunkley [Fri, 29 Jun 2012 16:44:15 +0000 (17:44 +0100)]
core: Changed WS from being a flag on a TCP/TLS connection to a protocol in its own right

- Also added ;transport=ws parameter parsing for URIs

8 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

8 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

8 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

8 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

8 years agocore: added support for WS keyword for use in conditionals with proto and snd_proto
Peter Dunkley [Thu, 28 Jun 2012 16:57:44 +0000 (17:57 +0100)]
core: added support for WS keyword for use in conditionals with proto and snd_proto

8 years agocore: fixed an issue where big websocket requests (single WS frame but across multipl...
Peter Dunkley [Thu, 28 Jun 2012 16:55:53 +0000 (17:55 +0100)]
core: fixed an issue where big websocket requests (single WS frame but across multiple packets) weren't handled

8 years agocore: Fix to msg_send() so that requests destined for a WebSocket connection go throu...
Peter Dunkley [Thu, 28 Jun 2012 16:54:45 +0000 (17:54 +0100)]
core: Fix to msg_send() so that requests destined for a WebSocket connection go through the websocket module

- responses already worked

8 years agomodules/websockets: tidied up a bit of the code
Peter Dunkley [Thu, 28 Jun 2012 16:53:55 +0000 (17:53 +0100)]
modules/websockets: tidied up a bit of the code

8 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

8 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]

8 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

8 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)

8 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

8 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

8 years agomodules/websocket: improvements to ws.dump MI command
Peter Dunkley [Sat, 23 Jun 2012 23:40:24 +0000 (00:40 +0100)]
modules/websocket: improvements to ws.dump MI command

8 years agopkg/kamailio/fedora: added WebSocket module to .spec file
Peter Dunkley [Sat, 23 Jun 2012 21:13:35 +0000 (22:13 +0100)]
pkg/kamailio/fedora: added WebSocket module to .spec file

8 years agomodules/websocket: now using libunistring:u8_check() to work out whether to send...
Peter Dunkley [Sat, 23 Jun 2012 20:57:37 +0000 (21:57 +0100)]
modules/websocket: now using libunistring:u8_check() to work out whether to send text or binary websocket frames

- There is no straight-forward (or practical) way to be sure that a SIP request
  only contains UTF-8 characters and therefore should be sent as text instead
  of binary.  However, you can sometimes tell whether the request definitely
  isn't UTF-8 by checking for invalid byte sequences - and when it is definitely
  not UTF-8 frames _MUST_ be sent as binary.

8 years agoparser: Update Via parsing state-machine to support WS and WSS
Peter Dunkley [Sat, 23 Jun 2012 20:57:09 +0000 (21:57 +0100)]
parser: Update Via parsing state-machine to support WS and WSS

8 years agomodules/websocket: updated example configuration and test scripts
Peter Dunkley [Sat, 23 Jun 2012 20:55:34 +0000 (21:55 +0100)]
modules/websocket: updated example configuration and test scripts

- Added options_rx.xml SIPp script
- kamailio.cfg routes OPTIONS to SIPp
- websocket_test.html now using WSS (WS over TLS)

8 years agocore: fixed segmentation fault I had added to forward.h
Peter Dunkley [Sat, 23 Jun 2012 20:52:15 +0000 (21:52 +0100)]
core: fixed segmentation fault I had added to forward.h

8 years agocore: added events and data-structures so that Kamailio core can transmit through...
Peter Dunkley [Sat, 23 Jun 2012 18:10:03 +0000 (19:10 +0100)]
core: added events and data-structures so that Kamailio core can transmit through the WebSocket module

8 years agomodules/websocket: added generic transmit functions to WebSocket module so Kamailio...
Peter Dunkley [Sat, 23 Jun 2012 18:08:38 +0000 (19:08 +0100)]
modules/websocket: added generic transmit functions to WebSocket module so Kamailio core can send WebSocket frames

8 years agomodules/websocket: Fixed a couple of connection issues and now dropping received...
Peter Dunkley [Sat, 23 Jun 2012 16:37:25 +0000 (17:37 +0100)]
modules/websocket: Fixed a couple of connection issues and now dropping received SIP requests into receive_msg()

- SIP parser not updated for WS and WSS yet

8 years agomodules/websocket: updated example/test kamailio.cfg to support TLS
Peter Dunkley [Sat, 23 Jun 2012 15:07:12 +0000 (16:07 +0100)]
modules/websocket: updated example/test kamailio.cfg to support TLS

- Basic WebSocket working over TLS

8 years agomodules/websocket: finished off WebSocket connection management
Peter Dunkley [Sat, 23 Jun 2012 14:03:48 +0000 (15:03 +0100)]
modules/websocket: finished off WebSocket connection management

8 years agomodules/websocket: tidied up some of the WS connection code
Peter Dunkley [Sat, 23 Jun 2012 10:31:50 +0000 (11:31 +0100)]
modules/websocket: tidied up some of the WS connection code

8 years agomodules/websocket: Closing handshake now working
Peter Dunkley [Thu, 21 Jun 2012 23:34:24 +0000 (00:34 +0100)]
modules/websocket: Closing handshake now working

- Also completed MI commands which allowed me to test Ping and Pong

8 years agomodules/websocket: More tidying up
Peter Dunkley [Thu, 21 Jun 2012 16:37:08 +0000 (17:37 +0100)]
modules/websocket: More tidying up

8 years agomodules/websocket: fixed typo
Peter Dunkley [Thu, 21 Jun 2012 15:58:05 +0000 (16:58 +0100)]
modules/websocket: fixed typo

8 years agomodules/websockets: started adding WebSocket connection management to WebSocket module
Peter Dunkley [Thu, 21 Jun 2012 15:28:57 +0000 (16:28 +0100)]
modules/websockets: started adding WebSocket connection management to WebSocket module

8 years agomodules/websocket: Added connection close code and tidied up MI commands
Peter Dunkley [Thu, 21 Jun 2012 12:50:53 +0000 (13:50 +0100)]
modules/websocket: Added connection close code and tidied up MI commands

8 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.

8 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

8 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.

8 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

8 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 ...

8 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

8 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.

8 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.

8 years agomodules/websocket: Filled in MI commands to dump WebSocket connection details and...
Peter Dunkley [Sun, 17 Jun 2012 20:31:29 +0000 (21:31 +0100)]
modules/websocket: Filled in MI commands to dump WebSocket connection details and Close a WebSocket

8 years agocore: Fixed a problem with receiving WebSocket frames
Peter Dunkley [Sun, 17 Jun 2012 20:30:33 +0000 (21:30 +0100)]
core: Fixed a problem with receiving WebSocket frames

- If two frames were pulled from the buffer at the same time the second
  wasn't being processed.

8 years agomodules/websocket: more work on WebSocket framing and base-protocol
Peter Dunkley [Sun, 17 Jun 2012 13:29:44 +0000 (14:29 +0100)]
modules/websocket: more work on WebSocket framing and base-protocol

8 years agocore: added clone buf support for WebSocket connections
Peter Dunkley [Sun, 17 Jun 2012 13:28:20 +0000 (14:28 +0100)]
core: added clone buf support for WebSocket connections

8 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.

8 years agomodules/websocket: received frame decoding
Peter Dunkley [Sat, 16 Jun 2012 23:44:14 +0000 (00:44 +0100)]
modules/websocket: received frame decoding

8 years agocore: tidied up websocket frame length code
Peter Dunkley [Sat, 16 Jun 2012 23:43:44 +0000 (00:43 +0100)]
core: tidied up websocket frame length code

8 years agocore: improved de-buffering for websockets
Peter Dunkley [Sat, 16 Jun 2012 21:58:36 +0000 (22:58 +0100)]
core: improved de-buffering for websockets

- This should handle the case that the full TCP packet hasn't been received
  when the read function is called.  Not sure how to explicitly test this
  though.

8 years agocore: make it possible to retrieve TCP connection without updating connection liifetime
Peter Dunkley [Sat, 16 Jun 2012 21:58:00 +0000 (22:58 +0100)]
core: make it possible to retrieve TCP connection without updating connection liifetime

8 years agomodules/websocket: small tidy up to handshake code
Peter Dunkley [Sat, 16 Jun 2012 21:57:34 +0000 (22:57 +0100)]
modules/websocket: small tidy up to handshake code

8 years agocore: Added WS support/events to Kamailio core
Peter Dunkley [Sat, 16 Jun 2012 16:06:33 +0000 (17:06 +0100)]
core: Added WS support/events to Kamailio core

8 years agomodules/websocket: WS module registering for WS messages and basic handler implementation
Peter Dunkley [Sat, 16 Jun 2012 16:05:54 +0000 (17:05 +0100)]
modules/websocket: WS module registering for WS messages and basic handler implementation

8 years agomodules/websocket: more work on module boiler-plate and handshake
Peter Dunkley [Sat, 16 Jun 2012 13:38:22 +0000 (14:38 +0100)]
modules/websocket: more work on module boiler-plate and handshake

- Handshake now works with Google Chrome

8 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.

8 years agomodules/websocket: Improvements to handshake handler
Peter Dunkley [Fri, 15 Jun 2012 09:17:06 +0000 (10:17 +0100)]
modules/websocket: Improvements to handshake handler

8 years agomodules/websocket: First attempt a module for websocket support
Peter Dunkley [Thu, 14 Jun 2012 23:40:28 +0000 (00:40 +0100)]
modules/websocket: First attempt a module for websocket support

- So far this is:
  - Module boiler-plate
  - WebSocket handshake
  - Example/test kamailio.cfg

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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

8 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

8 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