On Tue, Aug 12, 2008 at 3:17 PM, Pedro Gon?alves <pedro.pandre at gmail.com>wrote: > Hi! > > Great news! > > With the help from an expert friend, we achieved, a few minutes before > your mail, *exactly* the same conclusion you told! > There was, in fact, a zone in our code where this was being made: > pjsip_contact_hdr *contact_hdr; > contact_hdr = > (pjsip_contact_hdr*)pjsip_msg_find_hdr(rdata->msg_info.msg, > PJSIP_H_CONTACT, NULL); > if (contact_hdr != NULL) { > dlg->remote.contact->uri = contact_hdr->uri; > } > > We replaced > dlg->remote.contact->uri = contact_hdr->uri; > with > dlg->remote.contact->uri = (pjsip_uri*) pjsip_uri_clone(dlg->pool, > contact_hdr->uri); > > This way, dlg is kept in its own pool, thus removing this thread's problem! > > Best regards and once again, thanks for all your help > That's great. Now if only I can get back the hours that's wasted to check this problem... -benny -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080812/84b52dc2/attachment-0001.html