public String[] get_status(int id, String phone, int all)
    {
        String[] m = {};
        String tmp;

        try {
            m = _smsc_send_cmd("status", "phone=" + URLEncoder.encode(phone, SMSC_CHARSET) + "&id=" + id + "&all=" + all);

            if (SMSC_DEBUG) {
                if (m[1] != "" && Integer.parseInt(m[1]) >= 0) {
                    java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(Integer.parseInt(m[1]));
                    System.out.println("Статус SMS = " + m[0]);
                }
                else
                    System.out.println("Ошибка №" + Math.abs(Integer.parseInt(m[1])));
            }

            if (all == 1 && m.length > 9 && (m.length < 14 || m[14] != "HLR")) {
                tmp = _implode(m, ",");
                m = tmp.split(",", 9);
            }
        }
        catch (UnsupportedEncodingException e) {

        }

        return m;
    }