From ca911cc55b3a02c86d6c4f4e80f8bb97b0f88964 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 22 May 2018 18:03:40 +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 dev_refactor_cpp branch. --- coreapi/bellesip_sal/sal_op_call_transfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/bellesip_sal/sal_op_call_transfer.c b/coreapi/bellesip_sal/sal_op_call_transfer.c index 8fe460314..40ff71daf 100644 --- a/coreapi/bellesip_sal/sal_op_call_transfer.c +++ b/coreapi/bellesip_sal/sal_op_call_transfer.c @@ -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); } }