>>> On 9/29/2007 at 3:27 PM, Lee Howard <[EMAIL PROTECTED]> wrote:
> Joe Acquisto wrote:
> 
>>As I understand it, I must have faxdetect = incoming to enable detection of 
> the fax tone.
>>Then, I must have a [fax] context to pickup the line and send it to whatever 
> extension the FAX device is on.
>>
> 
> It's a "fax" extension in the context where the call is at... not a fax 
> context in the dialplan.
> 
> Lee.
> 

I don't follow.  Sorry.

Now might be a good time to post this, since Tzafrir asked,  it looks very much 
like bits I have seen on the net.  I did see what appeared to be the analog_fax 
part when checking at CLI.

So, I would surmise it detected the FAX and is trying to deal with it, but the 
number derived via LDAPget is hosed?   It just ends up hanging up and not 
dialing any extension.

{begin snippet]
[ext-fax]       
exten => s,1,Answer     
exten => s,2,Goto(in_fax|1)     
exten => in_fax,1,GotoIf($[${FAX_RX} = system]?2:analog_fax|1)  
exten => in_fax,2,Macro(faxreceive)     
exten => in_fax,3,system(tiff2ps -2eaz -w 8.5 -h 11 ${FAXFILE} | ps2pdf - 
${FAXFILE}.pdf)       
exten => in_fax,4,system(mime-construct --to ${EMAILADDR} --subject "Fax from 
${CALLERID(num)} ${CALLERID(name)}" --attachment ${CALLERID(num)}.pdf --type 
application/pdf --file ${FAXFILE}.pdf)       
exten => in_fax,5,system(rm ${FAXFILE} ${FAXFILE}.pdf)  
exten => in_fax,6,Hangup        
exten => analog_fax,1,GotoIf($[foo${FAX_RX} = foo]?3:2)         
exten => analog_fax,2,LDAPget(DIAL=xxxxxxxxDeviceDial/${FAX_RX})        
exten => analog_fax,3,Dial(${DIAL}|20|d)        
exten => analog_fax,4,Hangup    
exten => out_fax,1,txfax(${TXFAX_NAME}|caller)  
exten => out_fax,2,Hangup       
exten => h,1,Hangup()
[end snippet]

joe a.


_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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

Reply via email to