private String[] _smsc_send_cmd(String cmd, String arg){
        String[] m = {};
        String ret = ",";

        try {
            String url = (SMSC_HTTPS ? "https" : "http") + "://smsc.ru/sys/" + cmd +".php?login=" + URLEncoder.encode(SMSC_LOGIN, SMSC_CHARSET)
                + "&psw=" + URLEncoder.encode(SMSC_PASSWORD, SMSC_CHARSET)
                + "&fmt=1&charset=" + SMSC_CHARSET + "&" + arg;
           
            int i = 0;
            do {
                if (i > 0)
                    Thread.sleep(2000);

                if (i == 2)
                    url = url.replace("://smsc.ru/", "://www2.smsc.ru/");

                ret = _smsc_read_url(url);
            }
            while (ret == "" && ++i < 3);
        }
        catch (UnsupportedEncodingException e) {

        }
        catch (InterruptedException e) {

        }

        return ret.split(",");
    }