t35.c File Reference

#include <inttypes.h>
#include <ctype.h>
#include <string.h>
#include "spandsp/telephony.h"
#include "spandsp/bit_operations.h"
#include "spandsp/t35.h"

Classes

struct  model_data_t
struct  nsf_data_t

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:
msg The NSF message.
len The length of the NSF message.
country A 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.
vendor A 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.
model A 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 t35_country_codes.


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().


Generated on Tue Oct 7 20:25:52 2008 for spandsp by  doxygen 1.5.6