spandsp 0.0.6
t30_logging.h File Reference

Go to the source code of this file.

Functions

const char * t30_frametype (uint8_t x)
 Return a text name for a T.30 frame type. More...
 
void t30_decode_dis_dtc_dcs (t30_state_t *s, const uint8_t *dis, int len)
 Decode a DIS, DTC or DCS frame, and log the contents. More...
 
const char * t30_completion_code_to_str (int result)
 Convert a phase E completion code to a short text description. More...
 

Function Documentation

◆ t30_completion_code_to_str()

const char * t30_completion_code_to_str ( int  result)

Convert a phase E completion code to a short text description.

Convert a phase E completion code to a short text description.

Parameters
resultThe result code.
Returns
A pointer to the description.

◆ t30_decode_dis_dtc_dcs()

void t30_decode_dis_dtc_dcs ( t30_state_t s,
const uint8_t *  dis,
int  len 
)

Decode a DIS, DTC or DCS frame, and log the contents.

Decode a DIS, DTC or DCS frame, and log the contents.

Parameters
sThe T.30 context.
disA pointer to the frame to be decoded.
lenThe length of the frame.

◆ t30_frametype()

const char * t30_frametype ( uint8_t  x)

Return a text name for a T.30 frame type.

Return a text name for a T.30 frame type.

Parameters
xThe frametype octet.
Returns
A pointer to the text name for the frame type. If the frame type is not value, the string "???" is returned.

References T30_CFR, T30_CIA, T30_CIG, T30_CRP, T30_CSA, T30_CSI, T30_CTC, T30_CTR, T30_DCN, T30_DCS, T30_DEC, T30_DER, T30_DES, T30_DIS, T30_DNK, T30_DTC, T30_DTR, T30_EOM, T30_EOP, T30_EOR, T30_EOS, T30_ERR, T30_FDM, T30_FNV, T30_FTT, T30_IRA, T30_ISP, T30_MCF, T30_MPS, T30_NSC, T30_NSF, T30_NSS, T30_NULL, T30_PID, T30_PIN, T30_PIP, T30_PPR, T30_PPS, T30_PRI_EOM, T30_PRI_EOP, T30_PRI_MPS, T30_PSA, T30_PSS, T30_PWD, T30_RK, T30_RNR, T30_RR, T30_RTN, T30_RTP, T30_SEP, T30_SID, T30_SUB, T30_TK, T30_TNR, T30_TR, T30_TSA, T30_TSI, T4_FCD, and T4_RCP.