Kevin P. Fleming wrote: > Barry Fawthrop wrote: > >> I have been looking around and haven not been able to find a working example >> I have a fresh/new install of Asterisk 1.6.2.0 with dahdi 2.2.1 and libpri >> 1.4.10.2 >> >> I use a sangoma A200 card so I am using wanpipe 3.4.7 >> If I use zaptel which I read I need for app_rxfax then asterisk crashes with >> segfaults on startup >> >> asterisk[2624]: segfault at 30353466 ip b7eb538b sp bffda26c error 4 in >> libc-2.7.so[b7e3f000+155000] >> asterisk[2647]: segfault at 30353466 ip b7e6338b sp bfb7708c error 4 in >> libc-2.7.so[b7ded000+155000] >> asterisk[2666]: segfault at 30353466 ip b7dfe38b sp bfa6e4ec error 4 in >> libc-2.7.so[b7ded000+155000] > > If you are using Asterisk 1.6.2.0 you don't need app_rxfax; Asterisk > 1.6.2.0 includes app_fax as a standard application. >
Thanks Kevin Okay I found I had to re-compile with spandsp support in order for app_fax.so to be created ./configure --with-spandsp In sip.conf I have exten => fax,1,NoOp(a:${CALLERID} b:${CALLERID(num)} c:${CALLERID(name)[1~}) exten => fax,2,Answer() exten => fax,3,wait(2) exten => fax,4,Zapateller(answer,nocallerid) exten => fax,5,Set(TIFF=/var/spool/asterisk/fax_in/fax_${STRFTIME(,,%Y%m%d-%H%M)}_${RAND(1)}.tiff) exten => fax,6,ReceiveFax(${TIFF}) exten => fax,7,NoOp() exten => fax,8,System(send_fax.sh ${TIFF} "Fax Message Fax From ${REMOTESTATIONID}" m...@you.com) exten => fax,9,Hangup() I created this a send_fax.sh BUT I must admit I could not find one #!/bin/sh FAXFILE=$1 SUBJECT=$2 RECIPIENT=$3 tiff2ps -2eaz -w 8.3 -h 11.7 $FAXFILE | ps2pdf | mime-construct --to $RECIPIENT --subject $SUBJECT --attachment fax.pdf --type application/pdf -- file - and when I receive a fax call I get -- Executing [...@fromteliax:1] NoOp("SIP/teliax-0000000c", "a: b:352xxxYYYY c:CALLER NAME ") in new stack -- Executing [...@fromteliax:2] Answer("SIP/teliax-0000000c", "") in new stack -- Executing [...@fromteliax:3] Wait("SIP/teliax-0000000c", "2") in new stack -- Executing [...@fromteliax:4] Zapateller("SIP/teliax-0000000c", "answer,nocallerid") in new stack -- Executing [...@fromteliax:5] Set("SIP/teliax-0000000c", "TIFF=/var/spool/asterisk/fax_in/fax_20091223-1951_1857493655.tiff") in new stack -- Executing [...@fromteliax:6] ReceiveFAX("SIP/teliax-0000000c", "/var/spool/asterisk/fax_in/fax_20091223-1951_1857493655.tiff") in new stack this three times and then [Dec 23 19:39:09] WARNING[6964]: app_fax.c:503 transmit_audio: It looks like we hung. Aborting. [Dec 23 19:39:09] WARNING[6964]: app_fax.c:223 phase_e_handler: Error transmitting fax. result=49: The call dropped prematurely. [Dec 23 19:39:09] WARNING[6964]: app_fax.c:811 transmit: Transmission error == Spawn extension (fromteliax, fax, 5) exited non-zero on 'SIP/teliax-00000006' The directory /var/spool/asterisk/fax_in/ exists but nothing is ever created in the tiff file(s) is not found owned by asterisk:asterisk Any further assistance would be greatly appreciated. Thanks _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users