Ignore:
Timestamp:
Mar 2, 2006 9:18:58 PM (18 years ago)
Author:
bennylp
Message:

Added IM and composition indication, and tested

File:
1 edited

Legend:

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

    r230 r268  
    957957                       pjsip_hdr_shallow_clone(tdata->pool, sub->expires)); 
    958958 
     959    /* Add additional header, if any. */ 
     960    if (hdr_list) { 
     961        const pjsip_hdr *hdr = hdr_list->next; 
     962        while (hdr != hdr_list) { 
     963            pjsip_msg_add_hdr( tdata->msg, 
     964                               pjsip_hdr_clone(tdata->pool, hdr)); 
     965            hdr = hdr->next; 
     966        } 
     967    } 
    959968 
    960969    /* Send the response: */ 
     
    13251334    /* Add msg body, if any */ 
    13261335    if (body) { 
    1327         tdata->msg->body = pj_pool_zalloc(tdata->pool,  
    1328                                           sizeof(pjsip_msg_body)); 
    1329         status = pjsip_msg_body_clone(tdata->pool,  
    1330                                       tdata->msg->body,  
    1331                                       body); 
    1332         if (status != PJ_SUCCESS) { 
    1333             tdata->msg->body = NULL; 
     1336        tdata->msg->body = pjsip_msg_body_clone(tdata->pool, body); 
     1337        if (tdata->msg->body == NULL) { 
     1338 
     1339            PJ_LOG(4,(THIS_FILE, "Error: unable to clone msg body")); 
     1340 
    13341341            /* Ignore */ 
    13351342            return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.