[Asterisk-Users] spandsp / txfax exit codes / logging?
Tomasz Chmielewski
mangoo at wpkg.org
Thu Oct 27 15:26:30 MST 2005
Doug Lytle schrieb:
(...)
>> Is it possible to somehow read spandsp / txfax exit codes?
>>
>>
>>
>
> Run Asterisk in debug mode [asterisk -d] and use the -debug option on
> the spandsp command line. Mine is as follows:
>
> exten => s,3,rxfax(${FAXFILE}.tif,DEBUG)
>
> After I get the debug output, I use cat and grep to break out the
> app_rxfax.c to a fax log:
>
> [root at asterisk asterisk]# cat full|grep -i app_rxfax.c >faxlog
>
> With the output below:
>
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c:
> ==============================================================================
>
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c: Fax successfully received.
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c: Remote station id: 269xxxxxxx
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c: Local station id:
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c: Pages transferred: 5
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c: Image resolution: 7700 x 7700
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c: Transfer Rate: 9600
> Oct 27 15:36:10 DEBUG[21623] app_rxfax.c:
> ==============================================================================
>
but the debug mode means extremely big logs :))
anyone knows how does the log look like for a successful fax
transmission (so, sending fax from asterisk)?
I'm curious, as I have no problems with incoming faxes, but the outgoing
doesn't seem to work well for some reason.
--
Tomek
http://wpkg.org
WPKG - software deployment and upgrades with Samba
More information about the asterisk-users
mailing list