Hi all, I am running to the following problem, when using the below dialplan to receive fax, everything works perfect till this line exten => receive,n,ReceiveFAX(${FAXFILE}): and then the following line cannot be executed, it's like asterisk can't go back to dialplan and continue, the good news is when i check what is received in my fax folder i find that the file is a valid one (not corrupted or empty), also when I use another way to execute fax2mail, it's working perfect and sent right to my email (test was done with the same file received by ReceiveFAX), so I belive the problem is just when transiting from the line that call ReceiveFAX and the line that call fax2mail (but both work not in order or separately), the debugging of PRI channel is below dialplan (maybe i will need to turn on debugging in receiveFAX app as well), please advise! I am using asterisk 1.6.2.11, FAX For Asterisk Components: Applications: 1.6.2.0_1.2.1 Digium FAX Driver: 1.6.2.0_1.2.1 (optimized for barcelona_64) [fax-rx] exten => receive,1,NoOp(**** FAX RECEIVE ****) exten => receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)}) exten => receive,n,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}.tif) exten => receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}) exten => receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)}) exten => receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)}) exten => receive,n,NoOp(**** SETTING FAXOPT ****) exten => receive,n,Set(FAXOPT(ecm)=yes) exten => receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX) exten => receive,n,Set(FAXOPT(localstationid)=15184893772) exten => receive,n,Set(FAXOPT(maxrate)=14400) exten => receive,n,Set(FAXOPT(minrate)=2400) exten => receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)}) exten => receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) exten => receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) exten => receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) exten => receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) exten => receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****) exten => receive,n,ReceiveFAX(${FAXFILE}) exten => receive,n,System('/usr/local/bin/fax2mail -p -f "${FAXFILENOEXT}" --cid-number ${CALLERID(num)} --cid-name "${CALLERID(name)}" --dest-name "Sir/Madam"') *debug:* pbx3*CLI> -- Executing [receive at fax-rx:20] ReceiveFAX("DAHDI/1-1", "/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif") in new stack q931.c:5088 q931_connect: Call 14288 enters state 8 (Connect Request). Hold state: Idle pbx3*CLI> pbx3*CLI>> DL-DATA requestpbx3*CLI>> Protocol Discriminator: Q.931 (8) len=14pbx3*CLI>> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)pbx3*CLI>> Message Type: CONNECT (7)TEI=0 Transmitting N(S)=1, window is open V(A)=0 K=7 pbx3*CLI> pbx3*CLI>> Protocol Discriminator: Q.931 (8) len=14pbx3*CLI>> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) > Message Type: CONNECT (7)pbx3*CLI>> [18 03 a9 83 81] > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0Exclusive Dchan: 0 pbx3*CLI>> ChanSel: As indicated in following octets > Ext: 1 Coding: 0 Number Specified Channel Type: 3pbx3*CLI>> Ext: 1 Channel: 1 Type: CPE] > [1e 02 81 82]pbx3*CLI>> Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0:0 Location: Private network serving the local user (1) pbx3*CLI>> Ext: 1 Progress Description: Calledequipment is non-ISDN. (2) ] pbx3*CLI> -- Channel 'DAHDI/1-1' receiving FAX '/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif' pbx3*CLI> -- Channel 'DAHDI/1-1' FAX session '7' started pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=5 < TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) < Message Type: CONNECT ACKNOWLEDGE (15) pbx3*CLI> Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0 q931.c:7785 post_handle_q931_message: Call 14288 enters state 10 (Active). Hold state: Idle pbx3*CLI> -- FAX handle 0: [ 104.899463 ], entering CLOSING state -- FAX handle 0: [ 104.899528 ], entering CLOSING state pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=9 < TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) < Message Type: DISCONNECT (69) < [08 02 82 90] pbx3*CLI> < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2) < Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ] Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0 -- Processing IE 8 (cs0, Cause) pbx3*CLI> -- Found active call: 0x2aaac80812d0 cref:14288 q931.c:7994 post_handle_q931_message: Call 14288 enters state 12 (Disconnect Indication). Hold state: Idle pbx3*CLI> -- Channel 0/1, span 1 got hangup request, cause 16 pbx3*CLI> [Jun 18 12:54:30] NOTICE[11967]: res_fax.c:980 generic_fax_exec: Channel 'DAHDI/1-1' did not return a frame; probably hung up. pbx3*CLI> -- Channel 'DAHDI/1-1' FAX session '7' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution: '204x196', transfer rate: '12000', remoteSID: '' pbx3*CLI> == Spawn extension (fax-rx, receive, 20) exited non-zero on 'DAHDI/1-1' pbx3*CLI> q931_hangup: other hangup pbx3*CLI> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle pbx3*CLI> q931.c:5126 q931_release: Call 14288 enters state 19 (Release Request). Hold state: Idle pbx3*CLI> > DL-DATA request pbx3*CLI>> Protocol Discriminator: Q.931 (8) len=9pbx3*CLI>> TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)pbx3*CLI>> Message Type: RELEASE (77)pbx3*CLI> TEI=0 Transmitting N(S)=2, window is open V(A)=2 K=7 pbx3*CLI> pbx3*CLI>> Protocol Discriminator: Q.931 (8) len=9 > TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator)pbx3*CLI>> Message Type: RELEASE (77)pbx3*CLI>> [08 02 81 90]pbx3*CLI>> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0Location: Private network serving the local user (1) pbx3*CLI>> Ext: 1 Cause: Normal Clearing (16), class = Normal Event(1) ] pbx3*CLI> -- Hungup 'DAHDI/1-1' pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=5 < TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) pbx3*CLI> < Message Type: RELEASE COMPLETE (90) pbx3*CLI> Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0 pbx3*CLI> q931.c:7861 post_handle_q931_message: Call 14288 enters state 0 (Null). Hold state: Idle pbx3*CLI> q931_hangup: other hangup NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle pbx3*CLI> NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle -- khalid -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110619/9c482a98/attachment.htm>
Hi Guys, I solved temporarely my issue by kind of tricking Asterisk, I used the following line instead of the old: exten => h,n,System('/usr/local/ bin/fax2mail -p -f "${FAXFILENOEXT}" --cid-number ${CALLERID(num)} --cid-name "${CALLERID(name)}" --dest-name "Sir/Madam"') now when it hang up I receive my fax through email, and let me tell you (first time using Free Fax from Asterisk) ReceiveFAX catch well faxes, just a couple tries but got them all, let's see with more faxes what will happen. On Sun, Jun 19, 2011 at 12:24 PM, khalid touati <khalidtouati at gmail.com>wrote:> > Hi all, > I am running to the following problem, when using the below dialplan to > receive fax, everything works perfect till this line > exten => receive,n,ReceiveFAX(${FAXFILE}): > and then the following line cannot be executed, it's like asterisk can't go > back to dialplan and continue, the good news is when i check what is > received in my fax folder i find that the file is a valid one (not corrupted > or empty), also when I use another way to execute fax2mail, it's working > perfect and sent right to my email (test was done with the same file > received by ReceiveFAX), so I belive the problem is just when transiting > from the line that call ReceiveFAX and the line that call fax2mail (but both > work not in order or separately), the debugging of PRI channel is below > dialplan (maybe i will need to turn on debugging in receiveFAX app as well), > please advise! > > I am using asterisk 1.6.2.11, FAX For Asterisk Components: > Applications: 1.6.2.0_1.2.1 > Digium FAX Driver: 1.6.2.0_1.2.1 (optimized for barcelona_64) > > [fax-rx] > exten => receive,1,NoOp(**** FAX RECEIVE ****) > exten => receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) > exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)}) > exten => > receive,n,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}.tif) > exten => > receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}) > exten => receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)}) > exten => receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)}) > exten => receive,n,NoOp(**** SETTING FAXOPT ****) > exten => receive,n,Set(FAXOPT(ecm)=yes) > exten => receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX) > exten => receive,n,Set(FAXOPT(localstationid)=15184893772) > exten => receive,n,Set(FAXOPT(maxrate)=14400) > exten => receive,n,Set(FAXOPT(minrate)=2400) > exten => receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)}) > exten => receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) > exten => receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) > exten => receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) > exten => receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) > exten => receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****) > exten => receive,n,ReceiveFAX(${FAXFILE}) > exten => receive,n,System('/usr/local/bin/fax2mail -p -f "${FAXFILENOEXT}" > --cid-number ${CALLERID(num)} --cid-name "${CALLERID(name)}" --dest-name > "Sir/Madam"') > > *debug:* > > pbx3*CLI> > -- Executing [receive at fax-rx:20] ReceiveFAX("DAHDI/1-1", > "/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif") in new stack > q931.c:5088 q931_connect: Call 14288 enters state 8 (Connect Request). > Hold state: Idle > pbx3*CLI> > pbx3*CLI> > > DL-DATA request > pbx3*CLI> > > Protocol Discriminator: Q.931 (8) len=14 > pbx3*CLI> > > TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) > pbx3*CLI> > > Message Type: CONNECT (7) > TEI=0 Transmitting N(S)=1, window is open V(A)=0 K=7 > pbx3*CLI> > pbx3*CLI> > > Protocol Discriminator: Q.931 (8) len=14 > pbx3*CLI> > > TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) > > Message Type: CONNECT (7) > pbx3*CLI> > > [18 03 a9 83 81] > > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 > Exclusive Dchan: 0 > > pbx3*CLI> > > ChanSel: As indicated in following octets > > Ext: 1 Coding: 0 Number Specified Channel Type: > 3 > pbx3*CLI> > > Ext: 1 Channel: 1 Type: CPE] > > [1e 02 81 82] > pbx3*CLI> > > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) > 0: 0 Location: Private network serving the local user (1) > pbx3*CLI> > > Ext: 1 Progress Description: Called > equipment is non-ISDN. (2) ] > pbx3*CLI> > -- Channel 'DAHDI/1-1' receiving FAX > '/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif' > pbx3*CLI> > -- Channel 'DAHDI/1-1' FAX session '7' started > pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=5 > < TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) > < Message Type: CONNECT ACKNOWLEDGE (15) > pbx3*CLI> > Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI > 0/0 > q931.c:7785 post_handle_q931_message: Call 14288 enters state 10 (Active). > Hold state: Idle > pbx3*CLI> > -- FAX handle 0: [ 104.899463 ], entering CLOSING state > -- FAX handle 0: [ 104.899528 ], entering CLOSING state > pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=9 > < TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) > < Message Type: DISCONNECT (69) > < [08 02 82 90] > pbx3*CLI> > < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 > Location: Public network serving the local user (2) > < Ext: 1 Cause: Normal Clearing (16), class = Normal > Event (1) ] > Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI > 0/0 > -- Processing IE 8 (cs0, Cause) > pbx3*CLI> > -- Found active call: 0x2aaac80812d0 cref:14288 > q931.c:7994 post_handle_q931_message: Call 14288 enters state 12 > (Disconnect Indication). Hold state: Idle > pbx3*CLI> > -- Channel 0/1, span 1 got hangup request, cause 16 > pbx3*CLI> > [Jun 18 12:54:30] NOTICE[11967]: res_fax.c:980 generic_fax_exec: Channel > 'DAHDI/1-1' did not return a frame; probably hung up. > pbx3*CLI> > -- Channel 'DAHDI/1-1' FAX session '7' is complete, result: 'SUCCESS' > (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution: '204x196', transfer > rate: '12000', remoteSID: '' > pbx3*CLI> > == Spawn extension (fax-rx, receive, 20) exited non-zero on 'DAHDI/1-1' > pbx3*CLI> > q931_hangup: other hangup > pbx3*CLI> > NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, > peerstate Disconnect Request, hold-state Idle > pbx3*CLI> > q931.c:5126 q931_release: Call 14288 enters state 19 (Release Request). > Hold state: Idle > pbx3*CLI> > DL-DATA request > pbx3*CLI> > > Protocol Discriminator: Q.931 (8) len=9 > pbx3*CLI> > > TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) > pbx3*CLI> > > Message Type: RELEASE (77) > pbx3*CLI> > TEI=0 Transmitting N(S)=2, window is open V(A)=2 K=7 > pbx3*CLI> > pbx3*CLI> > > Protocol Discriminator: Q.931 (8) len=9 > > TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) > pbx3*CLI> > > Message Type: RELEASE (77) > pbx3*CLI> > > [08 02 81 90] > pbx3*CLI> > > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 > Location: Private network serving the local user (1) > pbx3*CLI> > > Ext: 1 Cause: Normal Clearing (16), class = Normal > Event (1) ] > pbx3*CLI> > -- Hungup 'DAHDI/1-1' > pbx3*CLI> < Protocol Discriminator: Q.931 (8) len=5 > < TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) > pbx3*CLI> > < Message Type: RELEASE COMPLETE (90) > pbx3*CLI> > Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI > 0/0 > pbx3*CLI> > q931.c:7861 post_handle_q931_message: Call 14288 enters state 0 (Null). > Hold state: Idle > pbx3*CLI> > q931_hangup: other hangup > NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, > hold-state Idle > pbx3*CLI> > NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, > hold-state Idle > > > -- > khalid > >-- Abdullah -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110619/4c72d339/attachment.htm>
Bryant Zimmerman
2011-Jun-20 19:43 UTC
[asterisk-users] Problem with ReceiveFAX app from FFA
---------------------------------------- From: "Warren Selby" <wcselby at selbytech.com> Sent: Monday, June 20, 2011 3:00 PM To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] Problem with ReceiveFAX app from FFA On Mon, Jun 20, 2011 at 7:44 AM, Larry Moore <lmoore at starwon.com.au> wrote: <snip> I personally have considered this behaviour to possibly be a bug. Once a fax is sent, the sending fax machine typically hangs up the call - sending the call to the "h" extension. It's the same as if you are on an actual call that was connected using the Dial() application, and the other end hangs up - the next step is the 'h' extension, not to continue in the current dialplan. I don't see how this is a bug, unless you think the entire call-flow paradigm that currently exists in asterisk is a bug. Now, if you're not getting certain variables to pass into the 'h' extension, that you feel should indeed be passed into the 'h' extension, that may be considered a bug...but you would need to show us CLI output and existing dialplan for followup. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com ---------------------------------------- Waren I concur we use the "h" extension to log inbound faxes to a database and then we process them outside the asterisk platform. Our biggest issue with ReceiveFAX is about a 20% t.38 negotiation fail ratio. We then force fall back to t.30 for the next call from that number. We would like to see better success with t.38. Today our primary server has had 910 faxes of which 707 negotiated t.38, 44 have failed darn robo dialers, The rest failed the first attempt and came in T.30 on the second call. Thanks Bryant -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110620/74413aed/attachment.htm>
Bryant Zimmerman
2011-Jun-21 13:33 UTC
[asterisk-users] Problem with ReceiveFAX app from FFA
---------------------------------------- From: "khalid touati" <khalidtouati at gmail.com> Sent: Tuesday, June 21, 2011 9:12 AM To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] Problem with ReceiveFAX app from FFA Ok, for the variables, I can retrieve some of them like the caller number and so on (I would assume that all the variables that last for duration of call are there), but I still think that I sould not use the h extension to continue after ReceiveFAX use, it's like not a lot of people use FFA, moreover very few came accross such an issue which is fine. ---------------------------------------- Here is a receivefax example. Note this is not a complete example just a snip. You have to use the "h" extension if you really want to make it all work. Don't fight it just do it. This is a standard process very similar to how you need to handle returns from "Dial" comands. f/F option is a special patch written by Kevin @ digium and will not be in the distro unitl 10.x FAX-MASTER_CHK-FAILED(${CALLERID(number)) FAX-MASTER_DO-FAILED() are database storage macro that stores and get's failed fax attempts so I can force a roll back. Store the fax vars in a database on success and fail. This lets me notify the user for either case. [fax_inbound_efax] exten => PFax,1,Set(SIP_CODEC=ulaw) exten => PFax,n,Set(l_faxoptions=f) exten => PFax,n,Set(l_faxhasfailed=${FAX-MASTER_CHK-FAILED(${CALLERID(number)},${p_Ca llSrcTrunk})}) exten => PFax,n,GotoIf($[${l_faxhasfailed}>0]?audioonly:tryt38) exten => PFax,n(audioonly),Set(l_faxoptions=F) exten => PFax,n(tryt38),Answer() exten => PFax,n,Wait(2) exten => PFax,n,Set(l_faxFile_Base=${STRFTIME(,,%Y%m%d-%H%M)}_${RAND(1)}) exten => PFax,n,Set(l_faxFile_Path=/var/spool/fax_in/) exten => PFax,n,Set(l_faxFile_FullName=fax_${l_faxFile_Base}.tiff) exten => PFax,n,Set(l_faxFile=${l_faxFile_Path}${l_faxFile_FullName}) exten => PFax,n,ReceiveFAX(${l_faxFile},${l_faxoptions}) exten => h,1,NoOp(Do Fax Hangup) exten => h,n,Goto(Do-${FAXOPT(status)},1) exten => Do-SUCCESS,1,NoOp(Fax Success) exten => Do-SUCCESS,n,Goto(Do-Store,1) exten => Do-SUCCESS,n,NoOp(Return from System) exten => Do-FAILED,1,NoOp(Fax Failed) exten => Do-FAILED,n,GotoIf($[${l_faxoptions}=f]?DoLogFallback:DoNoFallback) exten => Do-FAILED,n(DoLogFallback),Set(FAX-MASTER_DO-FAILED()=${CALLERID(number)},${ p_CallSrcTrunk}) exten => Do-FAILED,n(DoNoFallback),Goto(Do-Store,1) exten => Do-Store,1,NoOp(Store Fax Data) exten => Do-Store,n,GotoIf($["${FAXOPT(rate)}"=""]?DoRate0:DoRate) exten => Do-Store,n(DoRate0),Set(l_storeRate=0) exten => Do-Store,n,Goto(DoDisplay) exten => Do-Store,n(DoRate),Set(l_storeRate=${FAXOPT(rate)}) exten => Do-Store,n(DoDisplay),NoOp(DT = ${STRFTIME(,,%Y-%m-%d %H:%M:%S)}) exten => Do-Store,n,NoOp(Fax Base = ${l_faxFile_Base}) exten => Do-Store,n,NoOp(Switch ID = ${gbl_switchid}) exten => Do-Store,n,NoOp(Account Code = ${gbl_actnumber}) exten => Do-Store,n,NoOp(Line Code = ${gbl_actlineid}) exten => Do-Store,n,NoOp(Caller ID Num = ${CALLERID(number)}) exten => Do-Store,n,NoOp(Caller ID Name = ${CALLERID(name)}) exten => Do-Store,n,NoOp(File Path = ${l_faxFile_Path}) exten => Do-Store,n,NoOp(File Name = ${l_faxFile_FullName}) exten => Do-Store,n,NoOp(opt emc = ${FAXOPT(ecm)}) exten => Do-Store,n,NoOp(opt filename = ${FAXOPT(filename)}) exten => Do-Store,n,NoOp(opt localstationid = ${FAXOPT(localstationid)}) exten => Do-Store,n,NoOp(opt headerinfo = ${FAXOPT(headerinfo)}) exten => Do-Store,n,NoOp(opt remotestationid = ${FAXOPT(remotestationid)}) exten => Do-Store,n,NoOp(opt maxrate = ${FAXOPT(maxrate)}) exten => Do-Store,n,NoOp(opt minrate = ${FAXOPT(minrate)}) exten => Do-Store,n,NoOp(opt rate = ${l_storeRate}) exten => Do-Store,n,NoOp(opt pages = ${FAXOPT(pages)}) exten => Do-Store,n,NoOp(opt resolution = ${FAXOPT(resolution)}) exten => Do-Store,n,NoOp(opt error = ${FAXOPT(error)}) exten => Do-Store,n,NoOp(opt status = ${FAXOPT(status)}) exten => Do-Store,n,NoOp(opt statusstr = ${FAXOPT(statusstr)}) exten => Do-Store,n,"Run some kind of macro or storage/email script here" Good luck Bryant -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110621/aea47ffe/attachment.htm>
Possibly Parallel Threads
- Fax for Asterisk, capable of receiving from website but not from fax machine !!
- Sending and receiving fax with Digium FFA
- Free FaxForAsterisk ReceiveFAX not working
- ReceiveFax for multiple page (asterisk 13.0.1)
- Dialplan execution stops on app call even with TryExec (Am I missing something simple?)