Segfault in "on_rx_notify" callback

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

 



>From pjsip/src/pjsip-simple/evsub.c:

  if (st_code==200 && sub->user.on_rx_notify && sub->call_cb) {
      (*sub->user.on_rx_notify)(sub, rdata, &st_code, &st_text,
                                &res_hdr, &body);

Then, in my callback it segfaults every time I try to handle &body or
rdata->msg_info.msg->body.

e.g.:
pjsip_clone_text_data( rdata->tp_info.pool, (**p_body).data, (**p_body).len)

pjsip_msg_body_clone( rdata->tp_info.pool, rdata->msg_info.msg->body)

Am I missing something?



[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