spandsp 0.0.6

t35.h File Reference

Go to the source code of this file.

Functions

int t35_decode (const uint8_t *msg, int len, const char **country, const char **vendor, const char **model)
 Decode an NSF field.

Variables

const char * t35_country_codes [256]

Detailed Description


Function Documentation

int t35_decode ( const uint8_t *  msg,
int  len,
const char **  country,
const char **  vendor,
const char **  model 
)

Decode an NSF field.

Decode an NSF field to try to determine the make and model of the remote machine.

Parameters:
msgThe NSF message.
lenThe length of the NSF message.
countryA pointer which will be pointed to the identified country of origin. If a NULL pointer is given, the country of origin will not be returned. If the country of origin is not identified, NULL will be returned.
vendorA pointer which will be pointed to the identified vendor. If a NULL pointer is given, the vendor ID will not be returned. If the vendor is not identified, NULL will be returned.
modelA pointer which will be pointed to the identified model. If a NULL pointer is given, the model will not be returned. If the model is not identified, NULL will be returned.
Returns:
TRUE if the machine was identified, otherwise FALSE.

References nsf_data_t::inverse_station_id_order, nsf_data_t::known_models, model_data_t::model_id, model_data_t::model_id_size, model_data_t::model_name, t35_country_codes, nsf_data_t::vendor_id, nsf_data_t::vendor_id_len, and nsf_data_t::vendor_name.


Variable Documentation

const char* t35_country_codes[256]

A table of the country names associated with each possible value of the T.35 country code selector octet.

Referenced by t35_decode().