From abf7cc46a75eb630e41384935b30d0629d50824c Mon Sep 17 00:00:00 2001 From: Thomas Ries Date: Tue, 29 May 2007 16:41:50 +0000 Subject: [PATCH] - Deal with PRACK requests (RFC3262) --- ChangeLog | 1 + RELNOTES | 2 ++ src/proxy.c | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8231c26..c6e7ae1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 0.6.0 ===== + 29-May-2007: - Deal with PRACK requests (RFC3262) 25-May-2007: - Just discovered some patches originating from Debian project - included most of them as they make sense. (Hint: People, if you get fixes, please drop me a note diff --git a/RELNOTES b/RELNOTES index e373d83..8b3ea77 100644 --- a/RELNOTES +++ b/RELNOTES @@ -2,6 +2,7 @@ Release Notes for siproxd-0.6.0 =============================== Major changes since 0.5.13: + - Support for PRACK messages (RFC3262) - Includes RTCP support and a de-jitter feature - Fixes a bug that could cause termination of an ongoing connection after the RTP timeout period. @@ -11,6 +12,7 @@ Major changes since 0.5.13: General Overview: - SIP (RFC3261) Proxy for SIP based softphones hidden behind a masquerading firewall + - Support for PRACK messages (RFC3262) - works with "dial-up" conenctions (dynamic IP addresses) - Multiple local users/hosts can be masqueraded simultaneously - Access control (IP based) for incoming traffic diff --git a/src/proxy.c b/src/proxy.c index 631272f..fa07826 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -200,7 +200,7 @@ int proxy_request (sip_ticket_t *ticket) { /* Rewrite the body */ sts = proxy_rewrite_invitation_body(ticket, DIR_INCOMING); - } else if (MSG_IS_ACK(request)) { + } else if (MSG_IS_ACK(request) || MSG_IS_PRACK(request)) { /* Rewrite the body */ sts = proxy_rewrite_invitation_body(ticket, DIR_INCOMING); @@ -252,7 +252,7 @@ sts=sip_obscure_callid(ticket); /* if an INVITE, rewrite body */ if (MSG_IS_INVITE(request)) { sts = proxy_rewrite_invitation_body(ticket, DIR_OUTGOING); - } else if (MSG_IS_ACK(request)) { + } else if (MSG_IS_ACK(request) || MSG_IS_PRACK(request)) { sts = proxy_rewrite_invitation_body(ticket, DIR_OUTGOING); }