diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-11-10 12:13:46 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-11-10 12:13:46 +0000 |
commit | b0b535bf4c71c8b9c54ca6186a2bcd3b5f790fb5 (patch) | |
tree | 656196469d1d60f2fd142ce900577763258c8818 /pjsip/include | |
parent | 324711515d7bbd4f5470c54e081bfc0091c8848a (diff) |
Fixed #1156: New option to ignore bad NOTIFY presence message body (thanks Johan Lantz for the suggestion)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3363 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 6fd371a4..73cce7f1 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -901,6 +901,24 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) /** + * Specify the status code value to respond to bad message body in NOTIFY + * request for presence. Scenarios that are considered bad include non- + * PIDF/XML and non-XPIDF/XML body, multipart message bodies without PIDF/XML + * nor XPIDF/XML part, and bad (parsing error) PIDF and X-PIDF bodies + * themselves. + * + * Default value is 488. Application may change this to 200 to ignore the + * unrecognised content (this is useful if the application wishes to handle + * the content itself). Only non-3xx final response code is allowed here. + * + * Default: 488 (Not Acceptable Here) + */ +#ifndef PJSIP_PRES_BAD_CONTENT_RESPONSE +# define PJSIP_PRES_BAD_CONTENT_RESPONSE 488 +#endif + + +/** * Add "timestamp" information in generated PIDF document for both server * subscription and presence publication. * |