summaryrefslogtreecommitdiff
path: root/res/res_pjsip.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-10-08 20:52:04 +0000
committerMark Michelson <mmichelson@digium.com>2013-10-08 20:52:04 +0000
commit2904a198d55ca64e2a77c77710a286630812dd37 (patch)
treeae493ddcab8f9f59034c009871af07220a5f1462 /res/res_pjsip.c
parentf87086b3743ba5a1639e251b53c0f5e5cce31534 (diff)
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
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r--res/res_pjsip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index d522ad581..4d9a19e2b 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -1437,7 +1437,7 @@ pjsip_dialog *ast_sip_create_dialog_uas(const struct ast_sip_endpoint *endpoint,
if (status != PJ_SUCCESS) {
char err[PJ_ERR_MSG_SIZE];
- pjsip_strerror(status, err, sizeof(err));
+ pj_strerror(status, err, sizeof(err));
ast_log(LOG_ERROR, "Could not create dialog with endpoint %s. %s\n",
ast_sorcery_object_get_id(endpoint), err);
return NULL;