Ignore:
Timestamp:
Nov 10, 2010 12:13:46 PM (13 years ago)
Author:
bennylp
Message:

Fixed #1156: New option to ignore bad NOTIFY presence message body (thanks Johan Lantz for the suggestion)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r3361 r3363  
    902902 
    903903/** 
     904 * Specify the status code value to respond to bad message body in NOTIFY 
     905 * request for presence. Scenarios that are considered bad include non- 
     906 * PIDF/XML and non-XPIDF/XML body, multipart message bodies without PIDF/XML 
     907 * nor XPIDF/XML part, and bad (parsing error) PIDF and X-PIDF bodies 
     908 * themselves. 
     909 * 
     910 * Default value is 488. Application may change this to 200 to ignore the 
     911 * unrecognised content (this is useful if the application wishes to handle 
     912 * the content itself). Only non-3xx final response code is allowed here. 
     913 * 
     914 * Default: 488 (Not Acceptable Here) 
     915 */ 
     916#ifndef PJSIP_PRES_BAD_CONTENT_RESPONSE 
     917#   define PJSIP_PRES_BAD_CONTENT_RESPONSE      488 
     918#endif 
     919 
     920 
     921/** 
    904922 * Add "timestamp" information in generated PIDF document for both server 
    905923 * subscription and presence publication. 
Note: See TracChangeset for help on using the changeset viewer.