Skip to content
Snippets Groups Projects
Commit 73697dc2 authored by Olle Johansson's avatar Olle Johansson
Browse files

Simplify code for porturi, use TRUE/FALSE constructs when it's just TRUE or FALSE.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@221554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d043f52a
No related branches found
No related tags found
No related merge requests found
......@@ -12470,10 +12470,9 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
ast_log(LOG_NOTICE, "Not a valid SIP contact (missing sip:) trying to use anyway\n");
}
 
if (!ast_strlen_zero(pt))
peer->portinuri = 1;
else
peer->portinuri = 0;
/* If we have a port number in the given URI, make sure we do remember to not check for NAPTR/SRV records.
The domain part is actually a host. */
peer->portinuri = !ast_strlen_zero(pt) ? TRUE : FALSE;
 
/* handle the transport type specified in Contact header. */
if ((transport_type = get_transport_str2enum(transport))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment