سلام آقای کوه فلاح
این کد شما در Elastix.org ه میشه بگشید User از کجا اومده یا کجا ست شده.
با تشکر
------------------------------------------------------------------------------------------------------------------------------
package org.ivr.faxing;
import java.io.IOException;
import gnu.hylafax.*;
import gnu.inet.ftp.FtpClientProtocol;
public class faxSending {
public static String Send (String number, String notifyEmail, String Killtime, String MaximumDials, String MaximumTries, String Retrytime, String documentPath ) throws IOException{
String result = "sent";
try {
Client c = new HylaFAXClient();
String host = "localhost";
String user = "IranArgham";
//Open the host.
c.open(host);
c.user(user);
c.mode(FtpClientProtocol.MODE_ZLIB);
c.type(FtpClientProtocol.TYPE_IMAGE);
Job job = c.createJob();
job.setFromUser("ivr"

;
job.setNotifyAddress(notifyEmail);
job.setKilltime(Killtime);
job.setMaximumDials(Integer.parseInt(MaximumDials));
job.setMaximumTries(Integer.parseInt(MaximumDials));
job.setRetrytime(Retrytime);
//The number to wish to fax
job.setDialstring(number);
//Path of pdf file, the root dir is your hylafax dir /var/spool/hyfalax
job.addDocument(documentPath);
//System.out.println("BIIIIB"

;
c.submit(job);
} catch (Exception e) {
e.printStackTrace();
result = "ER";
}
return(result);
}
}//End class[left