What is the proper syntax for a Fax For Asterisk call file

netrxinc
netrxinc used Ask the Experts™
on
I have successfully installed AsteriskNOW, upgraded the Asterisk component to 1.6.0.20, upgraded the FreePBX component to 2.6x and installed the Free Fax for Asterisk.  I added the dialplans given as an example in the Fax for Asterisk documentation.  I have been trying to create a simple call file that will fax a tif file, but have not been able to find the right syntax (or combination of syntaxes)  I have attached the segment of the dialplan contained in extensions_custom.conf, the call file I've been attempting to use, and a corresponding dump of the asterisk full log.  The sip_custom.conf file has been modified to allow for T38 transmission.  

The phone number in the attached files has been changed.  The actual number was a orking fax number.

Thanks for any assistance.
error.log
extensions-custom.conf.txt
testfile.call.txt
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012

Commented:
I've not done this, but you can catch the call file as it is generated if you send a fax manually.

Just watch the /var/spool/asterisk directory when yous end it out. You should be able to "catch" the file, using the cat command, and then you can see the actual syntax generated by asterisk.

Author

Commented:
That would be great...unfortunately for me I do not know how to send one manually.  If you could let me know, then that would definately help. Thanks for your input.
Most Valuable Expert 2012

Commented:
I have been meaning to setup fax for asterisk. You're giving me a good excuse...
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Most Valuable Expert 2012

Commented:
Try adding this line to the fax file:
Data:/path/to/your/fax.tif|caller

Open in new window

Commented:
I know little about fax in Asterisk, but simply from examination of your error log, it looks like you need to change the following line in your call file:
 Extension: s
to
 Extension: send
Most Valuable Expert 2012

Commented:
Good catch. He also needs a FAX to send, which I know must Vendor a TIFF file, thus the data line.
This should be enough to get us some new errors so we can feel our way through it and get it working.
 

Author

Commented:
Thanks folks.  I will try this out and let you know what happens.  I did a "fax show status" command and it showed no attempts having been made to this point.

Author

Commented:
Last evening I added the Data:/path/to/your/fax.tif|caller line to the call file, but I received errors stating that the pipe is no longer a valid delimiter and instead use a comma.  I tried that too, but it also errored out.  I tried the  Extension: send  addition to the call file and it made a big difference.  It appeared to have attempted to send the fax file (sg-faxout.tif)...but it was never received.  As far as adding Data:/path/to/you/fax.tif , for the moment the fax file has been hard coded into the dialplan.  I have attached the call file that was archived in the outgoing_done folder, the dialplan and the error log statements that were generated...sooooooo close.

Author

Commented:
Sorry the files were not added to the previous post.
testfile.call.txt
fax-dialplan.txt
faxerror.log.txt

Commented:
It all appears to be working correctly up to this point in the log file:
"Waiting for T.38 negotiation for send on SIP/fpbx-1-6b231d00-00000000"

That would suggest that your dial plan is ok and the problem is with the fax config. Regrettably that is outside my experience. Hope that DrDamnit or others can assist here!
Most Valuable Expert 2012
Commented:
T.38 negotiation here means that it is sending a request to the provider that it wants to use T.38 to send a FAX. This has to be supported by your VOIP provider. Please confirm they support it before we continue.

If they don't, we'll be trouble shooting without hope of resolution.

Author

Commented:
Thanks. I'll check into that and in rhe meantime try ti use a different protocol.

Author

Commented:
I removed the line:
    t38pt_udptl = yes
from my sip_general_custom.conf file, which I suppose forces Asterisk to use G.711 when sending faxes and it has worked 3 times in a row.  I use Sipstation as my VOIP and they do not support T38.   Thanks a lot DrDamnit and feptias for your assistance.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial