No fax machine on the other side

Community-based Support for users of Free Fax For Asterisk

No fax machine on the other side

Postby goraht » Thu Oct 24, 2013 4:25 am

Hello. I'm writing my own scripts for fax handling in perl. fax2email and email2fax works very well, but i have problem with simple error handling: what if there is no fax machine on the other side and recipient answers the call?

This is listing from cli:
Code: Select all
== Manager 'fax' logged on from 127.0.0.1
    -- Requested transfer capability: 0x00 - SPEECH
    -- Executing [send@fax-tx:1] NoOp("DAHDI/i1/ZXXXXXXXX-15", "**** SENDING FAX ****") in new stack
    -- Executing [send@fax-tx:2] Wait("DAHDI/i1/ZXXXXXXXX-15", "6") in new stack
  == Manager 'fax' logged off from 127.0.0.1
    -- Span 1: Channel 0/1 got hangup request, cause 16
  == Spawn extension (fax-tx, send, 2) exited non-zero on 'DAHDI/i1/ZXXXXXXXX-15'
[Oct 24 11:37:18] ERROR[9809][C-00000014]: res_fax.c:3911 acf_faxopt_read: channel 'DAHDI/i1/ZXXXXXXXX-15' can't read FAXOPT(status) because it has never been written.
    -- Executing [h@fax-tx:11] NoOp("DAHDI/i1/ZXXXXXXXX-15", "FAXOPT(status) : ") in new stack
[Oct 24 11:37:18] ERROR[9809][C-00000014]: res_fax.c:3911 acf_faxopt_read: channel 'DAHDI/i1/ZXXXXXXXX-15' can't read FAXOPT(statusstr) because it has never been written.
    -- Executing [h@fax-tx:12] NoOp("DAHDI/i1/ZXXXXXXXX-15", "FAXOPT(statusstr) : ") in new stack
[Oct 24 11:37:18] ERROR[9809][C-00000014]: res_fax.c:3911 acf_faxopt_read: channel 'DAHDI/i1/ZXXXXXXXX-15' can't read FAXOPT(error) because it has never been written.
    -- Executing [h@fax-tx:13] NoOp("DAHDI/i1/ZXXXXXXXX-15", "FAXOPT(error) : ") in new stack
[Oct 24 11:37:18] ERROR[9809][C-00000014]: res_fax.c:3911 acf_faxopt_read: channel 'DAHDI/i1/ZXXXXXXXX-15' can't read FAXOPT(error) because it has never been written.
    -- Executing [h@fax-tx:14] System("DAHDI/i1/ZXXXXXXXX-15", "/var/lib/asterisk/agi-bin/email2fax_confirm.pl <variables>") in new stack
    -- Hungup 'DAHDI/i1/ZXXXXXXXX-15'

Exactly this is my problem:
can't read FAXOPT(error) because it has never been written


How to recognize this kind of situation?
goraht
Newsterisk
 
Posts: 5
Joined: Tue Oct 02, 2012 8:41 am

Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest