Commit Graph

96 Commits

Author SHA1 Message Date
Thomas Ries
08efcac809 This commit was manufactured by cvs2svn to create tag 'rel_0_5_13'. 2006-07-17 21:16:44 +00:00
Thomas Ries
757f34b748 - a number of size_t fixes
- REGISTER response generated from siproxd must include
  a Contact header.

1. tell gcc that the logging functions use printf style
format strings. This gets gcc to tell us about a lot
of the problems.

2. size_t is not an int on AMD64, so don't treat it
like one. I've changed to use "%ld" format code and
cast to a long, which should work well enough.

3. some format strings didn't match the argument lists.
These fixes are pretty clear.

4. log_debug, log_error, log_warn, log_info could all
end up evaluating their varargs list multiple times if
the message was to be logged to multiple places. This
causes the second/third uses to access invalid memory
and potentially segfault. I fixed this by using
va_copy() to copy the varargs list for each use.
2006-05-20 11:48:53 +00:00
Thomas Ries
34fb9113ab - replaced some malloc() by osip_malloc(),
(hopefully) fixed a sporadic crash in sdp_message_parse()
- RTP timeouts on some PBX systems that include an video
  stream, but the called UA has no video capability.
2006-02-11 09:43:19 +00:00
Thomas Ries
fa9e811bb9 - rewrite complete incoming request URI 2006-02-03 22:12:48 +00:00
Thomas Ries
70c90f0292 - short-dial: use "302 Moved" to point to target 2006-01-01 20:31:55 +00:00
Thomas Ries
888f998c8d - Call logging: display FROM & TO for calls. 2005-12-28 19:01:59 +00:00
Thomas Ries
d5e865fc3b - Grandstream "unregister at startup" works now 2005-12-18 15:45:38 +00:00
Thomas Ries
2311cca685 - fix: no audio with some UAs that do not include a
Contact header in ACK messages (which is compliant).
2005-10-09 14:19:25 +00:00
Thomas Ries
60f8c0c6b8 - Expiration timeout is now taken from the REGISTER response 2005-10-09 10:25:12 +00:00
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