Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 14875 invoked from network); 2 Jan 2008 08:49:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2008 08:49:59 -0000 Received: (qmail 52283 invoked by uid 500); 2 Jan 2008 08:49:48 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 52186 invoked by uid 500); 2 Jan 2008 08:49:47 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 52177 invoked by uid 99); 2 Jan 2008 08:49:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 00:49:47 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.174] (HELO moutng.kundenserver.de) (212.227.126.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 08:49:24 +0000 Received: from [85.180.55.121] (e180055121.adsl.alicedsl.de [85.180.55.121]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1J9zHy3FG6-0004Oh; Wed, 02 Jan 2008 09:49:26 +0100 Message-ID: <477B507B.7080306@dubioso.net> Date: Wed, 02 Jan 2008 09:51:07 +0100 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 SeaMonkey/1.1.7 MIME-Version: 1.0 To: HttpComponents Project Subject: [HttpCore] SIP contrib status (was: We already provde limited support for SIP, don't we?) References: <1198333216.5921.15.camel@okhost> <476D21A0.90407@dubioso.net> <88f5d710712230103p2d4fdf0ar2da59d7172e73a1a@mail.gmail.com> <4777BB96.7060201@dubioso.net> In-Reply-To: <4777BB96.7060201@dubioso.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/j8uYitmrZ6iDyfHneRAM2lgPWEx7iyCGG+F/ ksMxqSqo+5A49nSOmnel9c939o2Xwe2VAfJ9XNzMs022xg+sPU wWssLux5RrTvBMDlaOKff7O7SAuB7vs X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I've added some more contrib code for SIP: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/sip/ Note that all this code is completely untested. All I can say is that it compiles and doesn't generate JavaDoc errors. With that in mind... It should be possible to send SIP messages with HttpCore. Just make sure to pass SipVersion.SIP_2_0 to the constructor of the HttpMessage, RequestLine or ResponseLine you create. I just fixed the constructor for BasicHttpEntityEnclosingRequest, which was still expecting HttpVersion instead of ProtocolVersion. If you encounter other instances of this problem, please report or fix them. It should be possible to receive SIP messages with HttpCore. Just pass BasicSipLineParser to the constructor when creating the HttpMessageParser in the create{Request|Response}Parser method of your connection implementation. Additional contributions like DefaultSip{Client|Server}Connection and DefaultNSip{Client|Server}Connection would be welcome. Eventually, we might have a DummySipClient and DummySipGateway that actually show how this stuff has to be used. Let me know how/if it works. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org