pjsip_uri_cmp: uri1's vptr has invalid value exception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Benny Prijono wrote:
> On Tue, Aug 12, 2008 at 3:17 PM, Pedro Gon?alves 
> <pedro.pandre at gmail.com <mailto: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
I'm sorry...
But I guess there's nothing I can do about it now...
If it makes you feel better, I am also spending a lot of time (weeks) 
fixing things like the above mentioned problem that I didn't do :)

Best regards
Pedro Gon?alves



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux