sip-router
7 years agomodules/sipcapture HEPv3 implementation. ALPHA!!! The final version will be after... adubovikov/hepv3
Alexandr Dubovikov [Fri, 3 Aug 2012 21:21:59 +0000 (23:21 +0200)]
modules/sipcapture HEPv3 implementation. ALPHA!!! The final version will be after cluecon 12.

7 years agocore: added md5 wrapper functions to build with Colin Plumb's md5 code
Daniel-Constantin Mierla [Thu, 2 Aug 2012 08:16:31 +0000 (10:16 +0200)]
core: added md5 wrapper functions to build with Colin Plumb's md5 code

Author: Tzafrir Cohen <tzafrir@debian.org>

7 years agocore: Use Colin Plumb's MD5 implementation
Daniel-Constantin Mierla [Thu, 2 Aug 2012 08:13:00 +0000 (10:13 +0200)]
core: Use Colin Plumb's MD5 implementation

Origin: http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=summary
Author: Tzafrir Cohen <tzafrir@debian.org>

Borrowed the md5 code from dpkg instead of the existing md5.[ch]

This makes the code compatible with Debian packing rules and
restrictions regarding license for distribution

7 years agoregister(k): pack contact info based on header for searching existing ul records
Daniel-Constantin Mierla [Mon, 30 Jul 2012 10:57:09 +0000 (12:57 +0200)]
register(k): pack contact info based on header for searching existing ul records

- not using the contact header resulted in omitting instance and reg-id
  parameters, not following gruu/ob extensions, ending in duplicate
  records for same +sip.instance
- reported by José Luis Millán

7 years agousrloc(k): on ul update, re-clone uri and callid if instance is set
Daniel-Constantin Mierla [Mon, 30 Jul 2012 10:55:36 +0000 (12:55 +0200)]
usrloc(k): on ul update, re-clone uri and callid if instance is set

- changes can happen when gruu/ob is enabled as the UA can get different
  address for same instance

7 years agodb_sqlite: added notes about usage in readme
Daniel-Constantin Mierla [Mon, 30 Jul 2012 09:18:28 +0000 (11:18 +0200)]
db_sqlite: added notes about usage in readme

- based on content by Meftah Tayeb

7 years agortpproxy: allow pv as parameter to set_rtpproxy_set() function
Daniel-Constantin Mierla [Fri, 27 Jul 2012 11:14:53 +0000 (13:14 +0200)]
rtpproxy: allow pv as parameter to set_rtpproxy_set() function

7 years agomodules/lcr: improved documentation of lcr_count module param
Juha Heinanen [Fri, 27 Jul 2012 10:08:21 +0000 (13:08 +0300)]
modules/lcr:  improved documentation of lcr_count module param

7 years agomodules/lcr: Fix printing of IPv4 addresses in lcr.dump_gws
Richard Fuchs [Thu, 26 Jul 2012 13:41:26 +0000 (09:41 -0400)]
modules/lcr: Fix printing of IPv4 addresses in lcr.dump_gws

IPv4 addresses were printed incorrectly. Also add special handling for
null gw addresses and print them as 0.0.0.0 for backwards compatibility.

7 years agomqueue: Added mq_size() function to get runtime size of mqueue in script.
Alex Balashov [Tue, 24 Jul 2012 02:23:36 +0000 (22:23 -0400)]
mqueue: Added mq_size() function to get runtime size of mqueue in script.

7 years agomqueue: Added MI command to get current size of mqueue.
Alex Balashov [Mon, 23 Jul 2012 23:53:41 +0000 (19:53 -0400)]
mqueue: Added MI command to get current size of mqueue.

There is currently no runtime visibility into the size of a given mqueue.
To address this, added an MI command 'mq_get_size' that can return the size
of an mqueue by name.  Example:

   diminuendo-1:~/sip-router/modules/mqueue# kamctl fifo mq_get_size r_write
   mqueue::  name=r_write size=1

7 years agomodules/matrix Fixed MI command not exported
Anca Vamanu [Fri, 20 Jul 2012 13:59:52 +0000 (16:59 +0300)]
modules/matrix Fixed MI command not exported

Added missing register_mi_mod() call in mod_init.

7 years agomodules/sipcapture: Extended sipcapture to support multiple tables
Dragos Dinu [Fri, 20 Jul 2012 07:48:48 +0000 (10:48 +0300)]
modules/sipcapture: Extended sipcapture to support multiple tables

The sipcapture module can support storing the information to multiple sql tables.
Tests have shown that a major bottleneck against scalability on multi core CPU of
the capture node instance was caused by using a single MySQL Table.
The frontend (HOMER) will be soon patched to support retrieval of data from multiple
sources.

