Change to answer SERVICE_UNAVAILABLE for invalid URIs.

This commit is contained in:
Michał Słomkowski 2015-11-09 01:48:36 +01:00
parent f6bf22bd15
commit bfbf646e24

View File

@ -200,7 +200,7 @@ namespace sip {
call->answer(param); call->answer(param);
} else { } else {
communicator.logger.warn("Refusing call from %s.", uri.c_str()); communicator.logger.warn("Refusing call from %s.", uri.c_str());
param.statusCode = PJSIP_SC_DECLINE; param.statusCode = PJSIP_SC_SERVICE_UNAVAILABLE;
call->hangup(param); call->hangup(param);
} }
} }