rem: int_str val;
context: int load_gws(struct sip_msg* _m, char* _s1, char* _s2){    db_res_t* res;    db_row_t *row, *r;    int_str val;	        str ruri_user, from_uri, value;    char query[MAX_QUERY_SIZE];    int q_len, i, j;    union addr_port ap;    unsigned int addr;    /* Find Request-URI user */    if (parse_sip_msg_uri(_m) < 0) {	    LOG(L_ERR, "load_gws(): Error while parsing R-URI\n");	    return -1;    }    ruri_user = _m->parsed_uri.user;    /* Look for From URI */    if ((!_m->from) && (parse_headers(_m, HDR_FROM_F, 0) == -1)) {	    LOG(L_ERR, "load_gws(): Error while parsing message\n");	    return -1;    }    if (!_m->from) {	    LOG(L_ERR, "load_gws(): FROM header field not found\n");	    return -1;    }    if ((!(_m->from)->parsed) && (parse_from_header(_m) < 0)) {	    LOG(L_ERR, "load_gws(): Error while parsing From body\n");	    return -1;    }    from_uri = get_from(_m)->uri;        q_len = snprintf(query, MAX_QUERY_SIZE, "SELECT %.*s.%.*s, %.*s.%.*s FROM %.*s, %.*s WHERE '%.*s' LIKE %.*s.%.*s AND '%.*s' LIKE CONCAT(%.*s.%.*s, '%%') AND %.*s.%.*s = %.*s.%.*s ORDER BY CHAR_LENGTH(%.*s.%.*s), %.*s.%.*s DESC, RAND()",		     gw_table.len, gw_table.s, ip_addr_col.len, ip_addr_col.s,		     gw_table.len, gw_table.s, port_col.len, port_col.s,		     gw_table.len, gw_table.s, lcr_table.len, lcr_table.s,		     from_uri.len, from_uri.s,		     lcr_table.len, lcr_table.s, from_uri_col.len, from_uri_col.s,		     ruri_user.len, ruri_user.s,		     lcr_table.len, lcr_table.s, prefix_col.len, prefix_col.s,		     lcr_table.len, lcr_table.s, grp_id_col.len,  grp_id_col.s,		     gw_table.len, gw_table.s, grp_id_col.len, grp_id_col.s,		     lcr_table.len, lcr_table.s, prefix_col.len, prefix_col.s,		     lcr_table.len, lcr_table.s, priority_col.len, priority_col.s);    if (q_len >= MAX_QUERY_SIZE) {	LOG(L_ERR, "load_gws(): Too long database query\n");	return -1;    }    if (lcr_dbf.raw_query(db_handle, query, &res) < 0) {	LOG(L_ERR, "load_gws(): Failed to query accept data\n");	return -1;    }    for (i = 0; i < RES_ROW_N(res); i++) {	row = RES_ROWS(res) + i;	if (VAL_NULL(ROW_VALUES(row)) == 1) {		LOG(L_ERR, "load_gws(): Gateway IP address is NULL\n");		goto skip;	}      	addr = (unsigned int)VAL_INT(ROW_VALUES(row));	for (j = i + 1; j < RES_ROW_N(res); j++) {		r = RES_ROWS(res) + j;		if (addr == (unsigned int)VAL_INT(ROW_VALUES(r))) goto skip;	}	ap.addr = addr;	if (VAL_NULL(ROW_VALUES(row) + 1) == 1) {		ap.port[2] = 0;	} else {		ap.port[2] = (int)VAL_INT(ROW_VALUES(row) + 1);	}	value.s = &(ap.ap[0]);	value.len = 6;	val.s = &value;	add_avp(gw_ap_avp_name_str|AVP_VAL_STR, addr_port_name, val);	DBG("load_gws(): DEBUG: Added gw_addr_port_avp <%x, %d>\n",	    *((unsigned int *)(val.s->s)),	    *((unsigned short *)(val.s->s + 4)));    skip:	continue;    }    lcr_dbf.free_result(db_handle, res);	        return 1;}