The decision to select witch table is written to, can be configured from random,
round robin or hashing via username or callid.

7 years agomodules_k/uac: uac_replace_from/to AUTO mode with dialog module
Anca Vamanu [Thu, 19 Jul 2012 14:49:13 +0000 (17:49 +0300)]
modules_k/uac: uac_replace_from/to AUTO mode with dialog module

Added a implementation for uac_replace_from/to() that uses the dialog
module for AUTO mode. In this mode the URIs are stored as dialog
variables.

The change in tm module fixes a bug: if uac_replace_to() was called, the
URI was not changed accordingly in Cancel.

7 years agopermissions(k): added new cfg function allow_address_group(addr, port)
Daniel-Constantin Mierla [Thu, 19 Jul 2012 08:28:13 +0000 (10:28 +0200)]
permissions(k): added new cfg function allow_address_group(addr, port)

- return group of matching address and port record in address table

7 years agocore: fixup helper function for spve - igp parameters
Daniel-Constantin Mierla [Thu, 19 Jul 2012 08:23:20 +0000 (10:23 +0200)]
core: fixup helper function for spve - igp parameters

7 years agotls: set function to return the id
Daniel-Constantin Mierla [Wed, 18 Jul 2012 17:00:38 +0000 (19:00 +0200)]
tls: set function to return the id

- starting with v1.0.0 openssl does not use anymore getpid(), but address
  of errno which can point to same virtual address in a multi-process
  application
- for refrence http://www.openssl.org/docs/crypto/threads.html
- credits to Jijo on sr-dev mailing list

7 years agokamdbctl: mtree tables were not in the list for db creation
Daniel-Constantin Mierla [Wed, 18 Jul 2012 16:51:54 +0000 (18:51 +0200)]
kamdbctl: mtree tables were not in the list for db creation

7 years agokamctl: stats command can print a single group of statistics
Daniel-Constantin Mierla [Wed, 18 Jul 2012 06:54:56 +0000 (08:54 +0200)]
kamctl: stats command can print a single group of statistics

- groupid can be given as command parameter

7 years agokamailio.cfg: removed sample db_mode parameter for domain module
Daniel-Constantin Mierla [Wed, 18 Jul 2012 06:27:52 +0000 (08:27 +0200)]
kamailio.cfg: removed sample db_mode parameter for domain module

- no longer exists since 3.3 domain update

