fline_parser.xml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="fline_parser" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. <revhistory>
  7. <revision>
  8. <revnumber>$Revision$</revnumber>
  9. <date>$Date$</date>
  10. </revision>
  11. </revhistory>
  12. </sectioninfo>
  13. <title>The First Line Parser</title>
  14. <para>
  15. Purpose of the parser is to parse the first line of a
  16. <acronym>SIP</acronym> message. The first line is represented by
  17. <structname>msg_start</structname> structure define in file
  18. <filename>parse_fline.h</filename> under <filename>parser</filename>
  19. subdirectory.
  20. </para>
  21. <para>
  22. The main function of the first line parser is
  23. <function>parse_first_line</function>, the function will fill in
  24. <structname>msg_start</structname> structure.
  25. </para>
  26. <para>
  27. Follow inline comments in the function if you want to add support for a
  28. new message type.
  29. </para>
  30. </section>