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-ua/sip_regc.h

    r2394 r2855  
    167167 *                  be a SIP/SIPS URL. 
    168168 * @param ccnt      Number of contacts in the array. 
    169  * @param contact   Array of contacts. 
     169 * @param contact   Array of contacts, each contact item must be formatted 
     170 *                  as described in RFC 3261 Section 20.10: 
     171 *                  When the header field value contains a display  
     172 *                  name, the URI including all URI parameters is  
     173 *                  enclosed in "<" and ">".  If no "<" and ">" are  
     174 *                  present, all parameters after the URI are header 
     175 *                  parameters, not URI parameters.  The display name  
     176 *                  can be tokens, or a quoted string, if a larger  
     177 *                  character set is desired. 
    170178 * @param expires   Default expiration interval (in seconds) to be applied for 
    171179 *                  contact URL that doesn't have expiration settings. If the 
     
    304312/** 
    305313 * Update Contact details in the client registration structure. For each 
    306  * contact URI, if the uri is not found in existing contact, it will be 
    307  * added to the Contact list. If the URI matches existing contact, nothing 
     314 * contact, if the contact is not found in existing contact, it will be 
     315 * added to the Contact list. If it matches existing contact, nothing 
    308316 * will be added. This function will also mark existing contacts which 
    309317 * are not specified in the new contact list as to be removed, by adding 
     
    318326 * @param regc      The client registration structure. 
    319327 * @param ccnt      Number of contacts. 
    320  * @param contact   Array of contact URIs. 
     328 * @param contact   Array of contacts, each contact item must be formatted 
     329 *                  as described in RFC 3261 Section 20.10: 
     330 *                  When the header field value contains a display  
     331 *                  name, the URI including all URI parameters is  
     332 *                  enclosed in "<" and ">".  If no "<" and ">" are  
     333 *                  present, all parameters after the URI are header 
     334 *                  parameters, not URI parameters.  The display name  
     335 *                  can be tokens, or a quoted string, if a larger  
     336 *                  character set is desired. 
    321337 * @return          PJ_SUCCESS if sucessfull. 
    322338 */ 
Note: See TracChangeset for help on using the changeset viewer.