From 80c9d0c7eb4a6911fbf730b50cdc430bf87b686b Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 22 May 2018 18:05:20 +0200 Subject: [PATCH] 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 master branch. --- src/sal/call-op.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sal/call-op.cpp b/src/sal/call-op.cpp index 910031635..d92e4b9ec 100644 --- a/src/sal/call-op.cpp +++ b/src/sal/call-op.cpp @@ -1521,8 +1521,8 @@ void SalCallOp::processNotify(const belle_sip_request_event_t *event, belle_sip_ mRoot->mCallbacks.notify_refer(this,status); } }else{ - ms_error("Notify without sipfrag, trashing"); - resp = createResponseFromRequest(req,501); + ms_error("Notify without sipfrag or not for 'refer' event package, rejecting"); + resp = createResponseFromRequest(req, 489); belle_sip_server_transaction_send_response(server_transaction,resp); } }