Reply 489 Bad Event if we receive a NOTIFY in a call for anything else than a "refer" event package. This commit is also made in dev_refactor_cpp branch.

This commit is contained in:
Simon Morlat 2018-05-22 18:03:40 +02:00
parent 76c5c97cc6
commit ca911cc55b

View file

@ -265,8 +265,8 @@ void sal_op_call_process_notify(SalOp *op, const belle_sip_request_event_t *even
op->base.root->callbacks.notify_refer(op,status);
}
}else{
ms_error("Notify without sipfrag, trashing");
resp = sal_op_create_response_from_request(op,req,501);
ms_error("Notify without sipfrag or not for 'refer' event package, rejecting");
resp = sal_op_create_response_from_request(op,req,489);
belle_sip_server_transaction_send_response(server_transaction,resp);
}
}