summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_parser.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-10-18 17:16:34 +0000
committerBenny Prijono <bennylp@teluu.com>2006-10-18 17:16:34 +0000
commit487c0862f3e84a42d6fd0e73561c12e0c0db3c9f (patch)
tree36517e0f94e24c32840afe55082bd57e9619a6d7 /pjsip/include/pjsip/sip_parser.h
parent44a124d9f6fcf4ecef9574aa66bf26b4f5018f57 (diff)
Some changes to REFER handling in PJSUA-LIB:
- added callback to report call transfer progress - changed the call transfer request callback name in pjsua - added "--norefersub" option in pjsua. - fixed bug when call transfer is done more than once in the same dialog (dialog usage can not be added) Also removed 7xx status from the SIP status codes. And added pjsip_parse_status_line() to parse sipfrag. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@780 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_parser.h')
-rw-r--r--pjsip/include/pjsip/sip_parser.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/pjsip/include/pjsip/sip_parser.h b/pjsip/include/pjsip/sip_parser.h
index d0eb838e..72c103a7 100644
--- a/pjsip/include/pjsip/sip_parser.h
+++ b/pjsip/include/pjsip/sip_parser.h
@@ -24,7 +24,7 @@
* @brief SIP Message Parser
*/
-#include <pjsip/sip_types.h>
+#include <pjsip/sip_msg.h>
#include <pjlib-util/scanner.h>
#include <pj/list.h>
@@ -191,6 +191,19 @@ PJ_DECL(pjsip_uri*) pjsip_parse_uri( pj_pool_t *pool,
unsigned options);
/**
+ * Parse SIP status line.
+ *
+ * @param buf Text buffer to parse.
+ * @param size The size of the buffer.
+ * @param status_line Structure to receive the parsed elements.
+ *
+ * @return PJ_SUCCESS if a status line is parsed successfully.
+ */
+PJ_DECL(pj_status_t) pjsip_parse_status_line(char *buf, pj_size_t size,
+ pjsip_status_line *status_line);
+
+
+/**
* Parse a packet buffer and build a full SIP message from the packet. This
* function parses all parts of the message, including request/status line,
* all headers, and the message body. The message body however is only