[SIPForum-discussion] Pls guide me
hemanth kumar
cyhk007 at yahoo.com
Mon Nov 20 13:17:49 UTC 2006
Hi,
SIP message is a string and a string would end with '\0'. Read section 25 in RFC 3261 to understand ABNF grammar, which gives a clear idea on how the message should be parsed.
Simplest way: Each line in SIP message would end with '\r\n' (except for the content-length header) which could be used as delimiter.
Standard way: Use parsers and lexical analysers like bison and flex
Hope this helps
Hemanth
Taduru Hariprasad <hariprasad.taduru at gmail.com> wrote:
Hi All,
This is Hariprasad.
I am writing a program to decode a sip messge.
I have a question that,
in the sip message '\0' or NULL characters will be there?
Because i am decoding the message based on assuming that there wont be
such NULL characters.
Please guide me in this..
Thanks
Hari
_______________________________________________
discussion mailing list
discussion at sipforum.org
http://sipforum.org/mailman/listinfo/discussion
*********************************************************************
Chenji Hemanth Kumar
Wipro Technologies
Ph: 23404007
*********************************************************************
Send instant messages to your online friends http://uk.messenger.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20061120/e5a39bfb/attachment-0003.html>
More information about the discussion
mailing list