Changeset 1423


Ignore:
Timestamp:
Aug 24, 2007 8:28:52 AM (12 years ago)
Author:
bennylp
Message:

Ticket #365: ability to override generated ttuple ID in PIDF message body (thanks Babon Frederic)

Location:
pjproject/trunk/pjsip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r1417 r1423  
    17701770    pj_bool_t       publish_enabled; 
    17711771 
     1772    /** 
     1773     * Optional PIDF tuple ID for outgoing PUBLISH and NOTIFY. If this value 
     1774     * is not specified, a random string will be used. 
     1775     */ 
     1776    pj_str_t        pidf_tuple_id; 
     1777 
    17721778    /**  
    17731779     * Optional URI to be put as Contact for this account. It is recommended 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r1400 r1423  
    7676    pj_strdup_with_null(pool, &dst->reg_uri, &src->reg_uri); 
    7777    pj_strdup_with_null(pool, &dst->force_contact, &src->force_contact); 
     78    pj_strdup_with_null(pool, &dst->pidf_tuple_id, &src->pidf_tuple_id); 
    7879 
    7980    dst->proxy_cnt = src->proxy_cnt; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r1417 r1423  
    554554    pres_status.info_cnt = 1; 
    555555    pres_status.info[0].basic_open = pjsua_var.acc[acc_id].online_status; 
     556    pres_status.info[0].id = pjsua_var.acc[acc_id].cfg.pidf_tuple_id; 
    556557    //Both pjsua_var.local_uri and pjsua_var.contact_uri are enclosed in "<" and ">" 
    557558    //causing XML parsing to fail. 
     
    651652        pres_status.info_cnt = 1; 
    652653        pres_status.info[0].basic_open = acc->online_status; 
     654        pres_status.info[0].id = acc->cfg.pidf_tuple_id; 
    653655 
    654656        /* Be careful not to send PIDF with presence entity ID containing 
Note: See TracChangeset for help on using the changeset viewer.