- Make debug logging for each authentication (twice per call) optional
- Small update to doxygen comment git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9104 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
50ffcb069b
commit
ef88ed76fc
1 changed files with 5 additions and 3 deletions
|
@ -693,7 +693,7 @@ static struct sip_pvt {
|
|||
time_t ospstart; /*!< OSP Start time */
|
||||
unsigned int osptimelimit; /*!< OSP call duration limit */
|
||||
#endif
|
||||
struct sip_request initreq; /*!< Initial request */
|
||||
struct sip_request initreq; /*!< Initial request that opened the SIP dialog */
|
||||
|
||||
int maxtime; /*!< Max time for first response */
|
||||
int initid; /*!< Auto-congest ID if appropriate */
|
||||
|
@ -1910,11 +1910,13 @@ static int create_addr_from_peer(struct sip_pvt *r, struct sip_peer *peer)
|
|||
r->capability = peer->capability;
|
||||
r->prefs = peer->prefs;
|
||||
if (r->rtp) {
|
||||
ast_log(LOG_DEBUG, "Setting NAT on RTP to %d\n", (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Setting NAT on RTP to %d\n", (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
|
||||
ast_rtp_setnat(r->rtp, (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
|
||||
}
|
||||
if (r->vrtp) {
|
||||
ast_log(LOG_DEBUG, "Setting NAT on VRTP to %d\n", (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Setting NAT on VRTP to %d\n", (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
|
||||
ast_rtp_setnat(r->vrtp, (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
|
||||
}
|
||||
ast_string_field_set(r, peername, peer->username);
|
||||
|
|
Reference in a new issue