[Fwd: Re: Exceptions when using ICE functionalities]

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

 



On Fri, Aug 8, 2008 at 7:33 PM, Pedro Gon?alves <pedro.pandre at gmail.com>wrote:

> >
> > How can you print the tdata and check->tdata in
> > pj_stun_session_on_rx_pkt()? Where did you get the pointers from?
> I had some work tracing back the variables, but here is how I am
> gettting them:
>
>
Okay, I don't know about that (haven't read them, sorry).

But can you add these snippet just before the assert, and try again, and
send back the log?

    PJ_LOG(3,("", "on_stun_request_complete"));
    PJ_LOG(3,("", "  stun_sess=%p, status=%d"
                  "  tdata=%p, check->tdata=%p"
                  , stun_sess, status, tdata, check->tdata));

    if (tdata != check->tdata) {
        char dump[1024];

        PJ_LOG(3,("", "Gotcha!"));
        PJ_LOG(3,("", "  src_addr=%s",
                      pj_sockaddr_print(src_addr, dump, sizeof(dump),3)));
        PJ_LOG(3,("", "  tdata message: "));
        if (tdata && tdata->msg) {
            pj_stun_msg_dump(tdata->msg, dump, sizeof(dump), NULL);
            PJ_LOG(3,("", "%s", dump));
        }
        PJ_LOG(3,("", "  check->tdata message: "));
        if (check->tdata && check->tdata->msg) {
            pj_stun_msg_dump(check->tdata->msg, dump, sizeof(dump), NULL);
            PJ_LOG(3,("", "%s", dump));
        }
        PJ_LOG(3,("", "  response: "));
        if (response) {
            pj_stun_msg_dump(response, dump, sizeof(dump), NULL);
            PJ_LOG(3,("", "%s", dump));
        }
        PJ_LOG(3,("", "  Dude, you're gonna crash!"));
        pj_thread_sleep(1000);
    }

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080808/659498dd/attachment.html 


[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