spandsp
0.0.6
Main Page
Related Pages
Classes
Files
File List
File Members
t35.h
Go to the documentation of this file.
1
/*
2
* SpanDSP - a series of DSP components for telephony
3
*
4
* t35.h - ITU T.35 FAX non-standard facility processing.
5
*
6
* Written by Steve Underwood <steveu@coppice.org>
7
*
8
* Copyright (C) 2003 Steve Underwood
9
*
10
* All rights reserved.
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 2.1,
14
* as published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public
22
* License along with this program; if not, write to the Free Software
23
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
*/
25
26
/*! \file */
27
28
#if !defined(_SPANDSP_T35_H_)
29
#define _SPANDSP_T35_H_
30
31
/*! \page t35_page T.35 manufacturer specific processing for FAX machines
32
\section t35_page_sec_1 What does it do?
33
???.
34
35
\section t35_page_sec_2 How does it work?
36
???.
37
*/
38
39
/*! A table of the country names associated with each possible value of the T.35 country code
40
selector octet. */
41
extern
const
char
*
t35_country_codes
[256];
42
43
#if defined(__cplusplus)
44
extern
"C"
45
{
46
#endif
47
48
/*! Decode an NSF field to try to determine the make and model of the
49
remote machine.
50
\brief Decode an NSF field.
51
\param msg The NSF message.
52
\param len The length of the NSF message.
53
\param country A pointer which will be pointed to the identified country of origin.
54
If a NULL pointer is given, the country of origin will not be returned.
55
If the country of origin is not identified, NULL will be returned.
56
\param vendor A pointer which will be pointed to the identified vendor.
57
If a NULL pointer is given, the vendor ID will not be returned.
58
If the vendor is not identified, NULL will be returned.
59
\param model A pointer which will be pointed to the identified model.
60
If a NULL pointer is given, the model will not be returned.
61
If the model is not identified, NULL will be returned.
62
\return TRUE if the machine was identified, otherwise FALSE.
63
*/
64
SPAN_DECLARE(
int
)
t35_decode
(const uint8_t *msg,
int
len, const
char
**country, const
char
**vendor, const
char
**model);
65
66
#if defined(__cplusplus)
67
}
68
#endif
69
70
#endif
71
/*- End of file ------------------------------------------------------------*/
t35_country_codes
const char * t35_country_codes[256]
Definition:
t35.c:95
t35_decode
int t35_decode(const uint8_t *msg, int len, const char **country, const char **vendor, const char **model)
Decode an NSF field.
Definition:
t35.c:809
src
spandsp
t35.h
Generated on Sat Sep 13 2014 18:16:14 for spandsp by
1.8.7