res_pjsip: Change log message from error to warning for valid use cases

If a SIP MESSAGE is triggered for an endpoint that is currently not registered
- and therefore has no valid contact associated - an error message was logged.
Since this is a valid request in a valid use cases this is now changed to a
warning, as discussed with Matt Fredrickson on the asterisk-dev mailing list.

Change-Id: I55eb62d2712818a58c7532119dec288bd98cf0c0
This commit is contained in:
Florian Floimair
2018-07-24 11:57:25 +02:00
parent 6dac6e0ab8
commit fd1b8c57e9
2 changed files with 2 additions and 2 deletions

View File

@@ -656,7 +656,7 @@ static int msg_send(void *data)
}
if (ast_sip_create_request("MESSAGE", NULL, endpoint, uri, NULL, &tdata)) {
ast_log(LOG_ERROR, "PJSIP MESSAGE - Could not create request\n");
ast_log(LOG_WARNING, "PJSIP MESSAGE - Could not create request\n");
return -1;
}