mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Switch from using pjsip_strerror to pj_strerror.
pjsip_strerror is only aware of PJSIP-specific error codes. pj_strerror() is aware of all PJProject error codes and OS-specific error codes. This specifically fixes an oft-seen error in transport configuration code where EADDRINUSE would result in "Unknown PJSIP error 120098" instead of a useful message. ........ Merged revisions 400749 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -184,7 +184,7 @@ static int transport_apply(const struct ast_sorcery *sorcery, void *obj)
|
||||
if (res != PJ_SUCCESS) {
|
||||
char msg[PJ_ERR_MSG_SIZE];
|
||||
|
||||
pjsip_strerror(res, msg, sizeof(msg));
|
||||
pj_strerror(res, msg, sizeof(msg));
|
||||
ast_log(LOG_ERROR, "Transport '%s' could not be started: %s\n", ast_sorcery_object_get_id(obj), msg);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user