Koozali.org: home of the SME Server

Fax Setup in Sail-3.2 and Asterisk 18-1.8.7

Offline compsos

  • *
  • 472
  • +0/-0
Fax Setup in Sail-3.2 and Asterisk 18-1.8.7
« on: September 08, 2012, 07:25:18 AM »
We have setup faxing in version 18 of asterisk basically as per the wiki http://wiki.contribs.org/IAXModem_with_Sail_and_HylaFax.
The only difference is not having direct access to the database we made the template file in /etc/e-smith/templates-custom/etc/iaxmodem/ttyIAX/modem just a flat file with the details.
Code: [Select]
device          /dev/ttyIAX
owner           uucp:uucp
mode            666
port            4570
refresh         60
server          127.0.0.1
peername        200
cidname         Company Name
cidnumber       Fax Number
secret          Secret (From sail ext 200)
codec           slinear
Jeff is it possible with the edit function to create a new IAX2 stanza based on this? would it work?
Can a template file read the data to generate the working file?

Other than the above it works.

Has anyone managed to get "Fax for Asterisk" working?

Regards

Gordon............

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Fax Setup in Sail-3.2 and Asterisk 18-1.8.7
« Reply #1 on: September 09, 2012, 08:37:08 PM »
HI


Quote
is it possible with the edit function to create a new IAX2 stanza based on this? would it work?
Can a template file read the data to generate the working file?

Sorry to be so dim but I haven't looked at IAXmodem in over a year so I just don't understand what you are asking.  Could you expand on this a bit and assume I am very stupid (which is actually true).

Best

Jeff       

Offline compsos

  • *
  • 472
  • +0/-0
Re: Fax Setup in Sail-3.2 and Asterisk 18-1.8.7
« Reply #2 on: September 09, 2012, 11:49:13 PM »
Hi Jeff
In version 2 sail used a sme DB system so the definition of the modem (ie) port password etc was called from the DB rather than a static file/template. Installing everything as per the wiki but doing the template file as a static file works.

We still have requests for fax. So it is not yet dead. Digium have "Fax for Asterisk" but as yet have not got it working in Sail. I understand it uses T38 protocol which should be better for fax in VOIP.
Regards

Gordon............

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Fax Setup in Sail-3.2 and Asterisk 18-1.8.7
« Reply #3 on: September 12, 2012, 11:23:55 AM »
OK - I think I get it now.  Sometimes takes me a while.

You can't run 'Digium FAX' or 'SpanDSP FAX' on Digium supplied Asterisk RPMs (such as we use in SARK).  The FAX modules aren't included in the RPM.  They are anyway, mutually exclusive so you have to pick one (Digium or spandsp) and recompile Asterisk to include it.   So, you would need to build your own Asterisk, which is fine but it's not really an option for us for SARK/SAIL unless we change the way our iso works.

In answer to your question "can you generate an IAXmodem template like the one in the wiki?", the answer is yes but I'm not sure if we would want to.  The original code only retrieved 4 variables from the database so its a bit overkill to put it into a database and to write all of the surrounding CRUD code to look after it. I think I'd be tempted to take it out of SME templates altogether and just update the base file.  It's not like it's going to change very often. 

Best

Jeff
« Last Edit: September 12, 2012, 11:25:49 AM by SARK devs »

Offline compsos

  • *
  • 472
  • +0/-0
Re: Fax Setup in Sail-3.2 and Asterisk 18-1.8.7
« Reply #4 on: September 12, 2012, 11:27:49 AM »
Thanks Jeff
We will just stick to the IAXmodem system. It works OK and faxes are becoming less common just not joined the Telex machine yet.
Regards

Gordon............