On Tue, 20 Jan 2009, Danny Nicholas wrote: > It seems to me that $FAXFILE lives in the 6403 context, not the n, so it > would still be useable. If this isn't the case, I'd call an AGI script > in the "I" context.
$FAXFILE is a channel variable. It is "useable" in any context, extension and priority the channel visits. The example does not show what the context is. 6403 is the extension. n is the priority (but we don't know its value). The error is not "invalid," it is "auto fallthrough." A "show dialplan" may help. > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Ken D'Ambrosio > Sent: Tuesday, January 20, 2009 4:03 PM > To: [email protected] > Subject: [asterisk-users] extensions.conf -- what to do when command > throwserrors? > > Hi, all. I've got app_rxfax going and nicely receiving a fax, which I > then throw to a script, and have it convert it to a PDF and mail it. > Works great... a lot of the time. But a fair bit of the time, rxfax > throws errors, and extensions.conf seems never to invoke my script. Here > are the pertinent lines: > > exten => _6403,n,rxfax(${FAXFILE}) > exten => _6403,n,System(/usr/local/bin/fax-sender.py ${FAXFILE}) > > Now the problem here is that the .TIF file is received just fine, so, > errors or no, I'd like to get to the script. Instead, I get this: > > ... > [5410] /tmp/spandsp/agx-ast-addons/trunk/app_rxfax.c: Channel T30 DONE < 0. > [5410] /tmp/spandsp/agx-ast-addons/trunk/app_rxfax.c: Channel T30 DONE < 0. > [5410] logger.c: == Auto fallthrough, channel 'Zap/4-1' status is 'UNKNOWN' > [5410] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/4-1 > [5410] chan_zap.c: Not yet hungup... Calling hangup once with icause, and > clearing call > [5410] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/4-1 > [5410] logger.c: -- Hungup 'Zap/4-1' > ... > > In an ideal world, getting rid of the "Channel T30 DONE <0" errors would > be great, but I'll take run-the-script-when-it's-done-regardless, instead. > Note, however, that I can't just call it from extension i, because I need > to pass it information, and don't want it executing on errant voice calls. > > Suggestions? > > Thanks! > > -Ken > > > _______________________________________________ > -- 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 > > > _______________________________________________ > -- 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 > Thanks in advance, ------------------------------------------------------------------------ Steve Edwards [email protected] Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 _______________________________________________ -- 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
