netrxinc
asked on
What is the proper syntax for a Fax For Asterisk call file
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
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
ASKER
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.
I have been meaning to setup fax for asterisk. You're giving me a good excuse...
Try adding this line to the fax file:
Data:/path/to/your/fax.tif|caller
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
Extension: s
to
Extension: send
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.
This should be enough to get us some new errors so we can feel our way through it and get it working.
ASKER
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.
ASKER
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.
ASKER
Sorry the files were not added to the previous post.
testfile.call.txt
fax-dialplan.txt
faxerror.log.txt
testfile.call.txt
fax-dialplan.txt
faxerror.log.txt
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-000000 00"
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!
"Waiting for T.38 negotiation for send on SIP/fpbx-1-6b231d00-000000
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. I'll check into that and in rhe meantime try ti use a different protocol.
ASKER
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.
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.
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.