Module: sip-router Branch: carstenbock/ims Commit: 939192de653b86dd49169c50f05e0bc6d8c7eefa URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=939192de...
Author: Carsten Bock carsten@bock.info Committer: Carsten Bock carsten@bock.info Date: Thu Mar 24 10:50:51 2011 +0100
- add Call-ID instead of Pointer to internal structure in Publish
---
modules_k/pua_reginfo/usrloc_cb.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules_k/pua_reginfo/usrloc_cb.c b/modules_k/pua_reginfo/usrloc_cb.c index 5603fac..c2bd689 100644 --- a/modules_k/pua_reginfo/usrloc_cb.c +++ b/modules_k/pua_reginfo/usrloc_cb.c @@ -113,8 +113,7 @@ str* build_reginfo_full(urecord_t * record, str uri, ucontact_t* c, int type) { LM_ERR("while adding child\n"); goto error; } - buf_len = snprintf(buf, sizeof(buf), "%p", ptr); - xmlNewProp(contact_node, BAD_CAST "id", BAD_CAST buf); + xmlNewProp(contact_node, BAD_CAST "id", BAD_CAST ptr->callid.s); /* Check, if this is the modified contact: */ if (ptr == c) { if ((type & UL_CONTACT_INSERT) || (type & UL_CONTACT_UPDATE))