Ignore:
Timestamp:
Oct 1, 2010 4:09:08 AM (14 years ago)
Author:
bennylp
Message:

Misc (re #1134): added Supported header in outgoing SUBSCRIBE request. Although RFC 3265 says it is only optional, some downstream RFC may bring this requirement to SHOULD strength - e.g. RFC 5373 (thanks Johan Lantz for the suggestion)

File:
1 edited

Legend:

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

    r3068 r3331  
    997997    pjsip_msg_add_hdr( tdata->msg, (pjsip_hdr*) 
    998998                       pjsip_hdr_shallow_clone(tdata->pool, sub->expires)); 
     999 
     1000    /* Add Supported header (it's optional in RFC 3265, but some event package 
     1001     * RFC may bring this requirement to SHOULD strength - e.g. RFC 5373) 
     1002     */ 
     1003    { 
     1004       const pjsip_hdr *hdr = pjsip_endpt_get_capability(sub->endpt, 
     1005                                                         PJSIP_H_SUPPORTED, 
     1006                                                         NULL); 
     1007       if (hdr) { 
     1008           pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*) 
     1009                             pjsip_hdr_shallow_clone(tdata->pool, hdr)); 
     1010       } 
     1011    } 
    9991012 
    10001013    /* Add Accept header: */ 
Note: See TracChangeset for help on using the changeset viewer.