<HTML><HEAD>
<STYLE id=eMClientCss>BLOCKQUOTE.cite {
        BORDER-LEFT: #cccccc 1px solid; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px
}
BLOCKQUOTE.cite2 {
        BORDER-LEFT: #cccccc 1px solid; MARGIN-TOP: 3px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-TOP: 0px
}
.plain PRE {
        FONT-STYLE: normal; FONT-FAMILY: monospace; FONT-SIZE: 100%; FONT-WEIGHT: normal
}
.plain TT {
        FONT-STYLE: normal; FONT-FAMILY: monospace; FONT-SIZE: 100%; FONT-WEIGHT: normal
}
#7d6fe32d3477484ca3fc772ec0576d99 {
        FONT-FAMILY: Tahoma; FONT-SIZE: 12pt
}
.plain PRE {
        FONT-FAMILY: Tahoma; FONT-SIZE: 12pt
}
.plain TT {
        FONT-FAMILY: Tahoma; FONT-SIZE: 12pt
}
BODY {
        FONT-FAMILY: Tahoma; FONT-SIZE: 12pt
}
</STYLE>
</HEAD>
<BODY>
<DIV>&nbsp;</DIV>
<DIV>So, I've been working on creating a basic fax system in LUA with FS.&nbsp; It stores all it's settings and such in a sqlite3 database using the freeswitch.Dbh for the connection. </DIV>
<DIV>&nbsp;</DIV>
<DIV>So far I've built a rxfax.lua script that will</DIV>
<DIV>- answer inbound calls</DIV>
<DIV>- try to detect voice calls (not foolproof)</DIV>
<DIV>- apply session variables pulled from a database table</DIV>
<DIV>- route the fax to an e-mail address pulled from a database table</DIV>
<DIV><SPAN id=c19068eb1108461db0c0ab1cb15913dc>- extract the freeswitch log for each call</SPAN></DIV>
<DIV>- log the fax call and most variables to a database</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also, I've wrote another script faxctl.lua that you can invoke from the fs console and</DIV>
<DIV>- set configuration settings to be used my the rxfax.lua script</DIV>
<DIV>- set did 2 email routes</DIV>
<DIV>- initialize alias and complete records for easier use</DIV>
<DIV>- display some basic stats on faxes.</DIV>
<DIV>&nbsp;</DIV>
<DIV>It's all somewhat rough but it is working.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>I just started with FS and LUA a couple weeks ago so I am guessing that I have&nbsp;probably done some things wrong or in a&nbsp;very unoptimised way.&nbsp;&nbsp; Today I got around to putting them into git and write a very short wiki page on it so...&nbsp;I thought I would share what I've done so far and maybe it will help someone and/or the more skilled users here&nbsp;might provide some feedback on things to improve.</DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN id=7d6fe32d3477484ca3fc772ec0576d99>Here's a brief (very!) bit of info I've wrote up so far.</DIV></SPAN>
<DIV><A href="http://www.bmtsolutions.us/wiki/freeswitch:freeswitch_fax">http://www.bmtsolutions.us/wiki/freeswitch:freeswitch_fax</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>Here's the scripts</DIV>
<DIV><A href="http://git.bmts.us/gitweb/?p=fsfax.git">http://git.bmts.us/gitweb/?p=fsfax.git</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>