int smdc_tx_config_v34(struct smdc_tx_config_v34_parms *configp)
typedef struct smdc_tx_config_v34_parms {
tSMChannelId channel; /* in */
enum kSMDCV34Mode {
kSMDCV34ModeOriginating,
kSMDCV34ModeAnswering,
} mode; /* in */
enum kSMDCV34Polling {
kSMDCV34ModeNormal,
kSMDCV34ModePolling,
} polling; /* in */
enum kSMDCV34Duplex duplex; /* in */
tSM_INT min_bitrate; /* in */
tSM_INT max_bitrate; /* in */
} SMDC_TX_CONFIG_V34_PARMS;
Configures a channel's output for data communications using the V.34 protocol. The V.34 modem operates in a duplex manner (even when duplex is kSMDCV34HalfDuplex), so channel must be a full-duplex channel and its input half must also be configured using smdc_rx_config_v34().
The channel output is reserved for this data communications configuration until smdc_line_status_v34() returns the status kSMDCLinkStatusNotConnected. No other activity can take place on the channel during this time.
While the output half of a channel is configured for data communications, a write event associated with this channel using sm_channel_set_event() will be set while the channel is ready to accept more data or there may be a status change to report. See smdc_tx_control() for details of how this works. When an application discovers that this event is set, it may check the status using smdc_tx_status(). However, an application may simply try smdc_tx_data() immediately and check status when it refuses to accept data.
Requires the module v34fdx to have been downloaded if configuring for full duplex operation.
Requires the module v34 to have been downloaded if configuring for half duplex operation.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody data communications API.