Hello, I need to send a tiff via fax with my asterisk 1.6.1.0. I tried in the dialplan [default] exten => _X.,1,SendFax(/root/test.tiff) but I have: salledeconf1*CLI> console dial 111 at default [Dec 23 16:24:22] WARNING[31739]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory -- Executing [111 at default:1] SendFAX("Console/dsp", "/root/test.tiff") in new stack << Console call has been answered >> [Dec 23 16:24:22] NOTICE[31739]: console_video.c:133 console_video_start: voice only, console video support not present [Dec 23 16:24:23] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 23 16:24:24] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 23 16:24:25] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 23 16:24:26] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory Know you why? Please help me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091223/37e6dda4/attachment.htm
Did you stand on one foot and hold out your tongue when you made the tiff?? :-) The tiff has to be a ?very specific? format I spent days making my output tiffs match the format of a received tiff I was able to send. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of BERGANZ Fran?ois Sent: Wednesday, December 23, 2009 10:50 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] fax problem Hello, I need to send a tiff via fax with my asterisk 1.6.1.0. I tried in the dialplan [default] exten => _X.,1,SendFax(/root/test.tiff) but I have: salledeconf1*CLI> console dial 111 at default [Dec 23 16:24:22] WARNING[31739]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory -- Executing [111 at default:1] SendFAX("Console/dsp", "/root/test.tiff") in new stack << Console call has been answered >> [Dec 23 16:24:22] NOTICE[31739]: console_video.c:133 console_video_start: voice only, console video support not present [Dec 23 16:24:23] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 23 16:24:24] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 23 16:24:25] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 23 16:24:26] WARNING[31745]: chan_oss.c:492 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory Know you why? Please help me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091223/1a92e0cb/attachment.htm
BERGANZ Fran?ois wrote:> I need to send a tiff via fax with my asterisk 1.6.1.0. > > I tried in the dialplan > > > > [default] > > exten => _X.,1,SendFax(/root/test.tiff) > > > > > > but I have: > > salledeconf1*CLI> console dial 111 at defaultYou are not going to be able to use SendFax on a console channel driver, unless you've got your console audio somehow hooked to a FAX machine. In any case, the messages you got are not from SendFax, they are from chan_oss, and you'll need to investigate that. This problem is not related to your use of FAX, so it's not a 'fax problem'. If I had to guess, I would suspect this is because chan_oss claims that it can switch to signed linear audio mode (so Asterisk does not use a translation path to achieve that), but can't actually do it. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpfleming at digium.com Check us out at www.digium.com & www.asterisk.org
On Wed, Dec 23, 2009 at 10:49 AM, BERGANZ Fran?ois <francois at acropolistelecom.net> wrote:> Hello, > > > > I need to send a tiff via fax with my asterisk 1.6.1.0. > > I tried in the dialplan > > > > [default] > > exten => _X.,1,SendFax(/root/test.tiff)try "originate sip/provider/number extension 100 at default" Martin
Hi Francois, here is Francois too ;-) Check that : [fax-outbound-calls] exten => _X.,1,Dial(${ACROPOLIS}/${EXTEN},,G(fax-tx^send^1)) [fax-tx] exten => send,1,NoOp(**** SENDING FAX ****) exten => send,n,Set(FaxTxDir=/var/spool/fax/tx/) exten => send,n,Set(FAXFILEPDF=fax-${FAXCOUNT}-tx.pdf) exten => send,n,Wait(6) exten => send,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) exten => send,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)}) exten => send,n,Set(FAXFILE=test.tif) ; Set FAXOPTs exten => send,n,NoOp(**** SETTING FAXOPT ****) exten => send,n,Set(FAXOPT(filename)=${FAXFILE}) exten => send,n,Set(FAXOPT(ecm)=yes) exten => send,n,Set(FAXOPT(headerinfo)=Fax from ${GLOBAL(LASTFAXCALLERNAME)} at ${GLOBAL(LASTFAXCALLERNUM)} was received.) exten => send,n,Set(FAXOPT(localstationid)=0170619058) exten => send,n,Set(FAXOPT(maxrate)=14400) exten => send,n,Set(FAXOPT(minrate)=2400) ; Send the fax exten => send,n,NoOp(**** SENDING FAX ****) exten => send,n,SendFAX(${FaxTxDir}${FAXFILE}|d) ; Hangup! Print FAXOPTs exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)}) exten => h,n,NoOp(FAXOPT(filename) : ${FAXOPT(filename)}) exten => h,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) exten => h,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) exten => h,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) exten => h,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) exten => h,n,NoOp(FAXOPT(pages) : ${FAXOPT(pages)}) exten => h,n,NoOp(FAXOPT(rate) : ${FAXOPT(rate)}) exten => h,n,NoOp(FAXOPT(remotestationid) : ${FAXOPT(remotestationid)}) exten => h,n,NoOp(FAXOPT(resolution) : ${FAXOPT(resolution)}) exten => h,n,NoOp(FAXOPT(status) : ${FAXOPT(status)}) exten => h,n,NoOp(FAXOPT(statusstr) : ${FAXOPT(statusstr)}) exten => h,n,NoOp(FAXOPT(error) : ${FAXOPT(error)}) ; Sendmail options for reports by email : exten => h,n,System(/usr/bin/tiff2pdf -o ${FaxTxDir}${FAXFILEPDF} ${FaxRxDir}${FAXFILE}) exten => h,n,macro(Sendmail,postmaster at acropolis.fr,asterisk at acropolis.fr,${FaxRxDir}${FAXFILEPDF},${FAXOPT(pages)},${FAXOPT(rate)},${FAXOPT( headerinfo)},${FAXOPT(remotestationid)},${FAXOPT(resolution)}) Mainly extracted from the Digium FFA manual. I hope this can help you. Best Regards, Francois On Wed, Dec 23, 2009 at 10:49 AM, BERGANZ Fran?ois <francois at acropolistelecom.net> wrote:> Hello, > > > > I need to send a tiff via fax with my asterisk 1.6.1.0. > > I tried in the dialplan > > > > [default] > > exten => _X.,1,SendFax(/root/test.tiff)
Reasonably Related Threads
- Fax for Asterisk, capable of receiving from website but not from fax machine !!
- Problem with ReceiveFAX app from FFA
- chan_oss.c:585 setformat: Unable to re-open DSP device
- Incoming Fax Issue with Asterisk 11.7 and Digium Fax
- ReceiveFax for multiple page (asterisk 13.0.1)