ReceiveFax overwrites file from prev. session

Community-based Support for users of Free Fax For Asterisk

ReceiveFax overwrites file from prev. session

Postby Paul Tokarev » Sat Aug 27, 2011 1:42 pm

Hi.
Here is a peace of my dialplan:

exten => 1,1,GoTo(receive_fax,1)

exten => receive_fax,1,Set(MSGFILENAME=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}.${RAND(100,999)})
exten => receive_fax,n,receiveFax(${MSGFILENAME})
exten => receive_fax,n,Playback(Press1ForNewFaxTransfer)
exten => receive_fax,n,WaitExten()

.......

When i press 1 the first execution goes just fine and i get tiff file 'year-month-day hour:minute:second.ddd.tiff', but if I press 1 after that the variable ${MSGFILENAME} is set properly to new point of time, but receiveFax function overwrites the old file received before that. Can someone explain it to me why is this happening?

Thank you in advance.
Paul Tokarev
Newsterisk
 
Posts: 12
Joined: Sat Aug 27, 2011 1:25 pm

Re: ReceiveFax overwrites file from prev. session

Postby Paul Tokarev » Tue Jan 10, 2012 4:19 am

I thought the problem is in the version of asterisk and upgraded to 1.8.9 (was 1.8.5), but still no success, receiveFax still overwrites the file from prev. session. Interesting is that when I start to send second fax, I see in cli:
Channel 'SIP/sipgate-out-00000007' receiving FAX 'file2.tiff'
but in the fact file1 is overwritten and after receiving FAXOPT(filename) returns the old filename: file1
Any ideas? Could this be a bug?
Paul Tokarev
Newsterisk
 
Posts: 12
Joined: Sat Aug 27, 2011 1:25 pm


Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest