Changeset 2935 for pjproject/trunk
- Timestamp:
- Oct 9, 2009 1:17:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/rpid.c
r2394 r2935 22 22 #include <pj/assert.h> 23 23 #include <pj/guid.h> 24 #include <pj/pool.h> 24 25 #include <pj/string.h> 25 26 … … 147 148 } else { 148 149 pj_str_t person_id; 149 pj_create_unique_string(pool, &person_id); 150 /* xs:ID must start with letter */ 151 //pj_create_unique_string(pool, &person_id); 152 person_id.ptr = (char*)pj_pool_alloc(pool, PJ_GUID_STRING_LENGTH+2); 153 person_id.ptr += 2; 154 pj_generate_unique_string(&person_id); 155 person_id.ptr -= 2; 156 person_id.ptr[0] = 'p'; 157 person_id.ptr[1] = 'j'; 158 person_id.slen += 2; 159 150 160 attr = pj_xml_attr_new(pool, &ID, &person_id); 151 161 }
Note: See TracChangeset
for help on using the changeset viewer.