Beispiel #1
0
        public static void delete_job(string jobid)
        {
            if (Settings.TransmitAgent == "hylafax")
            {
                hfax = new Hylafax();
                hfax.connect();
                hfax.job_select(jobid);
                hfax.job_kill();
                hfax.job_delete();
                hfax = null;
            }

            if (Settings.TransmitAgent == "efax")
            {
                gfax.efax.job_kill(jobid);
                gfax.efax.job_delete(jobid);
            }
        }
Beispiel #2
0
        public static void resubmit_job(string jobid, string number, string sendat, string dials)
        {
            // will have to query the job, get the file name
            // possibly retrieve the file and then re-submit the job

            if (Settings.TransmitAgent == "hylafax")
            {
                hfax = new Hylafax();
                hfax.connect();
                hfax.job_select(jobid);

                /*
                 * hfax.job_reset("P");
                 * hfax.job_suspend();
                 * hfax.job_param_set("SENDTIME", sendat);
                 * hfax.job_param_set("EXTERNAL", number);
                 * hfax.job_param_set("DIALSTRING", number);
                 * hfax.job_param_set("MAXDIALS", dials);
                 * hfax.job_submit();
                 * hfax = null;
                 */
            }
        }
Beispiel #3
0
        public static void modify_job(string jobid, string number, string sendat, string dials)
        {
            if (Settings.TransmitAgent == "hylafax")
            {
                hfax = new Hylafax();
                hfax.connect();
                hfax.job_select(jobid);
                hfax.job_suspend();
                hfax.job_param_set("SENDTIME", sendat);
                hfax.job_param_set("EXTERNAL", number);
                hfax.job_param_set("DIALSTRING", number);
                hfax.job_param_set("MAXDIALS", dials);
                hfax.job_submit();
                hfax = null;
            }

            /*
             * if (Settings.TransmitAgent == "efax") {
             *      gfax.efax.job_kill(jobid);
             *      gfax.efax.job_delete(jobid);
             * }
             */
        }