Maybe I over-complicated my question with the mailfax part. If I leave the mailfax step out entirely, then there should be a .tif file, right? But there's not. No tif file gets created at all. Permissions on the fax folder are 777 at the moment. Thanks for the responses so far. /Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050714/50a1847f/attachment.htm
Rob Danz wrote:> If I leave the mailfax step out entirely, then there should be a .tif > file, right? But there?s not. No tif file gets created at all. > Permissions on the fax folder are 777 at the moment.Are the permissions okay for getting TO that folder? (do you have r+x on the directories 'above' the fax folder?)> Thanks for the responses so far.Just trying to help out, I'm using ISDN lines with a DID, for receiving I do this.. If one calls number X, then Goto(custom-fax,s,1) and then.. [custom-fax] exten => s,1,Answer exten => s,2,Macro(faxreceive) exten => s,3,SetVar(ONZENID=${UNIQUEID}) exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE} myemail@mydomain.com "${CALLERIDNUM} ${CALLERIDNAME}" ${ONZENID}) [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,2,SetVar(EMAILADDR=${FAX_RX_EMAIL}) exten => s,3,rxfax(${FAXFILE}) exten => s,103,SetVar(EMAILADDR=${FAX_RX_EMAIL}) exten => s,104,Goto(3) The [macro-faxrecevive] is from AMP (wich I'm using for managing asterisk) Hope you can do something with this.. :-) Cheers
Yes, the permissions are okay for getting to that folder. /var/spool/asterisk is writable (voicemail works & that's a subdirectory under the same path that has the same permissions as the subdirectory 'asterisk-fax' As the same user that runs asterisk I did a 'touch /var/spool/asterisk/asterisk-fax/test.tif' just to be sure I could write to that directory. Permissions are fine. ---------------> If I leave the mailfax step out entirely, then there should be a .tif > file, right? But there?s not. No tif file gets created at all. > Permissions on the fax folder are 777 at the moment.Are the permissions okay for getting TO that folder? (do you have r+x on the directories 'above' the fax folder?)> Thanks for the responses so far.Just trying to help out, I'm using ISDN lines with a DID, for receiving I do this.. If one calls number X, then Goto(custom-fax,s,1) and then.. [custom-fax] exten => s,1,Answer exten => s,2,Macro(faxreceive) exten => s,3,SetVar(ONZENID=${UNIQUEID}) exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE} myemail@mydomain.com "${CALLERIDNUM} ${CALLERIDNAME}" ${ONZENID}) [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,2,SetVar(EMAILADDR=${FAX_RX_EMAIL}) exten => s,3,rxfax(${FAXFILE}) exten => s,103,SetVar(EMAILADDR=${FAX_RX_EMAIL}) exten => s,104,Goto(3) The [macro-faxrecevive] is from AMP (wich I'm using for managing asterisk) Hope you can do something with this.. :-) Cheers
I've tried both with and without Answer as the first line, same result. When I was searching through the archives, I believe there was a post from Steve Underwood that said to always use Answer as the first line. -----------------------------------------------> Yes, the permissions are okay for getting to that folder.> /var/spool/asterisk is writable (voicemail works & that's a subdirectory> under the same path that has the same permissions as the subdirectory> 'asterisk-fax'>> As the same user that runs asterisk I did a 'touch> /var/spool/asterisk/asterisk-fax/test.tif' just to be sure I could write> to that directory. Permissions are fine.[...]> [custom-fax]> exten => s,1,Answer> exten => s,2,Macro(faxreceive)> exten => s,3,SetVar(ONZENID=${UNIQUEID})> exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE}> myemail@mydomain.com "${CALLERIDNUM} ${CALLERIDNAME}" ${ONZENID})[...] I do not have the system perform an answer. Try removing the line, perhaps the system is getting confused. B -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050715/7ef282d8/attachment.htm
Add the debug option to the rxfax line... ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Rob Danz Sent: 15 July 2005 13:13 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Re: Re: SpanDSP rxfax, no tiff I've tried both with and without Answer as the first line, same result. When I was searching through the archives, I believe there was a post from Steve Underwood that said to always use Answer as the first line. -----------------------------------------------> Yes, the permissions are okay for getting to that folder.> /var/spool/asterisk is writable (voicemail works & that's asubdirectory> under the same path that has the same permissions as the subdirectory> 'asterisk-fax'>> As the same user that runs asterisk I did a 'touch> /var/spool/asterisk/asterisk-fax/test.tif' just to be sure I couldwrite> to that directory. Permissions are fine.[...]> [custom-fax]> exten => s,1,Answer> exten => s,2,Macro(faxreceive)> exten => s,3,SetVar(ONZENID=${UNIQUEID})> exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE}> myemail@mydomain.com "${CALLERIDNUM} ${CALLERIDNAME}" ${ONZENID})[...] I do not have the system perform an answer. Try removing the line, perhaps the system is getting confused. B The information contained in this email is intended for the personal and confidential use of the addressee only. It may also be privileged information. If you are not the intended recipient then you are hereby notified that you have received this document in error and that any review, distribution or copying of this document is strictly prohibited. If you have received this communication in error, please notify Brendata immediately on: +44 (0)1268 466100, or email 'technical@brendata.co.uk' Brendata (UK) Ltd Nevendon Hall, Nevendon Road, Basildon, Essex. SS13 1BX UK Registered Office as above. Registered in England No. 2764339 See our current vacancies at www.brendata.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050715/c38f3233/attachment.htm
Well, while searching how to add the debug option, I think I found the answer. http://lists.digium.com/pipermail/asterisk-users/2005-July/115141.html SpanDSP and the TDM400P don't play well together yet. So I'm out of luck for the moment. Thanks to everyone who responded w/ suggestions. /Rob --------------------------------------------- Add the debug option to the rxfax line... ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Rob Danz Sent: 15 July 2005 13:13 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Re: Re: SpanDSP rxfax, no tiff I've tried both with and without Answer as the first line, same result. When I was searching through the archives, I believe there was a post from Steve Underwood that said to always use Answer as the first line. -----------------------------------------------> Yes, the permissions are okay for getting to that folder.> /var/spool/asterisk is writable (voicemail works & that's asubdirectory> under the same path that has the same permissions as the subdirectory> 'asterisk-fax'>> As the same user that runs asterisk I did a 'touch> /var/spool/asterisk/asterisk-fax/test.tif' just to be sure I couldwrite> to that directory. Permissions are fine.[...]> [custom-fax]> exten => s,1,Answer> exten => s,2,Macro(faxreceive)> exten => s,3,SetVar(ONZENID=${UNIQUEID})> exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE}> myemail@mydomain.com "${CALLERIDNUM} ${CALLERIDNAME}" ${ONZENID})[...] I do not have the system perform an answer. Try removing the line, perhaps the system is getting confused. B The information contained in this email is intended for the personal and confidential use of the addressee only. It may also be privileged information. If you are not the intended recipient then you are hereby notified that you have received this document in error and that any review, distribution or copying of this document is strictly prohibited. If you have received this communication in error, please notify Brendata immediately on: +44 (0)1268 466100, or email 'technical@brendata.co.uk' Brendata (UK) Ltd Nevendon Hall, Nevendon Road, Basildon, Essex. SS13 1BX UK Registered Office as above. Registered in England No. 2764339 See our current vacancies at www.brendata.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050715/13a8d938/attachment.htm