diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-08-13 16:05:55 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-08-13 16:05:55 +0000 |
commit | 77c23cd3bcfa1110c6ce153fc6815b8eb8b450de (patch) | |
tree | cf1f9e9c10815ed2c5c83f713927db192ce49a8b /pjsip/src | |
parent | f517e2eca587dbe57515a45c6a0c7399a1ccfba0 (diff) |
Fixed ticket #938: Presence PIDF document may be rejected by presence servers that implement strict XML checking (thanks Johan Lantz for the fix)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2876 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsip-simple/presence_body.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pjsip/src/pjsip-simple/presence_body.c b/pjsip/src/pjsip-simple/presence_body.c index 8754735a..01b4e853 100644 --- a/pjsip/src/pjsip-simple/presence_body.c +++ b/pjsip/src/pjsip-simple/presence_body.c @@ -85,6 +85,8 @@ PJ_DEF(pj_status_t) pjsip_pres_create_pidf( pj_pool_t *pool, /* Add tuple id. */ if (status->info[i].id.slen == 0) { pj_create_unique_string(pool, &id); + /* xs:ID must start with letter */ + id.ptr[0] = 'p'; } else { id = status->info[i].id; } |