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_dialog.h

    r2394 r2855  
    184184 * @param ua                The user agent module instance. 
    185185 * @param local_uri         Dialog local URI (i.e. From header). 
    186  * @param local_contact_uri Optional dialog local Contact URI.  
    187  *                          If this argument is NULL, the Contact will be 
    188  *                          taken from the local URI. 
     186 * @param local_contact     Optional dialog local Contact to be put as Contact 
     187 *                          header value, hence the format must follow 
     188 *                          RFC 3261 Section 20.10: 
     189 *                          When the header field value contains a display  
     190 *                          name, the URI including all URI parameters is  
     191 *                          enclosed in "<" and ">".  If no "<" and ">" are  
     192 *                          present, all parameters after the URI are header 
     193 *                          parameters, not URI parameters.  The display name  
     194 *                          can be tokens, or a quoted string, if a larger  
     195 *                          character set is desired. 
     196 *                          If this argument is NULL, the Contact will be taken 
     197 *                          from the local URI. 
    189198 * @param remote_uri        Dialog remote URI (i.e. To header). 
    190199 * @param target            Optional initial remote target. If this argument 
     
    197206PJ_DECL(pj_status_t) pjsip_dlg_create_uac( pjsip_user_agent *ua, 
    198207                                           const pj_str_t *local_uri, 
    199                                            const pj_str_t *local_contact_uri, 
     208                                           const pj_str_t *local_contact, 
    200209                                           const pj_str_t *remote_uri, 
    201210                                           const pj_str_t *target, 
     
    221230 * @param rdata             The incoming request that creates the dialog, 
    222231 *                          such as INVITE, SUBSCRIBE, or REFER. 
    223  * @param contact           Optional URI to be used as local Contact. If 
    224  *                          this argument is NULL, the local contact will be 
     232 * @param contact           Optional dialog local Contact to be put as Contact 
     233 *                          header value, hence the format must follow 
     234 *                          RFC 3261 Section 20.10: 
     235 *                          When the header field value contains a display  
     236 *                          name, the URI including all URI parameters is  
     237 *                          enclosed in "<" and ">".  If no "<" and ">" are  
     238 *                          present, all parameters after the URI are header 
     239 *                          parameters, not URI parameters.  The display name  
     240 *                          can be tokens, or a quoted string, if a larger  
     241 *                          character set is desired. 
     242 *                          If this argument is NULL, the local contact will be 
    225243 *                          initialized from the value of To header in the 
    226244 *                          request. 
Note: See TracChangeset for help on using the changeset viewer.