Commit 9039d808 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue for encoding size

parent f7222ed1
......@@ -935,8 +935,9 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
}
uint8_t buffer[BUFFER_SIZE_2048];
int encoded_size = msg->Encode(buffer, BUFFER_SIZE_2048);
bstring b = blk2bstr(buffer, encoded_size);
int encoded_size = 0;
msg->encode2NewBuffer(buffer, encoded_size);
bstring b = blk2bstr(buffer, encoded_size);
sctp_s_38412.sctp_send_msg(gc->sctp_assoc_id, unc->sctp_stream_send, &b);
bdestroy_wrapper(&b);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment