Commit Graph

87 Commits

Author SHA1 Message Date
Thomas Ries
ab08d2febf - allocate only even RTP port numbers
- started with own name lookup routines that honor SRV and NAPTR records
2005-08-31 03:34:35 +00:00
Thomas Ries
e9178c2a89 - fix: ACK may contain SDP body, process it 2005-04-21 22:41:02 +00:00
Thomas Ries
8f211d48af feature: siproxd "in front of" a NAT router should work 2005-03-27 16:05:16 +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
571374928e - string termination issue in libosip2-2.2.0:
osip_message_to_str, osip_body_to_str
2005-02-13 12:49:15 +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
585fccdb38 *** empty log message *** 2005-01-24 19:12:40 +00:00
Thomas Ries
0f246be8b4 - copyright update to 2005 2005-01-08 10:05:13 +00:00
Thomas Ries
f5a2a736a3 - feature: Outbound proxies configurable per domain 2004-12-29 12:04:16 +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
5cb8bd57af *** empty log message *** 2004-10-31 17:13:10 +00:00
Thomas Ries
e4d4e14d26 - fix: A negative response to an INVITE shall stop
initiated RTP streams
2004-10-31 17:08:50 +00:00
Thomas Ries
1ede069877 - fix: various correction in Record-Route processing 2004-10-24 08:38:51 +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
58153e8f25 - Cross-provider calls (e.g. sipphone <-> FWD, with dial
prefixes) did not work properly
- more on Route Headers
2004-09-05 10:08:41 +00:00
Thomas Ries
3931143157 - preliminary (and reduced) support for Route Headers 2004-08-27 19:48:06 +00:00
Thomas Ries
5bc5221a19 - more DEBUG output 2004-08-26 17:32:30 +00:00
Thomas Ries
8e5abdc931 - patch from Dan Weber: Open the password file for SIP
accounts at startup, so we still have access after
  chroot()ing. PID filename can be given at command-line.
2004-07-06 17:23:50 +00:00
Thomas Ries
31f59d1870 - fix: in some configurations incoming requests could
be sent to a wrong port number.
2004-06-27 21:35:54 +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
6116f79ecf - "determine next hop" also takes Route header into account
(outgoing packets only, incoming can not have a proxy
   in between siproxd and the client anyway)
2004-06-10 23:55:24 +00:00
Thomas Ries
c61033c805 - Route header processing (RFC3261, 16.6, step 6) 2004-05-27 20:17:02 +00:00
Thomas Ries
054c60ac39 - use a present Route header to determine next-hop 2004-05-27 18:46:45 +00:00
Thomas Ries
4a52c28610 - proxy.c: some INFO texts modified 2004-05-15 17:13:40 +00:00
Thomas Ries
f760e98df5 - better recognition of redirected incoming requests
(linke INVITES from sipgate.de - SIP URI points to
   the real wanted target but To: header only points to
   the initially wanted target before the redirection)
2004-05-02 10:19:51 +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
7ebad7d793 - SDP body: do rewrite 'o=' (originator) address, too 2004-04-09 09:27:18 +00:00
Thomas Ries
b98a0f08f0 - proxy.c: stupid && / || logic error 2004-04-03 14:03:09 +00:00
Thomas Ries
3ddf4ee454 - fix: SDP 'c=' items in media part 2004-04-03 10:38:09 +00:00
Thomas Ries
2fba2bcb3b - SDP rewrite: properly handle 'c=' items in session
*and* media part of SDP data.
- migrated config.h.in by new version of autoconf (Fedora core1)
2004-03-27 10:20:22 +00:00
Thomas Ries
62b4f95e8d - deal with wildcard Contact header for unREGISTER
- enhanced security tests to survive the PROTOS test
2004-03-22 20:26:05 +00:00
Thomas Ries
b2ef7599c8 - added ./autogen.sh
- proxy_rewrite_invitation_body: check success of
  starting RTP relay before rewriting SDP body
- proxy_rewrite_invitation_body: don't fail on
  Contact header with no user part.
- security_check_sip: CSeq header must be present.
2004-03-21 11:15:23 +00:00
Thomas Ries
9225138b91 - Hack for Grandstream SIP phones and SUBSCRIBE response
now SELECTIVE for Grandstream phones (kphone did not seem
   to like 404 answers... How picky these little thingies are...)
2004-02-16 21:17:13 +00:00
Thomas Ries
abf4b77229 - Hack for Grandstream SIP phones and SUBSCRIBE response 2004-02-14 16:29:07 +00:00
Thomas Ries
e75d1c8f79 - Removed superfluous backslashes for line continuation 2004-02-14 10:07:31 +00:00
Thomas Ries
9df56bc3b8 - logging routines now use a MUTEX to be thread safe.
- fix: local UA to UA RTP proxying did not proplery handle HOLD/unHOLDing
  a call
2004-02-07 17:37:50 +00:00
Thomas Ries
c9d86d78d7 - Fix for local-UA to local-UA RTP proxying, symmetric
RTP was not working.
2004-02-07 16:54:09 +00:00
Thomas Ries
ed67096584 - minor cleanup
- removed some old linphone-bug-workaround hack
2004-02-06 00:40:45 +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
f4ce99e003 - If RTP proxy is disabled, don't rewrite incomming
SDP bodies (patch from Robert Högberg)
2004-01-30 21:58:51 +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
f521d4b78a - don't die on INVITE requests that include no Contac
header - which is legal. (patch by Robert Hoegberg)
2004-01-28 22:12:28 +00:00
Thomas Ries
230c3d3ffb - fix: doing strlen(bodybuff) after having free()d it
found by dmalloc memory poisoning
- fix: new branch id hash calculation was not working properly
  (dont check return status in osip_xxx_to_str() functions -
  the docu does not say anything about them (looks like 0 == success)
  but better check the returnet string pointer value -> NULL = failed)
  This resulted in a memory leak an imporper calculated MD5 hash.
2004-01-28 01:06:28 +00:00
Thomas Ries
17d7438b5c - SIP request: remove a Route-header pointing to myself.
This was an issue with Linphone 0.12.1. Thanks to
  Robert Hoegberg for a patch.
2004-01-27 23:38:29 +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
b910e74318 - possibility to log call establishment
- eliminated MOREDEBUG conditional
2003-12-21 14:36:45 +00:00