From bfbf646e24390648f362002fb4f6e18e090be571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20S=C5=82omkowski?= Date: Mon, 9 Nov 2015 01:48:36 +0100 Subject: [PATCH] Change to answer SERVICE_UNAVAILABLE for invalid URIs. --- PjsuaCommunicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PjsuaCommunicator.cpp b/PjsuaCommunicator.cpp index b3e76db..ca50206 100644 --- a/PjsuaCommunicator.cpp +++ b/PjsuaCommunicator.cpp @@ -200,7 +200,7 @@ namespace sip { call->answer(param); } else { communicator.logger.warn("Refusing call from %s.", uri.c_str()); - param.statusCode = PJSIP_SC_DECLINE; + param.statusCode = PJSIP_SC_SERVICE_UNAVAILABLE; call->hangup(param); } }