73 Commits

Author SHA1 Message Date
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
f54a2553c2 - config file: don't complain on line s with only whitespaces
- fix: Via branch calculation
- security.c: increased max acceptable line length
- security.c: prevent libosip2 to die with "out of memory"
  on some malformed headers
2004-04-05 19:06:43 +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
e75d1c8f79 - Removed superfluous backslashes for line continuation 2004-02-14 10:07:31 +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
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
a32207d5bc - better branch parameter calculation (via header),
now honors RFC3261 for stateless proxies (section 16.11)
2004-01-27 20:00:42 +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
0dc5535307 - cosmetic changes (placing WARNS to proper if-then-else part,
debug output niceification)
2003-12-17 11:01:18 +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
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
5735a8161e - rtpproxy_masq: fixed an issue in port allocation
which lead to syslog entries from IPCHAINS complaining
  about 'already used connection'
2003-10-08 20:15:00 +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
d3c28ae5bc release 0.3.2 2003-04-05 14:17:40 +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
d7029ce354 - released 0.3.1
- fix in configure.in for statically linking to libosip
- fix in rewriting SIP messages, figure out proper
   destination if *not* rewriting the SIP URI
- another NULL pointer related crash (no UA header present)
2003-03-29 17:14:56 +00:00
Thomas Ries
731b43e13d libosip2 support 2003-03-29 10:05:29 +00:00
Thomas Ries
e7eef98133 fixes 2003-03-28 23:06:14 +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