Browse Source

Change to answer SERVICE_UNAVAILABLE for invalid URIs.

Michał Słomkowski 8 years ago
parent
commit
bfbf646e24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PjsuaCommunicator.cpp

+ 1 - 1
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);
         }
     }