HylaFAX The world's most advanced open source fax server |
Hi all, After install Elastix and set Asterisk i can receive faxes normaly. My doubt is about bin/faxrcvd, it seems to not be used to process reception. Other script is set by default on etc/config.ttyIAX1 "bin/faxrcvd.php". This one call bin/faxrcvd-elastix.php that do other things such populate database and publish faxes on web. Ok, it's cool but now the FaxDispatch is read by queue. There i have some scripts to copy fax image to a temp folder and create one control file to so move this files to a cifs share pre mapped by the script. If I change 3 last lines of my etc/config.ttyIAX1 (my fax extention) and change faxrcvd.php to faxrcvd my script work but the elastix system fax is no more populated... How can i use faxrcvd.php and as well process the FaxDispatch? Bellow a copy of FaxDispatch case "$DEVICE" in ttyIAX1) NOTIFY_FAXMASTER="never" /sbin/mount.cifs //10.20.2.124/teste /mnt/smb/ -o suid,rw,user=bvfaxuser,password=XXXXXXXXX FILENAME="$(date +%Y%m%d%k%M%S%N)" FILEPATHFINAL=/mnt/smb FILEPATH=tmp /bin/cp $FILE "$FILEPATH/$FILENAME.anx" /bin/touch $FILEPATH/$FILENAME.txt echo "from: FaxServer;" >> $FILEPATH/$FILENAME.txt echo "to: mtc_vei@xxxxxxxxxxxxxxxx;" >> $FILEPATH/$FILENAME.txt echo "subject: Fax From: $SENDER" >> $FILEPATH/$FILENAME.txt echo "attach: $FILENAME.tif" >> $FILEPATH/$FILENAME.txt echo "receive date: Null" >> $FILEPATH/$FILENAME.txt echo "sent date: $(date +%d/%m/%Y) $(date +%k:%M:%S)" >> $FILEPATH/$FILENAME.txt /bin/mv $FILEPATH/$FILENAME.* $FILEPATHFINAL /sbin/umount.cifs /mnt/smb esac This script works well if faxrcvd was used for receive process Thank for everyone. O INTERNET EXPLORER 8 DÁ DICAS DE SEGURANÇA PARA VOCÊ SAIBA MAIS! |