[asterisk-users] ReceiveFax

William Stillwell william at stillwellsoft.com
Thu Jan 20 10:22:44 CST 2011


This is new to me, I have a fax server using Receive Fax and gets way over 5
calls at a time.

 

[fax-in]

 

exten => s,1,Answer()

exten => s,n,Wait(1)

exten =>
s,n,Set(BASEFILE=fax-${CALLERID(dnid)}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})

;exten => s,n,Set(${LOCALSTATIONID})

exten => s,n,MixMonitor(/mnt/ramdisk/${BASEFILE}.wav)

exten => s,n,ReceiveFAX(/mnt/ramdisk/${BASEFILE}.tif)

exten => s,n,Hangup()

exten => h,1,System(/home/asterisk/dofax.sh "${EMAILADDRESS}" "${FAXSTATUS}"
"${CALLERID(num)}" "${....<snip>

 

 

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Nicholas
Sent: Thursday, January 20, 2011 10:49 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] ReceiveFax

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Flavio Miranda
Sent: Thursday, January 20, 2011 9:00 AM
To: Asterisk Asterisk
Subject: [asterisk-users] ReceiveFax

 

Hi all,

 

 I realize that the application Receivefax can't handle with more than one
fax at the same time. In a environment  with a lot of fax, some caller get
the signal but the operation can't be completed.

 Is  there a way to send busy tone to the second caller?

 

Att,
 
Flavio Roberto Miranda
MSN:flaviormiranda at hotmail.com
Skype: flaviormiranda

 

My guess is no.  A possible "work-around" would be to set a global variable
to indicate that the line is busy and to play a message and hang-up
immediately or to just hangup.  Something like this:

-       exten => s,1,answer

-       exten => s,n,AGI(checkstat.agi) - reset variable if receivefax died
or hungup

-       exten => s,n,Gotoif($[ "${FAXINUSE}" = "YES"]?byebye)

-       exten => s,n,Set(GLOBAL(FAXINUSE)=YES)

-       exten => s,n,receivefax

-       exten => s,n,Set(GLOBAL(FAXINUSE)=NO)

-       exten => s,n,hangup

-       exten => s,n(byebye),playback(im-busy)

-       exten => s,n,hangup

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110120/a5d4af4f/attachment-0001.htm>


More information about the asterisk-users mailing list