[Asterisk-Users] RxFax/spandsp: file-naming of received faxes

Sam Bingner sam at bingner.com
Tue Mar 30 21:52:19 MST 2004


* listens for fax tones as soon as you "Answer()" the line.  If you Answer
the line before ringing the local lines, it will actually detect fax tones
while in the Dial statement.

Sam

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Scott Laird
Sent: Sunday, March 28, 2004 5:52 PM
To: Martin List-Petersen
Cc: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] RxFax/spandsp: file-naming of received faxes



On Mar 28, 2004, at 7:40 PM, Martin List-Petersen wrote:
>
>> ; I'm using a shared analog line for testing this, so I'm using the
>> fax
>> ; autodetection code to yank faxes out of my IVR and into the 'fax'
>> ; pseudo-extension
>> [outside]
>>    ...
>>    exten => fax,1,Goto(fax,2201,1)
>
> I would be interested in how you do fax autodetection.

I don't do anything particularly special, Asterisk just makes it work.
This is using a bog-standard POTS line at home.  Here's the relevant
part of my config:

[macro-outsideline]
   exten => s,1,LookupCIDName
   exten => s,2,SetMusicOnHold(random)
   exten => s,3,Dial(${PHONES},13,Ttm)
   exten => s,4,Answer
   exten => s,5,Goto(outside-ivr,s,1)

[outside-ivr]
   ; This is the outside IVR
   ; Playback a "We're not home message"
   ; To leave a message for Scott, press 1
   ; To leave a message for C, press 2
   ; Otherwise stay on the line.
   ;
   ; Also, 3 => main voicemail
   ;       4 => check voicemail (main)
   ;       5 => check voicemail
   ;       6 => DISA (with password)
   ;
   ; Check for fax, too

   exten => s,1,NoOp
   exten => s,2,DigitTimeout(5)
   exten => s,3,ResponseTimeout(2)
   exten => s,4,Wait(1)
   exten => s,5,Background(laird/ivr-greeting)

   exten => t,1,VoiceMail(s2201)
   exten => t,2,Hangup

   ; other stuff goes here, but it's not really important

   exten => fax,1,Answer
   exten => fax,2,Goto(fax,2201,1)

[outside]
   exten => s,1,Macro(outsideline)
   exten => fax,1,Goto(fax,2201,1)


95% of this isn't important for faxing, but I included it for context.
The big issue is the IVR stuff and the 'fax' extension.  Once we get to
the IVR, asterisk is listening for DTMF tones and apparently also fax
tones.  If it hears a fax, then it goes to the 'fax' extension.  That's
it.


Scott


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3047 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040331/1f0cfc1d/smime.bin


More information about the asterisk-users mailing list