Changeset 2108


Ignore:
Timestamp:
Jul 7, 2008 7:57:16 PM (11 years ago)
Author:
bennylp
Message:

Stop putting PUBLISH in Allow header since that's probably is not semantically correct (thanks Ruud Klaver for the suggestion)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/publishc.c

    r2095 r2108  
    9999PJ_DEF(pj_status_t) pjsip_publishc_init_module(pjsip_endpoint *endpt) 
    100100{ 
     101    /* Note: 
     102        Commented out the capability registration below, since it's 
     103        wrong to include PUBLISH in Allow header of INVITE requests/ 
     104        responses. 
     105 
     106        13.2.1 Creating the Initial INVITE 
     107          An Allow header field (Section 20.5) SHOULD be present in the  
     108          INVITE. It indicates what methods can be invoked within a dialog 
     109 
     110        20.5 Allow 
     111          The Allow header field lists the set of methods supported by the 
     112          UA generating the message. 
     113 
     114        While the semantic of Allow header in non-dialog requests is unclear, 
     115        it's probably best not to include PUBLISH in Allow header for now 
     116        until we can find out how to customize the inclusion of methods in 
     117        Allow header for in-dialog vs out-dialog requests. 
     118 
    101119    return pjsip_endpt_add_capability( endpt, NULL, PJSIP_H_ALLOW, NULL, 
    102120                                       1, &pjsip_publish_method.name); 
     121     */ 
     122    return PJ_SUCCESS; 
    103123} 
    104124 
Note: See TracChangeset for help on using the changeset viewer.