54 Commits

Author SHA1 Message Date
Thomas Ries
60f8c0c6b8 - Expiration timeout is now taken from the REGISTER response 2005-10-09 10:25:12 +00:00
Thomas Ries
fb744b6ba4 - handle multiple Contact headers (e.g. in REGISTER response) 2005-10-03 18:12:33 +00:00
Thomas Ries
fb0d7d14ad - [1278537] Read proxy_auth_pwfile after config file is read
- [1278591] Proxy-Authenticate header not included in response
- process empty Contact header (means "query registrations")
  (only supported for registrations at a remote server)
2005-10-01 21:14:48 +00:00
Thomas Ries
2757a6bad6 - feature: auto-save registration table during operation 2005-04-16 09:30:55 +00:00
Thomas Ries
a5e12e1da2 - fix: changing public IP address 2005-04-03 20:55:30 +00:00
Thomas Ries
0984731872 - working on running siproxd in front of a routing device
and NOT on the firewall itself.
2005-03-01 21:36:48 +00:00
Thomas Ries
9c40c4454d - more work an new libosip API 2005-02-19 09:36:22 +00:00
Thomas Ries
57d275cddb - made compile with libosip2-2.2.0 (change of libosip2 API) 2005-02-13 12:02:28 +00:00
Thomas Ries
0f246be8b4 - copyright update to 2005 2005-01-08 10:05:13 +00:00
Thomas Ries
9a11b03a00 - removed the "sip compatibility" stuff. It seems to have been
a intermediate version of libosip with a "funny" API. New
  versions have no API changes on existing functions.
2004-11-03 21:23:34 +00:00
Thomas Ries
dd3c548fa0 - Default Expires timeout is now configurable. 2004-10-24 08:38:02 +00:00
Thomas Ries
a53744ce81 - comp_osip.c: libosip2-2.0.9 compatibility (There SEEM
to happen some API changes forward and backward:
  osip_message_to_str, osip_body_to_str,
  osip_message_set_body, osip_message_parse)
- included startup script (by Guido Trentalancia)
- siproxd.spec: create PID and registrations directories
  and install startup script
2004-10-09 17:21:37 +00:00
Thomas Ries
6e19514e23 - don't crash on missing Contact header during registration 2004-08-19 18:20:06 +00:00
Thomas Ries
01249fad92 - 2 fixes for using a port number != 5060 (by Miguel Angel) 2004-06-21 18:09:36 +00:00
Thomas Ries
a0d6e3967b - 2 fixes for using a port number != 5060 (by Miguel Angel) 2004-06-18 16:44:10 +00:00
Thomas Ries
5b310dd9db - small enhancements in error checking 2004-06-13 20:48:57 +00:00
Thomas Ries
200f6ea926 - use SIGUSR2 for dmalloc debugging (SIGUSR1 is occupied
with old libc5 & threads)
- reworked calling parameters for passing SIP data
2004-06-13 12:46:33 +00:00
Thomas Ries
4a48f57bac *** empty log message *** 2004-06-12 09:42:45 +00:00
Thomas Ries
d9aec2834b - simplified SIP RX & TX routines 2004-04-25 22:50:00 +00:00
Thomas Ries
7bb291a84b - release 0.5.5 cleanup
- use CVS $Id$ identification in each file
2004-04-11 10:40:00 +00:00
Thomas Ries
e3ed50d8db - Again '*' Contact header in unREGISTER
- new: tools/extract_sip.pl
2004-03-30 19:45:01 +00:00
Thomas Ries
ff23e0862d - deal with wildcard Contact header for unREGISTER 2004-03-22 18:44:34 +00:00
Thomas Ries
2f661ce669 - Proxy Authorization: enclose strings with quotes
and fixed an error that did not let REGISTER
  requests pass through to a 3rd party registrar.
2004-02-21 16:09:42 +00:00
Thomas Ries
e75d1c8f79 - Removed superfluous backslashes for line continuation 2004-02-14 10:07:31 +00:00
Thomas Ries
af152d2bf4 - Added handling of Max-Forwards header
- a detected via loop results in an 482 Loop detected
2004-02-01 16:55:37 +00:00
Thomas Ries
2315f495d4 - Allow 2 of my vias in header to let 2 UA's sitting
behind the same siproxd to have conversation together
  UA1 -->--\       /-->--\
            siproxd       Registrar
  UA2 --<--/       \--<--/
- Redone code for evaluation if a received packet
  if coming from inbound or outbound interface
- RTP stream are now identified by call_id AND
  USERNAME of the contact header. This provides
  support for RTP proxying between 2 UAs sitting on the
  inbound network. -> Calls between local UAs going via
  siproxd should now work.
  UA1 -->--\
            siproxd
  UA2 --<--/
- Rewriting of SUBSCRIBE should now work.
- Removed obsolete prototypes from rtpproxy.h
- If the RTP stream in one direction is found to be
  stopped (sendto()) also stop the opposite direction
2004-02-01 01:44:42 +00:00
Thomas Ries
ba2b99a635 - new doc/RFC3261_compliance.txt and comments in the
code that refer to the RFC.
2004-01-29 20:11:12 +00:00
Thomas Ries
115b6b9ee0 - ./configure option: --enable-static to build
a completely statically linked executable
- REGISTER takes honors the expires parameter
  of the contact header
