Changeset 2877 for pjproject/trunk


Ignore:
Timestamp:
Aug 13, 2009 4:17:51 PM (15 years ago)
Author:
bennylp
Message:

Better fix for ticket #938: Presence PIDF document may be rejected by presence servers that implement strict XML checking (thanks Johan Lantz for the fix)

File:
1 edited

Legend:

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

    r2876 r2877  
    8585        /* Add tuple id. */ 
    8686        if (status->info[i].id.slen == 0) { 
    87             pj_create_unique_string(pool, &id); 
    8887            /* xs:ID must start with letter */ 
     88            //pj_create_unique_string(pool, &id); 
     89            id.ptr = (char*)pj_pool_alloc(pool, PJ_GUID_STRING_LENGTH+2); 
     90            id.ptr += 2; 
     91            pj_generate_unique_string(&id); 
     92            id.ptr -= 2; 
    8993            id.ptr[0] = 'p'; 
     94            id.ptr[1] = 'j'; 
     95            id.slen += 2; 
    9096        } else { 
    9197            id = status->info[i].id; 
Note: See TracChangeset for help on using the changeset viewer.