sip_msg_to_msgbuf
new_msg->sip_msg_buf = sip_msg_to_msgbuf((sip_msg_t)new_msg, NULL);
msgstr = sip_msg_to_msgbuf(msg, error);
msg->sip_msg_buf = sip_msg_to_msgbuf((sip_msg_t)msg, &ret);
extern char *sip_msg_to_msgbuf(_sip_msg_t *msg, int *error);