rem: if (parsed_uri.port.s){ port=str2s(parsed_uri.port.s, parsed_uri.port.len, &err); if (err){ LOG(L_ERR, "ERROR: t_relay: bad port in uri: <%.*s>\n", parsed_uri.port.len, parsed_uri.port.s); return 0; }  } else port=0;  out_proto=get_proto(proto,&parsed_uri); if (out_proto==PROTO_NONE) { LOG(L_ERR, "ERROR: uri2proxy: transport can't be determined " "for URI <%.*s>\n", uri->len, uri->s );
add: p = mk_proxy(&parsed_uri.host, parsed_uri.port_no, get_proto(proto, &parsed_uri)); if (p == 0) { LOG(L_ERR, "ERROR: uri2proxy: bad host name in URI <%.*s>\n", uri->len, ZSW(uri->s));
context: inline static struct proxy_l *uri2proxy( str *uri, int proto ){	struct sip_uri parsed_uri;	unsigned int  port; 	struct proxy_l *p;	int err;	enum sip_protos out_proto;	if (parse_uri(uri->s, uri->len, &parsed_uri)<0) {		LOG(L_ERR, "ERROR: t_relay: bad_uri: %.*s\n",			uri->len, uri->s );		return 0;	}	if (parsed_uri.port.s){ 		port=str2s(parsed_uri.port.s, parsed_uri.port.len, &err);		if (err){			LOG(L_ERR, "ERROR: t_relay: bad port in uri: <%.*s>\n",				parsed_uri.port.len, parsed_uri.port.s);			return 0;		}	/* fixed use of SRV resolver	} else port=SIP_PORT; */	} else port=0;	out_proto=get_proto(proto,&parsed_uri);	if (out_proto==PROTO_NONE) {		LOG(L_ERR, "ERROR: uri2proxy: transport can't be determined "			"for URI <%.*s>\n", uri->len, uri->s );		return 0;	}	p=mk_proxy(&(parsed_uri.host), port, out_proto);	if (p==0) {		LOG(L_ERR, "ERROR: t_relay: bad host name in URI <%.*s>\n",			uri->len, uri->s);		return 0;	}	return p;}