Commit 159fd179 authored by jehan's avatar jehan
Browse files

fix cseq in case of PRACK

parent 149f8286
......@@ -442,7 +442,8 @@ void SalCallOp::processResponseCb (void *userCtx, const belle_sip_response_event
if (method == "INVITE") {
if ((code >= 200) && (code < 300)) {
op->handleBodyFromResponse(response);
auto ack = belle_sip_dialog_create_ack(op->mDialog, belle_sip_dialog_get_local_seq_number(op->mDialog));
belle_sip_header_cseq_t* invite_cseq=belle_sip_message_get_header_by_type(request,belle_sip_header_cseq_t);
auto ack = belle_sip_dialog_create_ack(op->mDialog, belle_sip_header_cseq_get_seq_number(invite_cseq));
if (!ack) {
lError() << "This call has been already terminated";
return;
......
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