I'm compiling from downloded source:
http://soft-switch.org/downloads/spandsp/spandsp-0.0.3pre26.tgz
and
http://soft-switch.org/downloads/snapshots/spandsp/test-apps-asterisk-1.4/*
on a slackware 11 system with asterisk 1.4 beta3
Note in the message below I've added information about another step
taken in debugging the problem by modifying app_txfax.c and recompiling.
It finally gave me a log entry and exited. The console noted that it
exited with a non zero value.
Thanks
Thanks for the response!!!
I enabled debuging in the menuselect configuration for compiling
asterisk 1.4 beta3. In logging.conf enabled debug loggin to the
/var/log/asterisk/debug file and to the console. Restarted (not just
reload) asterisk and there is plenty of general debugging info in the
debug log file. I also am calling the fax apps with debug argument as
follows
exten => fax,n,rxfax(${FAXFILE}|debug)
and
exten => fax,n,rxfax(${FAXFILE}|debug)
Looking at the code in app_rxfax.c and app_txfax.c there should be
plenty of information in the debug log on failure or success. However
I haven't found any debug log information that should be generated. It
is like it just does a return 0 at the beginning of the application.
I found some documentation on the system() call that says that the
dial plan will jump to n+101 priority if the return value is not 0.
So I setup the dial plan:
[outgoingfax]
exten => out_fax,1,Wait(2)
exten => out_fax,2,txfax(${TXFAX_NAME}|caller|debug)
exten => out_fax,3,system(echo sent fax file ${TXFAX_NAME} >
/tmp/fax.log )
exten => out_fax,4,Hangup
exten => out_fax,103,system(echo failed fax file ${TXFAX_NAME} >
/tmp/fax.log )
exten => h,1,Hangup()
No /tmp/fax.log file created at all.
asterisk -rdddddddvvvvvvvvvvvvvvvvv
-- Executing [EMAIL PROTECTED]:1] Wait("SIP/inettrunk-081e8100",
"2") in new stack
-- Executing [EMAIL PROTECTED]:2] TxFAX("SIP/inettrunk-081e8100",
"/tmp/test.tif") in new stack
[Nov 29 13:26:13] DEBUG[28613]: pbx_spool.c:391 scan_service: Delaying
retry since we're currently running
'[EMAIL PROTECTED]@ol/asterisk/outgoing/fax.call'
[Nov 29 13:26:24] DEBUG[28613]: pbx_spool.c:391 scan_service: Delaying
retry since we're currently running
'/var/spool/asterisk/outgoing/fax.call'
[Nov 29 13:26:35] DEBUG[28613]: pbx_spool.c:391 scan_service: Delaying
retry since we're currently running 'h�,[EMAIL PROTECTED]/asterisk/outgoing/fax.call'
From this it looks like it just gets stuck in the TxFAX app.
I've modified app_txfax.c slightly to see if the app can run and return
with the following code near the beginning in txfax_exec
code:
uint8_t __buf[sizeof(uint16_t)*MAX_BLOCK_SIZE + 2*AST_FRIENDLY_OFFSET];
uint8_t *buf = __buf + AST_FRIENDLY_OFFSET;
ast_log(LOG_WARNING, "Made it in and going out. Giving up.\n");
return -1;
if (chan == NULL)
code end
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users