Ignore:
Timestamp:
Aug 5, 2009 6:41:23 PM (15 years ago)
Author:
nanang
Message:

Ticket #930:

  • Updated semantic of contact param in functions pjsip_dlg_create_uac(), pjsip_dlg_create_uas(), pjsip_endpt_create_request() and also variable pjsua_acc.contact to be Contact header value (was Contact URI).
  • Updated docs related to above modifications.
  • Fixed pjsua_im_send() in generating contact header, it should use pjsua_acc.contact instead, if it is set.
File:
1 edited

Legend:

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

    r2394 r2855  
    244244 * @param from      URL to put in From header. 
    245245 * @param to        URL to put in To header. 
    246  * @param contact   URL to put in Contact header. 
     246 * @param contact   Contact to be put as Contact header value, hence 
     247 *                  the format must follow RFC 3261 Section 20.10: 
     248 *                  When the header field value contains a display  
     249 *                  name, the URI including all URI parameters is  
     250 *                  enclosed in "<" and ">".  If no "<" and ">" are  
     251 *                  present, all parameters after the URI are header 
     252 *                  parameters, not URI parameters.  The display name  
     253 *                  can be tokens, or a quoted string, if a larger  
     254 *                  character set is desired. 
    247255 * @param call_id   Optional Call-ID (put NULL to generate unique Call-ID). 
    248256 * @param cseq      Optional CSeq (put -1 to generate random CSeq). 
     
    281289 * @param method    SIP Method. 
    282290 * @param target    Target URI. 
    283  * @param from      URL to put in From header. 
    284  * @param to        URL to put in To header. 
    285  * @param contact   URL to put in Contact header. 
     291 * @param from      From header. 
     292 * @param to        To header. 
     293 * @param contact   Contact header. 
    286294 * @param call_id   Optional Call-ID (put NULL to generate unique Call-ID). 
    287295 * @param cseq      Optional CSeq (put -1 to generate random CSeq). 
Note: See TracChangeset for help on using the changeset viewer.