Hi everybody

Steve Totaro ha scritto:
> Inline
> 
> On Tue, Jul 7, 2009 at 4:55 AM, Gerald Cox<[email protected]> wrote:
>> Steve: no.  Not easier to monitor a directory.  I've got that setup as
>> well.
> 
> If you have that setup as well, why not share your method and really
> help the guy?  Not everyone was cut out or has the desire to learn to
> code.

I've been following this thread but it's becoming hot...so I hope nobody
will care if I'm going to cut and paste my setup.
It's far from being perfect, but works and it's ok.
If that guy will learn or not how to do some basic programming, I don't
care. Just my two cents :-)

P.S.: I've some nice OGIs I've created to manage calls from an hotel...
so consider this script as a bad bad bad ugly ugly ugly code...it was my
first Callweaver dialplan, and still works :)

...after FaxDetect...

[fax]
exten => s,1,Ringing
exten => s,n,Wait,8
exten => s,n,Set(LOCALSTATIONID=MyLocation)
exten => s,n,Set(LOCALHEADERINFO=Fax Server)
exten => s,n,Set(FAXFILE=/tmp/${UNIQUEID}.tif)
exten => s,n,Set(FAXFILENOEXT=/tmp/${UNIQUEID})
exten => s,n,Set(SIP_CODEC=ulaw)
exten => s,n,SipDTMFMode(inband)
exten => s,n,RxFAX(${FAXFILE},ecm)
exten => s,n,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID})
exten => s,n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS})
exten => s,n,Hangup

exten => h,1,System(tiff2pdf -z ${FAXFILE} > ${FAXFILE}.pdf)
exten => h,n,System(/usr/bin/mpack "-a -s 'Incoming Fax From:
${CALLERID}, ${REMOTESTATIONID}, Received: ${DATETIME}' ${FAXFILE}.pdf
[email protected]")

Stefano
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to