>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?