Change to answer SERVICE_UNAVAILABLE for invalid URIs.
This commit is contained in:
parent
f6bf22bd15
commit
bfbf646e24
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user