On Tue, Jul 7, 2009 at 11:34 AM, Stefano
Marinelli<[email protected]> wrote:
> 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

Stefano,

Thanks for this.

I use HylaFax almost exclusively but charge a premium for it.

With this bit of code stashed away, you have also helped me out and I
am sure I will use it at some point, not to mention that it will be
indexed by google and used many times in the future I am sure.

Still most of my customers are connected to the PSTN and with T.38,
ATAs, and old skool fax machines..... ;)

-- 
Thanks,
Steve Totaro
+18887771888 (Toll Free)
+12409381212 (Cell)
+12024369784 (Skype)
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to