<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HylaFax , Alfresco Integeration , with stamping  date &amp; time in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248014#M201144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Document Management integration with Fax&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Objective:- &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After&amp;nbsp; FAX is received by the FAX server, it needs to be stamped with date and copied it to the DM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once copied it to the DM, a notification is to be send to the user&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Software used:- Hylafax and Alfresco 4.0.d &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How to do :-&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done the Hylafax setup in a CentOS 6.2. The installation for Hylafax server was straight simple, except the entry for "faxgetty"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In previous release of CentOS we normally added the &lt;/SPAN&gt;&lt;STRONG&gt;faxgetty&lt;/STRONG&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;STRONG&gt; /etc/inittab&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In centOS 6.2 , we need to create a file in "/etc/init/" . I created a file known as "faxgetty.conf" over there &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cat /etc/init/faxgetty.conf &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;start on runlevel [2345]&lt;BR /&gt;stop on runlevel [S016]&lt;BR /&gt;respawn&lt;BR /&gt;exec /usr/sbin/faxgetty ttyS1&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the fax are received in a folder "&lt;/SPAN&gt;&lt;STRONG&gt;/var/spool/hylafax/recvq/&lt;/STRONG&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to read the new faxes every 5 minutes, If new fax comes I need to stamp the fax with the date and copy it to the DM &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CIFS setup &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For port redirecting, I created file "alfresco_cifs.sh" and run it , and then save the iptables setting using "iptables-save" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; The content of "alfresco_cifs.sh" is given below &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;BR /&gt;modprobe iptable_nat&lt;BR /&gt;iptables -F&lt;BR /&gt;iptables -t nat -F&lt;BR /&gt;iptables -P INPUT ACCEPT&lt;BR /&gt;iptables -P FORWARD ACCEPT&lt;BR /&gt;iptables -P OUTPUT ACCEPT&lt;BR /&gt;iptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-ports 1445&lt;BR /&gt;iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-ports 1139&lt;BR /&gt;iptables -t nat -A PREROUTING -p udp –dport 137 -j REDIRECT –to-ports 1137&lt;BR /&gt;iptables -t nat -A PREROUTING -p udp –dport 138 -j REDIRECT –to-ports 1138&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I needed to add the below configuration in&amp;nbsp; "/tomcat/shared/classes/alfresco-global.properties" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;cifs.enabled=true&lt;BR /&gt;cifs.Server.Name=fax_a&lt;BR /&gt;cifs.domain=MYDOMAIN&lt;BR /&gt;cifs.hostanounce=true&lt;BR /&gt;cifs.broadcast=0.0.0.0&lt;BR /&gt;cifs.tcpipSMB.port=1445&lt;BR /&gt;cifs.ipv6.enabled=false&lt;BR /&gt;cifs.netBIOSSMB.namePort=1137&lt;BR /&gt;cifs.netBIOSSMB.datagramPort=1138&lt;BR /&gt;cifs.netBIOSSMB.sessionPort=1139&lt;BR /&gt;audit.enabled=true&lt;BR /&gt;audit.dod5015.enabled=true&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now again back to the Faxserver, we need to do steps for &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(a) Mounting the Alfresco Share&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(b) call a script using crontab to execute every 5 minutes,[ which will stamp the fax and copy to the DM)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mounting the Alfresco Share in Hylfax server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make a directory to mount the Alfresco share&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mkdir /mnt/faxdm&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;edit the "/etc/fstab" add simillar content &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;//Give-IP-DM/Alfresco/yoursite/documentLibrary/faxin&amp;nbsp;&amp;nbsp;&amp;nbsp;/mnt/faxdm&amp;nbsp;&amp;nbsp;&amp;nbsp;cifs&amp;nbsp;&amp;nbsp;&amp;nbsp;rw,suid,credentials=/etc/faxpass,domain=MYDOMAIN&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;give &lt;/SPAN&gt;&lt;STRONG&gt;mount -a &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;if success you should be seeing&amp;nbsp; DM contents using &lt;/SPAN&gt;&lt;STRONG&gt;ls /mnt/faxdm&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now for copying the file, create a script named "FaxstampScript.sh"&amp;nbsp; with the following contents&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;#!/bin/bash&lt;BR /&gt;touch /root/myoutput&lt;BR /&gt;# search all the files which has been created since the last 5 minute&lt;BR /&gt;find /var/spool/hylafax/recvq&amp;nbsp; -mmin -5 -type f -name "*.tif"&amp;nbsp; &amp;gt; /root/myoutput&lt;BR /&gt;&lt;BR /&gt;for i in `cat /root/myoutput`&lt;BR /&gt;do &lt;BR /&gt;cp -f $i /mnt/faxdm&lt;BR /&gt;cd /mnt/faxdm&lt;BR /&gt;# Stamping The copied FAX with present time&lt;BR /&gt;convert $i -pointsize 60 -draw "gravity south&amp;nbsp; fill yellow&amp;nbsp; text 8,26 '`date`' fill blue&amp;nbsp; text 12,20 '`date`' "&amp;nbsp; $i&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;rm /root/myoutput&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;To call this file, every 5 minutes make a crontab entry, similar to &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;*/5 * * * *&amp;nbsp;&amp;nbsp; /root/scripts/FaxStampScript.sh&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this stage we have a system now ready in which Fax is received by Hylafax, after each 5 minutes, the spool directory is checked for new faxes and the new fax is stamped and copied to the DM &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the notification, set rules on the folder "faxin"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this post will be helpful to new comers like me &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joseph John&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will be happy to personally help and guide&amp;nbsp; free of cost to users in UAE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 14:31:20 GMT</pubDate>
    <dc:creator>bisana</dc:creator>
    <dc:date>2012-05-29T14:31:20Z</dc:date>
    <item>
      <title>HylaFax , Alfresco Integeration , with stamping  date &amp; time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248014#M201144</link>
      <description>Document Management integration with FaxObjective:- After&amp;nbsp; FAX is received by the FAX server, it needs to be stamped with date and copied it to the DMOnce copied it to the DM, a notification is to be send to the userSoftware used:- Hylafax and Alfresco 4.0.d How to do :-I have done the Hylafax setup</description>
      <pubDate>Tue, 29 May 2012 14:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248014#M201144</guid>
      <dc:creator>bisana</dc:creator>
      <dc:date>2012-05-29T14:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: HylaFax , Alfresco Integeration , with stamping  date &amp; time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248015#M201145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great post. Thanks for sharing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My recommendation would be to use the fax-to-email functionality to HylaFax to email incoming faxes. These can then be either emailed to an Alfresco folder or Ephesoft for OCR and then releasing into Alfresco. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, now you can run Alfresco and HylaFax on different servers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ainga&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 20:26:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248015#M201145</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2012-05-29T20:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: HylaFax , Alfresco Integeration , with stamping  date &amp; time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248016#M201146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Ainga&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to do that, but how could we manage stamping the fax&amp;nbsp; with the date and time, before checking into Alfresco Share &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joseph John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 05:15:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hylafax-alfresco-integeration-with-stamping-date-time/m-p/248016#M201146</guid>
      <dc:creator>bisana</dc:creator>
      <dc:date>2012-05-30T05:15:36Z</dc:date>
    </item>
  </channel>
</rss>