- Contact header of REGISTER response must be
  rewritten back to the local (true) URL
2004-01-23 00:02:18 +00:00
Thomas Ries
9526f46589 - persistent registrations: malloc - space must include terminating \0 2003-12-20 19:57:58 +00:00
Thomas Ries
02ce749229 - full duplex RTP proxy (many thanks to Chris Ross for
his work on this). Up to now, only the RTP *Relay*
  has been tested (works with KPhone, BudgeTone)
- fix: SIP phones that allocate a random port for
  incomming SIP traffic should now work (like BudgeTone)
- fix: some SIP phones do change the RTP port number
  during a session (like KPhone during HOLD/unHOLD)
2003-12-17 21:22:50 +00:00
Thomas Ries
c88a45dd20 - use even port numbers for RTP traffic
- some minor fixes
2003-12-15 17:31:59 +00:00
Thomas Ries
acbdb707ec - some changes & enhancements inspired by Cris Ross:
* 183 Trying *may* contain SDP data
  * compare_url: now does compare the scheme,
    if a host is not resolveable hostnames will be
    compares as strings
2003-12-05 18:16:28 +00:00
Thomas Ries
0170015955 - have registrations persistent across restarts of
the daemon ('registration_file' config option)
2003-12-04 21:18:19 +00:00
Thomas Ries
00dfe93a0d - Introduced the use of gethostbyname_r() if available. As siproxd
uses threads it probably is a very good idea (some funny things
  seen with Linux 2.4.18 kernel & RTP proxy - gethostbyname()
  did return a NULL result but has h_errno set to 0 "every fine, thanks")
  Future will show it this helps.
- Had overlooked one inet_aton in register.c - replaced to utils_inet_aton
- Fixed a compiler warning in log.c for Solaris. Siproxd now at least
  builds on Solaris (tested on: SunOS 5.9 sun4u sparc SUNW,Ultra-60)
2003-11-22 21:54:21 +00:00
Thomas Ries
e67b823457 - Integrated a patch from Chris Ross:
* have siproxd compile on Solaris and BSD/OS (more to come)
  * ./configure option --with-libosip-prefix
  * properly handle getopt_long()/getopt()
- First attempt of iptables support. Routines to add/remove
  DNAT entries must still be done.
2003-11-19 19:36:30 +00:00
Thomas Ries
f50abc56ad - Local registration was simply broken. Fixed. 2003-10-12 10:12:55 +00:00
Thomas Ries
2c27f04ee9 - outbound proxy usage: properly maintain the internal registration
table
2003-10-05 01:10:45 +00:00
Thomas Ries
c2d9091dd0 - Siproxd now also works as outbound proxy 'only',
means that local UAs may register themselfes to a
  3rd party registrar and use siproxd only as oubound
  proxy for masquerading purpose.
- fixed some errors with callid handling (NULL pointers)
2003-10-04 15:39:39 +00:00
Thomas Ries
b6b97c0c46 rel 3.3.4 2003-08-05 17:33:01 +00:00
Thomas Ries
c5fc06836a - should now be able to deal with an outbound interface
that is "temporary" DOWN (dial up internet access)
  if outbounf IF is down, send back a response to
  inbound UAs "408 Request Timeout".
- always log to syslog, also when running in foreground
- changed some WARNINGS into DEBUG statements
- re-arranged some code
- rtpproxy: prepared for proper thread termination on exit
- introduced short term caching for get_ip_by_ifname
- fixed in check for socket() return status
2003-04-01 20:35:59 +00:00
Thomas Ries
731b43e13d libosip2 support 2003-03-29 10:05:29 +00:00
Thomas Ries
d829f79971 - more intensive testst for NULL pointers
- added knowledge base for SIP URI rewriting (UA dependent)
2003-03-28 22:51:23 +00:00
Thomas Ries
cdd05e2706 - replaced get_ip_by_ifname by a simpler routine
(needs to be *BSD tested yet!)
- removed old hostname based config of in/outbound interfaces
- experimental feature: additional masquerading of UA registrered
  host parts of their SIP URL
2003-03-09 20:49:50 +00:00
Thomas Ries
5bbdef20f0 - Bugfix: MSN Messenger issue - compare_url
- some more detailed debug output
2003-01-21 23:18:31 +00:00
Thomas Ries
051c9dab99 Release 0.2.5 2002-12-06 00:13:51 +00:00
Thomas Ries
2d25da2fda BSD compatibility 2002-11-23 13:33:28 +00:00
Thomas Ries
6bb397118a cosmetics and some better error handling w/ strings and data structures
(NULL ptrs)
2002-11-08 20:48:16 +00:00
Thomas Ries
0bc24c3b73 release 0.2.2 2002-10-12 16:40:26 +00:00
Thomas Ries
d9173e19b6 Release 0.2.1 2002-09-27 23:26:44 +00:00
Thomas Ries
b31f9c7b86 Release 0.2.0 2002-09-17 16:54:03 +00:00