Re: [OpenSIPStack] Sip Test Messages (Was: RE: SIPMessage & SDPLazyParser)
Brought to you by:
joegenbaclor
From: Thomas R. <tho...@it...> - 2008-02-19 11:45:34
|
Hi. I'm afraid that a few weeks might be too long for me/our project. It's funny though that you mention a descent ABNF parser as I've been looking into one myself (boost::spirit http://www.boost.org/libs/spirit/index.html) Is any code for this available somewhere already as I'd like to have a look if possible. Regards, -----Original Message----- From: Joegen E. Baclor [mailto:joe...@gm...] Sent: Dienstag, 19. Februar 2008 12:40 To: Thomas Raschbacher Cc: ope...@li... Subject: Re: Sip Test Messages (Was: RE: [OpenSIPStack] SIPMessage & SDPLazyParser) Hi Thomas, I am currently in the process of writing a new SIP Parser for OpenSIPStack that makes use of a recursive descent ABNF parser for SIP Messages. This would allow implementors to detect syntax error in SIP Requests and be able to tell exactly where the error occurred in the parsing process. If you could wait a couple of weeks, this new parser might be best suited for your needs. As of the moment, the current OpenSIPStack is a passive parser so you would need to manually check each header for validity. Joegen Thomas Raschbacher wrote: > Thanks for your fast reply. > Mime-Version: 1.0 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; charset=iso-8859-1 > > I just did some testing with (the 1.1.7 release of OSS) with test messages = > from > http://www.cs.columbia.edu/sip/sipit/testmsg.html > It all seems fine apart from test1.txt which the sip parser reports as not = > being a valid sip message. According to the page (I'm not sure myself as it= > is rather messed up ;)) this is a valid SIP message [although imho if some= > one actually writes a client that sends a message like this that person sho= > uld be hang upside down for a week until he/she comes to his/her senses aga= > in ;))] > It seems to think the call id is not valid (SIPMessage.cxx line 8528) (I de= > bugged a bit and it seems that m_RawMessage is NULL -wherever that gets set= > .. I assume at parse time or something .. anyway what would be the best wa= > y to find out which part of that message it doesn't like? > > Regards, > > -----Original Message----- > From: ope...@li... [mailto:opensipstack= > -de...@li...] On Behalf Of Joegen E. Baclor > Sent: Montag, 18. Februar 2008 16:43 > To: ope...@li... > Subject: Re: [OpenSIPStack] SIPMessage & SDPLazyParser > > Thomas Raschbacher wrote: > >> Hi. >> >> I'm currently working on a (commercial) project in which we will use Open= >> > SipStacks SIP and SDP Parser (maybe other parts later). > >> I'm using just the SIPMessage class to parse the SIP Messages themselves = >> > and SDPLazyParser to parse the SDP if there is one. > >> 1) Did I find the correct classes for my use or would other classes be be= >> > tter suited / recommended? (I need to be able to read and/or change every p= > art of both the sip headers and the sdp) > > > Those are the two classes you need, yes. > > > >> 2) Is there functionality (that is not linked with the transport) that wo= >> > uld allow me to automagically generate say a TRYING,RINGING, OK from an inc= > oming request? > > > see SIPMessage::CreateResponse(); > > >> Regards >> >> Mit freundlichen Gr=FC=DFen >> Thomas Raschbacher >> ____________________________________________ >> itCampus Technology GmbH >> =D6sterreich * Deutschland * Italien >> Dresdner Stra=DFe 45 /DG >> 1200 Wien >> tho...@it... >> Tel: +43 (1) 890 22 82 - 58 >> Fax: +43 (1) 890 22 82 - 958 >> http://www.itctec.com >> UID: ATU 6339 0618 >> Firmenbuchnr: FN292598t, Handelsgericht Wien >> Gesch=E4ftsf=FChrer: Andreas G=FCnser, Andreas Lassmann >> Joint Venture von itCampus und MEC >> >> itCampus Gruppe >> Deutschland * Gro=DFbritannien * Italien * =D6sterreich * Schweiz * Slowa= >> > kei > >> http://www.itcampus.eu >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > |