[asterisk-users] extensions.conf -- what to do when command throws errors?

Ken D'Ambrosio ken at jots.org
Tue Jan 20 16:02:44 CST 2009


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




More information about the asterisk-users mailing list