7 years agoRemove duplicate entry of "default_domain" in docs.
Carsten Bock [Tue, 17 Jul 2012 14:15:46 +0000 (10:15 -0400)]
Remove duplicate entry of "default_domain" in docs.
Remove double occurance of the CSeq Attribute in the XML.
(closes FS#246 - pua_reginfo adds duplicate cseq field in XML body on the Bugtracker)

Thanks to Andrew Pogrebennyk (apogrebennyk@sipwise.com) for pointing this out.

7 years agopkg/kamailio/fedora/17: Updated appliances
Peter Dunkley [Sat, 14 Jul 2012 21:15:00 +0000 (22:15 +0100)]
pkg/kamailio/fedora/17: Updated appliances

7 years agocdp_avp: fixed small typo in readme
Daniel-Constantin Mierla [Fri, 13 Jul 2012 16:03:46 +0000 (18:03 +0200)]
cdp_avp: fixed small typo in readme

7 years agolib/srdb1 : put pooling constans into separate header file to reduce
Anca Vamanu [Fri, 13 Jul 2012 13:50:07 +0000 (16:50 +0300)]
lib/srdb1 : put pooling constans into separate header file to reduce
include dependancy

7 years agoPorted gruu and outbound changes to p_usrloc module
Pawel Kuzak [Fri, 13 Jul 2012 13:06:48 +0000 (16:06 +0300)]
Ported gruu and outbound changes to p_usrloc module

7 years agoMerge branch 'master' of ssh://git.sip-router.org/sip-router
Peter Dunkley [Fri, 13 Jul 2012 09:37:08 +0000 (10:37 +0100)]
Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  Makefile.defs: version set 3.4.0-dev2
  parser/sdp: more suggestive debug message
  parser/sdp: prevent manipulation with freed structure
  core: Removed unused enum (crept in during WebSocket implementation)
  modules/ipops: Corrected is_in_subnet() exported function and added is_ip to module C API
  modules/sl: Fixed segmentation fault and corrected log messages
  modules_k/registrar: Fixed some errors in module documentation
  core: update printing of socket lists to show the advertised address if set for the socket
  modules_k/presence: Added missing use_table() call

7 years agopkg/kamailio/fedora/16: Updated rel in .spec to dev2
Peter Dunkley [Fri, 13 Jul 2012 09:36:31 +0000 (10:36 +0100)]
pkg/kamailio/fedora/16: Updated rel in .spec to dev2

7 years agoMakefile.defs: version set 3.4.0-dev2
Daniel-Constantin Mierla [Fri, 13 Jul 2012 07:49:40 +0000 (09:49 +0200)]
Makefile.defs: version set 3.4.0-dev2

7 years agoparser/sdp: more suggestive debug message
Daniel-Constantin Mierla [Fri, 13 Jul 2012 07:49:16 +0000 (09:49 +0200)]
parser/sdp: more suggestive debug message

7 years agoparser/sdp: prevent manipulation with freed structure
Michal Karas [Thu, 12 Jul 2012 15:38:15 +0000 (17:38 +0200)]
parser/sdp: prevent manipulation with freed structure

- FS#244

7 years agocore: Removed unused enum (crept in during WebSocket implementation)
Peter Dunkley [Thu, 12 Jul 2012 21:45:32 +0000 (22:45 +0100)]
core: Removed unused enum (crept in during WebSocket implementation)

7 years agomodules/ipops: Corrected is_in_subnet() exported function and added is_ip to module...
Peter Dunkley [Thu, 12 Jul 2012 20:50:00 +0000 (21:50 +0100)]
modules/ipops: Corrected is_in_subnet() exported function and added is_ip to module C API

- Fixes and enhancements by Hugh Waite @ Crocodile RCS

7 years agomodules/sl: Fixed segmentation fault and corrected log messages
Peter Dunkley [Thu, 12 Jul 2012 20:48:08 +0000 (21:48 +0100)]
modules/sl: Fixed segmentation fault and corrected log messages

- Fixes by Hugh Waite @ Crocodile RCS

7 years agomodules_k/registrar: Fixed some errors in module documentation
Peter Dunkley [Thu, 12 Jul 2012 20:46:58 +0000 (21:46 +0100)]
modules_k/registrar: Fixed some errors in module documentation

- Fix by Hugh Waite @ Crocodile RCS

7 years agocore: update printing of socket lists to show the advertised address if set for the...
Peter Dunkley [Thu, 12 Jul 2012 20:44:45 +0000 (21:44 +0100)]
core: update printing of socket lists to show the advertised address if set for the socket

- useful for diagnosing what is going on with advertised address
- Enhancement added by Hugh Waite @ Crocodile RCS

7 years agomodules_k/presence: Added missing use_table() call
Peter Dunkley [Thu, 12 Jul 2012 20:20:49 +0000 (21:20 +0100)]
modules_k/presence: Added missing use_table() call

7 years agoMakefile: SCTP library check doesn't look in /usr/lib64
Peter Dunkley [Thu, 12 Jul 2012 15:26:38 +0000 (16:26 +0100)]
Makefile: SCTP library check doesn't look in /usr/lib64

- This means you can't build Kamailio for a 64-bit OS like CentOS or
  Fedora.

7 years agoRevert 008c92bece290aed3b8e6439be71c2c37526901d
Jon Bonilla [Thu, 12 Jul 2012 07:27:56 +0000 (09:27 +0200)]
Revert 008c92bece290aed3b8e6439be71c2c37526901d

We'll readd the dependency once the websocket
 module is enabled for build

7 years agokamdbctl: add domain_attrs table to standard tables
Klaus Darilion [Wed, 11 Jul 2012 12:30:51 +0000 (12:30 +0000)]
kamdbctl: add domain_attrs table to standard tables

7 years agomodules_k/uac: fix handling of empty display-part.
Andreas Granig [Wed, 11 Jul 2012 10:52:38 +0000 (12:52 +0200)]
modules_k/uac: fix handling of empty display-part.

This re-enables the feature to strip the display name by setting
an empty string, like uac_replace_from("", "$var(from)");

7 years agondb_redis: README file update. redis_cmd variadic function.
Vicente Hernando [Tue, 10 Jul 2012 10:05:02 +0000 (12:05 +0200)]
ndb_redis: README file update. redis_cmd variadic function.

7 years agondb_redis: redis_cmd variadic function documentation.
Vicente Hernando [Tue, 10 Jul 2012 09:54:00 +0000 (05:54 -0400)]
ndb_redis: redis_cmd variadic function documentation.

7 years agondb_redis: redis_cmd changed into a variadic function.
Vicente Hernando [Tue, 10 Jul 2012 09:48:45 +0000 (05:48 -0400)]
ndb_redis: redis_cmd changed into a variadic function.

- command string can be split into several strings.

7 years agopkg/kamailio/deb/wheezy: Added build dependency on libunistring-dev.
Juha Heinanen [Sun, 8 Jul 2012 18:20:35 +0000 (21:20 +0300)]
pkg/kamailio/deb/wheezy: Added build dependency on libunistring-dev.

7 years agopkg/kamailio/fedora/17: Added @Base group to BoxGrinder appliances
Peter Dunkley [Sun, 8 Jul 2012 01:06:05 +0000 (02:06 +0100)]
pkg/kamailio/fedora/17: Added @Base group to BoxGrinder appliances

- This groups is required to get the network to come up automatically for
  Fedora 17 (it wasn't needed for Fedora 16 or CentOS 6).

7 years agoMerge branch 'master' into websocket
Peter Dunkley [Sat, 7 Jul 2012 16:52:20 +0000 (17:52 +0100)]
Merge branch 'master' into websocket

7 years agondb_redis: update README file
Vicente Hernando [Fri, 6 Jul 2012 16:23:09 +0000 (18:23 +0200)]
ndb_redis: update README file

7 years agondb_redis: redisc_free_reply only frees redisReply structure.
Vicente Hernando [Fri, 6 Jul 2012 16:12:36 +0000 (12:12 -0400)]
ndb_redis: redisc_free_reply only frees redisReply structure.

- freeing whole redisc_reply_t structure causes a bug, so better remove only inner data.

7 years agopkg/kamailio/fedora/16: tidied up kamailio.spec
Peter Dunkley [Thu, 5 Jul 2012 21:58:24 +0000 (22:58 +0100)]
pkg/kamailio/fedora/16: tidied up kamailio.spec

7 years agoMerge branch 'master' into websocket
Peter Dunkley [Thu, 5 Jul 2012 21:55:44 +0000 (22:55 +0100)]
Merge branch 'master' into websocket

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

7 years agoparser: remove old $Id$ docs header from subversion times, not usable anymore
Henning Westerholt [Thu, 5 Jul 2012 21:39:51 +0000 (23:39 +0200)]
parser: remove old $Id$ docs header from subversion times, not usable anymore

7 years agoparser: add missing copyright statement to files, this part was contributed
Henning Westerholt [Thu, 5 Jul 2012 21:35:27 +0000 (23:35 +0200)]
parser: add missing copyright statement to files, this part was contributed
in commit 3c736126b097137ec943b5931f867bc7e9d82e76 Author: Jamey Hicks,
jamey dot hicks at hp dot com, Date: Fri Dec 3 13:37:57 2004 +0000

7 years agoparser: add missing copyright statement to files, this part was contributed from
Henning Westerholt [Thu, 5 Jul 2012 21:30:15 +0000 (23:30 +0200)]
parser: add missing copyright statement to files, this part was contributed from
Vaclav Kubart, vaclav dot kubart at iptel dot org in commit
488624056c4651fd57fdffd1cbfdd2a07928fdab, Date: Wed Jun 21 13:33:01 2006 +0000

7 years agoparser: add missing copyright statement to files, this part was contributed
Henning Westerholt [Thu, 5 Jul 2012 21:26:45 +0000 (23:26 +0200)]
parser: add missing copyright statement to files, this part was contributed
in commit 3c736126b097137ec943b5931f867bc7e9d82e76
Author: Jamey Hicks, jamey dot hicks at hp dot com, Date: Fri Dec 3 13:37:57 2004 +0000

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 agoMerge branch 'master' into websocket
Peter Dunkley [Thu, 5 Jul 2012 20:15:22 +0000 (21:15 +0100)]
Merge branch 'master' into websocket

Conflicts:
Makefile
pkg/kamailio/centos/6/kamailio-build.appl
pkg/kamailio/centos/6/kamailio.appl
pkg/kamailio/fedora/16/kamailio-build.appl
pkg/kamailio/fedora/16/kamailio.appl
pkg/kamailio/fedora/16/kamailio.spec
pkg/kamailio/fedora/17/kamailio-build.appl
pkg/kamailio/fedora/17/kamailio.appl

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 agomodules/websocket: More tidy-up of example configuration file
Peter Dunkley [Thu, 5 Jul 2012 14:23:19 +0000 (15:23 +0100)]
modules/websocket: More tidy-up of example configuration file

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 agomodules/websocket: Tidied up example kamailio.cfg
Peter Dunkley [Thu, 5 Jul 2012 11:08:40 +0000 (12:08 +0100)]
modules/websocket: Tidied up example kamailio.cfg

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

7 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

7 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

7 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

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

7 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

7 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

7 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

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

7 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

7 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

7 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

7 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

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

7 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

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

7 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

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

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

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

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

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

7 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

7 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

7 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

7 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

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