Commit d6cc8a4f authored by Alexandre Savard's avatar Alexandre Savard

#8084: Init stun port with default valueas defined by RFC 3489

parent 816e2dc7
......@@ -71,7 +71,7 @@ SIPAccount::SIPAccount(const std::string& accountID)
, contactHeader_()
, contactUpdateEnabled_(false)
, stunServerName_()
, stunPort_(0)
, stunPort_(PJ_STUN_PORT)
, dtmfType_(OVERRTP_STR)
, tlsEnable_("false")
, tlsPort_(DEFAULT_SIP_TLS_PORT)
......
......@@ -1287,7 +1287,7 @@ pj_status_t SIPVoIPLink::stunServerResolve(SIPAccount *account)
if (status != PJ_SUCCESS) {
char errmsg[PJ_ERR_MSG_SIZE];
pj_strerror(status, errmsg, sizeof(errmsg));
DEBUG("Error creating STUN socket for %.*s: %s", (int) stunServer.slen, stunServer.ptr, errmsg);
ERROR("Error creating STUN socket for %.*s: %s", (int) stunServer.slen, stunServer.ptr, errmsg);
return status;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment