Пробовал, не получается. Т.е. вызов на локальный контекст идёт, receivefax стартует, а sendfax не запускается:
*CLI> originate Local/555@internal application sendfax /home/eliduc/tiff/74952232792-4996115246-0121124046.tif
-- Executing [555@internal:1] Set("Local/555@internal-c0b9;2", "USERID=555") in new stack
*CLI> -- Executing [555@internal:2] Goto("Local/555@internal-c0b9;2", "recvfax,s,1") in new stack
-- Goto (recvfax,s,1)
-- Executing [s@recvfax:1] Answer("Local/555@internal-c0b9;2", "") in new stack
-- Launching sendfax(/home/eliduc/tiff/74952232792-4996115246-0121124046.tif) on Local/555@internal-c0b9;1
-- Executing [s@recvfax:2] Wait("Local/555@internal-c0b9;2", "3") in new stack
-- Executing [s@recvfax:3] Goto("Local/555@internal-c0b9;2", "fax,1") in new stack
-- Goto (recvfax,fax,1)
-- Executing [fax@recvfax:1] Set("Local/555@internal-c0b9;2", "TIMESTAMP=0129165618") in new stack
-- Executing [fax@recvfax:2] Set("Local/555@internal-c0b9;2", "TIFFILE=/tmp/555--0129165618.tif") in new stack
-- Executing [fax@recvfax:3] ReceiveFAX("Local/555@internal-c0b9;2", "/tmp/555--0129165618.tif") in new stack
[Jan 29 16:01:15] WARNING[4091]: app_fax.c:526 transmit_audio: It looks like we hung. Aborting.
[Jan 29 16:01:15] WARNING[4091]: app_fax.c:224 phase_e_handler: Error transmitting fax. result=49: The call dropped prematurely.
[Jan 29 16:01:15] WARNING[4091]: app_fax.c:835 transmit: Transmission error
[Jan 29 16:01:15] WARNING[4090]: app_fax.c:224 phase_e_handler: Error transmitting fax. result=49: The call dropped prematurely.
[Jan 29 16:01:15] WARNING[4090]: app_fax.c:835 transmit: Transmission error
== Spawn extension (recvfax, fax, 3) exited non-zero on 'Local/555@internal-c0b9;2'
-- Executing [h@recvfax:1] NoOp("Local/555@internal-c0b9;2", "FAXSTATUS=FAILED") in new stack
-- Executing [h@recvfax:2] NoOp("Local/555@internal-c0b9;2", "FAXERROR=The call dropped prematurely") in new stack
-- Executing [h@recvfax:3] NoOp("Local/555@internal-c0b9;2", "REMOTESTATIONID=") in new stack
-- Executing [h@recvfax:4] NoOp("Local/555@internal-c0b9;2", "FAXPAGES=") in new stack
-- Executing [h@recvfax:5] NoOp("Local/555@internal-c0b9;2", "FAXBITRATE=") in new stack
-- Executing [h@recvfax:6] NoOp("Local/555@internal-c0b9;2", "FAXRESOLUTION=") in new stack
-- Executing [h@recvfax:7] GotoIf("Local/555@internal-c0b9;2", "1?finis") in new stack
-- Goto (recvfax,h,8)
-- Executing [h@recvfax:8] NoOp("Local/555@internal-c0b9;2", "") in new stack
zzuz:
.call файл спасет!
call файл, как я понимаю, равнозначен тому же запуску с консоли. Результат см. выше.