Re: [asterisk-users] FAX detection not working

2007-09-29 Thread Joe Acquisto
>>> 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=DeviceDial/${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


Re: [asterisk-users] FAX detection not working

2007-09-29 Thread Lee Howard
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.

___

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


Re: [asterisk-users] FAX detection not working

2007-09-29 Thread Joe Acquisto
This can be a partial never mind, I guess.  I can see via the CLI that the call 
is being handled by
some FAX related routines.  Just not quite the solution I expected.

joe a.

>>> On 9/29/2007 at 8:56 AM, "Joe Acquisto" <[EMAIL PROTECTED]> wrote:
> I am having a problem detecting incoming FAX.  TMD22p (tdm400p 2 fxo, 2fxs)
> 
> 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.
> 
> In my case, I ask it to answer immediately and do a distinctive ring (r3) to 
> alert that is its a FAX call so no one picks up the line.
> 
> however, it seems the FAX tone is not being detected (I know it is being 
> sent), as the normal ring tone is heard.
> 
> I must be misunderstanding  how this works.  Or does not work.
> 
> 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


___

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


Re: [asterisk-users] FAX detection not working

2007-09-29 Thread Tzafrir Cohen
On Sat, Sep 29, 2007 at 08:56:56AM -0400, Joe Acquisto wrote:
> I am having a problem detecting incoming FAX.  TMD22p (tdm400p 2 fxo, 2fxs)
> 
> 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.
> 
> In my case, I ask it to answer immediately and do a distinctive ring (r3) to 
> alert that is its a FAX call so no one picks up the line.

Fax detection detects a tone on the line. Hence it only owrks after the
line has been answered.

> 
> however, it seems the FAX tone is not being detected (I know it is being 
> sent), as the normal ring tone is heard.
> 
> I must be misunderstanding  how this works.  Or does not work.

Can you please provide your relevant dialplan snippets and relevant
parts of zapata.conf ?

-- 
   Tzafrir Cohen   
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___

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


[asterisk-users] FAX detection not working

2007-09-29 Thread Joe Acquisto
I am having a problem detecting incoming FAX.  TMD22p (tdm400p 2 fxo, 2fxs)

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.

In my case, I ask it to answer immediately and do a distinctive ring (r3) to 
alert that is its a FAX call so no one picks up the line.

however, it seems the FAX tone is not being detected (I know it is being sent), 
as the normal ring tone is heard.

I must be misunderstanding  how this works.  Or does not work.

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