Activate fine resolution for 'receivefax' command as default
This commit is contained in:
parent
747b558087
commit
73edae5356
|
@ -221,7 +221,8 @@ The reception of the fax message is started using 'receivefax' capi command:
|
|||
'options' - fax options, optional
|
||||
'k' - keep fax document in case of errors (by default document is removed
|
||||
if fax transmission was not completed with success).
|
||||
'f' - allow Fine resolution
|
||||
'f' - allow Fine resolution (default)
|
||||
'F' - do not use Fine resolution
|
||||
'u' - activate support for Super/Ultra fine resolutions and paper formats
|
||||
'j' - enable JPEG coding
|
||||
'b' - enable T.43 coding
|
||||
|
|
|
@ -2448,7 +2448,7 @@ static int pbx_capi_receive_fax(struct ast_channel *c, char *data)
|
|||
char *filename, *stationid, *headline, *options;
|
||||
B3_PROTO_FAXG3 b3conf;
|
||||
char buffer[CAPI_MAX_STRING];
|
||||
unsigned short b3_protocol_options = 0;
|
||||
unsigned short b3_protocol_options = 0x0001;
|
||||
int extended_resolution = 0;
|
||||
|
||||
if ((i == NULL) || ((i->channeltype == CAPI_CHANNELTYPE_NULL) && (i->line_plci == NULL))) {
|
||||
|
@ -2491,6 +2491,12 @@ static int pbx_capi_receive_fax(struct ast_channel *c, char *data)
|
|||
VERBOSE_PREFIX_3 CC_MESSAGE_NAME " receivefax: Allow Fine resolution\n");
|
||||
b3_protocol_options |= 0x0001;
|
||||
break;
|
||||
case 'F': /* do not use Fine resolution */
|
||||
cc_verbose(3, 1,
|
||||
VERBOSE_PREFIX_3 CC_MESSAGE_NAME " receivefax: Allow Fine resolution\n");
|
||||
if (extended_resolution == 0)
|
||||
b3_protocol_options &= ~0x0001;
|
||||
break;
|
||||
case 'u': /* use Fine resolution */
|
||||
cc_verbose(3, 1,
|
||||
VERBOSE_PREFIX_3 CC_MESSAGE_NAME " receivefax: Allow Super/Ultra fine resolution\n");
|
||||
|
|
Loading…
Reference in New Issue