2001-03-06 17:32:03 +00:00
|
|
|
/*
|
2005-08-30 18:32:10 +00:00
|
|
|
* Asterisk -- An open source telephony toolkit.
|
2001-03-06 17:32:03 +00:00
|
|
|
*
|
2005-01-21 07:06:25 +00:00
|
|
|
* Copyright (C) 1999 - 2005, Digium, Inc.
|
2001-03-06 17:32:03 +00:00
|
|
|
*
|
2004-10-02 00:58:31 +00:00
|
|
|
* Mark Spencer <markster@digium.com>
|
2001-03-06 17:32:03 +00:00
|
|
|
*
|
2005-08-30 18:32:10 +00:00
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* any of the maintainers of this project for assistance;
|
|
|
|
* the project provides a web site, mailing lists and IRC
|
|
|
|
* channels for your use.
|
2001-03-06 17:32:03 +00:00
|
|
|
*
|
2005-08-30 18:32:10 +00:00
|
|
|
* This program is free software, distributed under the terms of
|
|
|
|
* the GNU General Public License Version 2. See the LICENSE file
|
|
|
|
* at the top of the source tree.
|
|
|
|
*/
|
|
|
|
|
2005-10-24 20:12:06 +00:00
|
|
|
/*! \file
|
2005-11-06 15:09:47 +00:00
|
|
|
* \brief CallerID (and other GR30) management and generation
|
2001-03-06 17:32:03 +00:00
|
|
|
* Includes code and algorithms from the Zapata library.
|
2006-03-29 04:42:07 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \page CID Caller ID names and numbers
|
|
|
|
*
|
2005-11-06 15:09:47 +00:00
|
|
|
* Caller ID names are currently 8 bit characters, propably
|
|
|
|
* ISO8859-1, depending on what your channel drivers handle.
|
2006-03-29 04:42:07 +00:00
|
|
|
*
|
|
|
|
* IAX2 and SIP caller ID names are UTF8
|
|
|
|
* On ISDN Caller ID names are 7 bit, Almost ASCII
|
|
|
|
* (See http://www.zytrax.com/tech/ia5.html )
|
|
|
|
*
|
2005-11-06 15:09:47 +00:00
|
|
|
* \note Asterisk does not currently support SIP utf8 caller ID names or caller ID's.
|
|
|
|
*
|
|
|
|
* \par See also
|
|
|
|
* \arg \ref callerid.c
|
2006-03-29 04:42:07 +00:00
|
|
|
* \arg \ref callerid.h
|
2005-11-06 15:09:47 +00:00
|
|
|
* \arg \ref Def_CallerPres
|
2001-03-06 17:32:03 +00:00
|
|
|
*/
|
|
|
|
|
2005-08-30 18:32:10 +00:00
|
|
|
#ifndef _ASTERISK_CALLERID_H
|
|
|
|
#define _ASTERISK_CALLERID_H
|
2001-03-06 17:32:03 +00:00
|
|
|
|
|
|
|
#define MAX_CALLERID_SIZE 32000
|
|
|
|
|
|
|
|
#define CID_PRIVATE_NAME (1 << 0)
|
|
|
|
#define CID_PRIVATE_NUMBER (1 << 1)
|
|
|
|
#define CID_UNKNOWN_NAME (1 << 2)
|
|
|
|
#define CID_UNKNOWN_NUMBER (1 << 3)
|
|
|
|
|
2004-09-19 16:17:18 +00:00
|
|
|
#define CID_SIG_BELL 1
|
|
|
|
#define CID_SIG_V23 2
|
|
|
|
#define CID_SIG_DTMF 3
|
2006-01-06 20:03:20 +00:00
|
|
|
#define CID_SIG_V23_JP 4
|
2006-02-10 21:50:56 +00:00
|
|
|
#define CID_SIG_SMDI 5
|
2004-09-19 16:17:18 +00:00
|
|
|
|
|
|
|
#define CID_START_RING 1
|
|
|
|
#define CID_START_POLARITY 2
|
|
|
|
|
|
|
|
|
2002-11-29 16:43:28 +00:00
|
|
|
#define AST_LIN2X(a) ((codec == AST_FORMAT_ALAW) ? (AST_LIN2A(a)) : (AST_LIN2MU(a)))
|
|
|
|
#define AST_XLAW(a) ((codec == AST_FORMAT_ALAW) ? (AST_ALAW(a)) : (AST_MULAW(a)))
|
|
|
|
|
|
|
|
|
2001-03-06 17:32:03 +00:00
|
|
|
struct callerid_state;
|
|
|
|
typedef struct callerid_state CIDSTATE;
|
|
|
|
|
2005-11-06 15:09:47 +00:00
|
|
|
/*! \brief CallerID Initialization
|
|
|
|
* \par
|
2001-12-20 15:21:47 +00:00
|
|
|
* Initializes the callerid system. Mostly stuff for inverse FFT
|
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
void callerid_init(void);
|
2001-03-06 17:32:03 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
/*! \brief Generates a CallerID FSK stream in ulaw format suitable for transmission.
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param buf Buffer to use. If "buf" is supplied, it will use that buffer instead of allocating its own. "buf" must be at least 32000 bytes in size of you want to be sure you don't have an overrun.
|
|
|
|
* \param number Use NULL for no number or "P" for "private"
|
|
|
|
* \param name name to be used
|
2005-10-26 23:11:36 +00:00
|
|
|
* \param flags passed flags
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param callwaiting callwaiting flag
|
2002-11-29 16:43:28 +00:00
|
|
|
* \param codec -- either AST_FORMAT_ULAW or AST_FORMAT_ALAW
|
2006-03-31 10:06:42 +00:00
|
|
|
* This function creates a stream of callerid (a callerid spill) data in ulaw format.
|
2005-11-06 15:09:47 +00:00
|
|
|
* \return It returns the size
|
2001-12-20 15:21:47 +00:00
|
|
|
* (in bytes) of the data (if it returns a size of 0, there is probably an error)
|
|
|
|
*/
|
2006-06-06 01:22:47 +00:00
|
|
|
int callerid_generate(unsigned char *buf, const char *number, const char *name, int flags, int callwaiting, int codec);
|
2001-03-06 17:32:03 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
/*! \brief Create a callerID state machine
|
2004-09-19 16:17:18 +00:00
|
|
|
* \param cid_signalling Type of signalling in use
|
|
|
|
*
|
2001-12-20 15:21:47 +00:00
|
|
|
* This function returns a malloc'd instance of the callerid_state data structure.
|
2005-11-06 15:09:47 +00:00
|
|
|
* \return Returns a pointer to a malloc'd callerid_state structure, or NULL on error.
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
struct callerid_state *callerid_new(int cid_signalling);
|
2001-03-06 17:32:03 +00:00
|
|
|
|
2005-11-06 15:09:47 +00:00
|
|
|
/*! \brief Read samples into the state machine.
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param cid Which state machine to act upon
|
2005-10-26 23:11:36 +00:00
|
|
|
* \param ubuf containing your samples
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param samples number of samples contained within the buffer.
|
2002-11-29 16:43:28 +00:00
|
|
|
* \param codec which codec (AST_FORMAT_ALAW or AST_FORMAT_ULAW)
|
2001-12-20 15:21:47 +00:00
|
|
|
*
|
|
|
|
* Send received audio to the Caller*ID demodulator.
|
2006-03-31 10:06:42 +00:00
|
|
|
* \return Returns -1 on error, 0 for "needs more samples",
|
2001-12-20 15:21:47 +00:00
|
|
|
* and 1 if the CallerID spill reception is complete.
|
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int samples, int codec);
|
2001-12-20 15:21:47 +00:00
|
|
|
|
2006-01-06 20:03:20 +00:00
|
|
|
/*! \brief Read samples into the state machine.
|
|
|
|
* \param cid Which state machine to act upon
|
|
|
|
* \param ubuf containing your samples
|
|
|
|
* \param samples number of samples contained within the buffer.
|
|
|
|
* \param codec which codec (AST_FORMAT_ALAW or AST_FORMAT_ULAW)
|
|
|
|
*
|
|
|
|
* Send received audio to the Caller*ID demodulator (for japanese style lines).
|
2006-03-31 10:06:42 +00:00
|
|
|
* \return Returns -1 on error, 0 for "needs more samples",
|
2006-01-06 20:03:20 +00:00
|
|
|
* and 1 if the CallerID spill reception is complete.
|
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int samples, int codec);
|
2006-01-06 20:03:20 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
/*! \brief Extract info out of callerID state machine. Flags are listed above
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param cid Callerid state machine to act upon
|
|
|
|
* \param number Pass the address of a pointer-to-char (will contain the phone number)
|
|
|
|
* \param name Pass the address of a pointer-to-char (will contain the name)
|
|
|
|
* \param flags Pass the address of an int variable(will contain the various callerid flags)
|
|
|
|
*
|
|
|
|
* This function extracts a callerid string out of a callerid_state state machine.
|
|
|
|
* If no number is found, *number will be set to NULL. Likewise for the name.
|
|
|
|
* Flags can contain any of the following:
|
2006-03-31 10:06:42 +00:00
|
|
|
*
|
2005-11-06 15:09:47 +00:00
|
|
|
* \return Returns nothing.
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2001-03-06 17:32:03 +00:00
|
|
|
void callerid_get(struct callerid_state *cid, char **number, char **name, int *flags);
|
|
|
|
|
2005-01-15 23:48:12 +00:00
|
|
|
/*! Get and parse DTMF-based callerid */
|
2004-09-19 16:17:18 +00:00
|
|
|
/*!
|
|
|
|
* \param cidstring The actual transmitted string.
|
|
|
|
* \param number The cid number is returned here.
|
|
|
|
* \param flags The cid flags are returned here.
|
|
|
|
* This function parses DTMF callerid.
|
|
|
|
*/
|
|
|
|
void callerid_get_dtmf(char *cidstring, char *number, int *flags);
|
|
|
|
|
2005-11-06 15:09:47 +00:00
|
|
|
/*! \brief Free a callerID state
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param cid This is the callerid_state state machine to free
|
|
|
|
* This function frees callerid_state cid.
|
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
void callerid_free(struct callerid_state *cid);
|
2001-03-06 17:32:03 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
/*! \brief Generate Caller-ID spill from the "callerid" field of asterisk (in e-mail address like format)
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param buf buffer for output samples. See callerid_generate() for details regarding buffer.
|
2005-10-26 23:11:36 +00:00
|
|
|
* \param name Caller-ID Name
|
|
|
|
* \param number Caller-ID Number
|
2002-11-29 16:43:28 +00:00
|
|
|
* \param codec Asterisk codec (either AST_FORMAT_ALAW or AST_FORMAT_ULAW)
|
2001-12-20 15:21:47 +00:00
|
|
|
*
|
|
|
|
* Acts like callerid_generate except uses an asterisk format callerid string.
|
|
|
|
*/
|
2006-06-06 01:22:47 +00:00
|
|
|
int ast_callerid_generate(unsigned char *buf, const char *name, const char *number, int codec);
|
2002-11-29 16:43:28 +00:00
|
|
|
|
2005-11-06 15:09:47 +00:00
|
|
|
/*! \brief Generate message waiting indicator (stutter tone) */
|
2006-03-31 10:06:42 +00:00
|
|
|
int vmwi_generate(unsigned char *buf, int active, int mdmf, int codec);
|
2001-03-06 17:32:03 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
/*! \brief Generate Caller-ID spill but in a format suitable for Call Waiting(tm)'s Caller*ID(tm)
|
2005-11-06 15:09:47 +00:00
|
|
|
* See ast_callerid_generate() for other details
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2006-06-06 01:22:47 +00:00
|
|
|
int ast_callerid_callwaiting_generate(unsigned char *buf, const char *name, const char *number, int codec);
|
2001-04-17 04:40:57 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
/*! \brief Destructively parse inbuf into name and location (or number)
|
2005-11-06 15:09:47 +00:00
|
|
|
* Parses callerid stream from inbuf and changes into useable form, outputed in name and location.
|
2005-10-26 23:11:36 +00:00
|
|
|
* \param instr buffer of callerid stream (in audio form) to be parsed. Warning, data in buffer is changed.
|
2001-12-20 15:21:47 +00:00
|
|
|
* \param name address of a pointer-to-char for the name value of the stream.
|
|
|
|
* \param location address of a pointer-to-char for the phone number value of the stream.
|
2005-11-06 15:09:47 +00:00
|
|
|
* \return Returns 0 on success, -1 on failure.
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
int ast_callerid_parse(char *instr, char **name, char **location);
|
2001-12-20 15:21:47 +00:00
|
|
|
|
2005-01-15 23:48:12 +00:00
|
|
|
/*! Generate a CAS (CPE Alert Signal) tone for 'n' samples */
|
2001-12-20 15:21:47 +00:00
|
|
|
/*!
|
|
|
|
* \param outbuf Allocated buffer for data. Must be at least 2400 bytes unless no SAS is desired
|
|
|
|
* \param sas Non-zero if CAS should be preceeded by SAS
|
|
|
|
* \param len How many samples to generate.
|
2002-11-29 16:43:28 +00:00
|
|
|
* \param codec Which codec (AST_FORMAT_ALAW or AST_FORMAT_ULAW)
|
2005-11-06 15:09:47 +00:00
|
|
|
* \return Returns -1 on error (if len is less than 2400), 0 on success.
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
int ast_gen_cas(unsigned char *outbuf, int sas, int len, int codec);
|
2001-04-17 04:40:57 +00:00
|
|
|
|
2005-11-06 15:09:47 +00:00
|
|
|
/*! \brief Shrink a phone number in place to just digits (more accurately it just removes ()'s, .'s, and -'s... */
|
2001-12-20 15:21:47 +00:00
|
|
|
/*!
|
|
|
|
* \param n The number to be stripped/shrunk
|
2005-11-06 15:09:47 +00:00
|
|
|
* \return Returns nothing important
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
void ast_shrink_phone_number(char *n);
|
2001-03-06 17:32:03 +00:00
|
|
|
|
2006-03-30 04:16:38 +00:00
|
|
|
/*! \brief Check if a string consists only of digits and + \#
|
2005-11-06 15:09:47 +00:00
|
|
|
\param n number to be checked.
|
|
|
|
\return Returns 0 if n is a number, 1 if it's not.
|
2001-12-20 15:21:47 +00:00
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
int ast_isphonenumber(const char *n);
|
2006-03-30 04:16:38 +00:00
|
|
|
|
|
|
|
/*! \brief Check if a string consists only of digits and and + \# ( ) - .
|
|
|
|
(meaning it can be cleaned with ast_shrink_phone_number)
|
|
|
|
\param exten The extension (or URI) to be checked.
|
|
|
|
\return Returns 0 if n is a number, 1 if it's not.
|
|
|
|
*/
|
2006-03-31 10:06:42 +00:00
|
|
|
int ast_is_shrinkable_phonenumber(const char *exten);
|
2001-12-20 15:21:47 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
int ast_callerid_split(const char *src, char *name, int namelen, char *num, int numlen);
|
2004-10-02 00:58:31 +00:00
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
char *ast_callerid_merge(char *buf, int bufsiz, const char *name, const char *num, const char *unknown);
|
2001-12-20 15:21:47 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Caller*ID and other GR-30 compatible generation
|
|
|
|
* routines (used by ADSI for example)
|
|
|
|
*/
|
|
|
|
|
2002-01-17 14:37:17 +00:00
|
|
|
extern float cid_dr[4];
|
|
|
|
extern float cid_di[4];
|
2001-12-20 15:21:47 +00:00
|
|
|
extern float clidsb;
|
|
|
|
|
|
|
|
static inline float callerid_getcarrier(float *cr, float *ci, int bit)
|
|
|
|
{
|
|
|
|
/* Move along. There's nothing to see here... */
|
|
|
|
float t;
|
2002-01-17 14:37:17 +00:00
|
|
|
t = *cr * cid_dr[bit] - *ci * cid_di[bit];
|
|
|
|
*ci = *cr * cid_di[bit] + *ci * cid_dr[bit];
|
2001-12-20 15:21:47 +00:00
|
|
|
*cr = t;
|
2006-03-31 10:06:42 +00:00
|
|
|
|
2001-12-20 15:21:47 +00:00
|
|
|
t = 2.0 - (*cr * *cr + *ci * *ci);
|
|
|
|
*cr *= t;
|
|
|
|
*ci *= t;
|
|
|
|
return *cr;
|
2006-03-31 10:06:42 +00:00
|
|
|
}
|
2001-12-20 15:21:47 +00:00
|
|
|
|
|
|
|
#define PUT_BYTE(a) do { \
|
|
|
|
*(buf++) = (a); \
|
|
|
|
bytes++; \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
#define PUT_AUDIO_SAMPLE(y) do { \
|
|
|
|
int index = (short)(rint(8192.0 * (y))); \
|
2002-11-29 16:43:28 +00:00
|
|
|
*(buf++) = AST_LIN2X(index); \
|
2001-12-20 15:21:47 +00:00
|
|
|
bytes++; \
|
|
|
|
} while(0)
|
2006-03-31 10:06:42 +00:00
|
|
|
|
2001-12-20 15:21:47 +00:00
|
|
|
#define PUT_CLID_MARKMS do { \
|
|
|
|
int x; \
|
|
|
|
for (x=0;x<8;x++) \
|
|
|
|
PUT_AUDIO_SAMPLE(callerid_getcarrier(&cr, &ci, 1)); \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
#define PUT_CLID_BAUD(bit) do { \
|
|
|
|
while(scont < clidsb) { \
|
|
|
|
PUT_AUDIO_SAMPLE(callerid_getcarrier(&cr, &ci, bit)); \
|
|
|
|
scont += 1.0; \
|
|
|
|
} \
|
|
|
|
scont -= clidsb; \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
|
|
|
|
#define PUT_CLID(byte) do { \
|
|
|
|
int z; \
|
|
|
|
unsigned char b = (byte); \
|
|
|
|
PUT_CLID_BAUD(0); /* Start bit */ \
|
|
|
|
for (z=0;z<8;z++) { \
|
|
|
|
PUT_CLID_BAUD(b & 1); \
|
|
|
|
b >>= 1; \
|
|
|
|
} \
|
|
|
|
PUT_CLID_BAUD(1); /* Stop bit */ \
|
2006-03-31 10:06:42 +00:00
|
|
|
} while(0)
|
2001-12-20 15:21:47 +00:00
|
|
|
|
2005-02-26 07:34:09 +00:00
|
|
|
/* Various defines and bits for handling PRI- and SS7-type restriction */
|
|
|
|
|
|
|
|
#define AST_PRES_NUMBER_TYPE 0x03
|
|
|
|
#define AST_PRES_USER_NUMBER_UNSCREENED 0x00
|
|
|
|
#define AST_PRES_USER_NUMBER_PASSED_SCREEN 0x01
|
|
|
|
#define AST_PRES_USER_NUMBER_FAILED_SCREEN 0x02
|
|
|
|
#define AST_PRES_NETWORK_NUMBER 0x03
|
|
|
|
|
|
|
|
#define AST_PRES_RESTRICTION 0x60
|
|
|
|
#define AST_PRES_ALLOWED 0x00
|
|
|
|
#define AST_PRES_RESTRICTED 0x20
|
|
|
|
#define AST_PRES_UNAVAILABLE 0x40
|
|
|
|
#define AST_PRES_RESERVED 0x60
|
|
|
|
|
|
|
|
#define AST_PRES_ALLOWED_USER_NUMBER_NOT_SCREENED \
|
|
|
|
AST_PRES_USER_NUMBER_UNSCREENED + AST_PRES_ALLOWED
|
|
|
|
|
|
|
|
#define AST_PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN \
|
|
|
|
AST_PRES_USER_NUMBER_PASSED_SCREEN + AST_PRES_ALLOWED
|
|
|
|
|
|
|
|
#define AST_PRES_ALLOWED_USER_NUMBER_FAILED_SCREEN \
|
|
|
|
AST_PRES_USER_NUMBER_FAILED_SCREEN + AST_PRES_ALLOWED
|
|
|
|
|
|
|
|
#define AST_PRES_ALLOWED_NETWORK_NUMBER \
|
|
|
|
AST_PRES_NETWORK_NUMBER + AST_PRES_ALLOWED
|
|
|
|
|
|
|
|
#define AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED \
|
|
|
|
AST_PRES_USER_NUMBER_UNSCREENED + AST_PRES_RESTRICTED
|
|
|
|
|
|
|
|
#define AST_PRES_PROHIB_USER_NUMBER_PASSED_SCREEN \
|
|
|
|
AST_PRES_USER_NUMBER_PASSED_SCREEN + AST_PRES_RESTRICTED
|
|
|
|
|
|
|
|
#define AST_PRES_PROHIB_USER_NUMBER_FAILED_SCREEN \
|
|
|
|
AST_PRES_USER_NUMBER_FAILED_SCREEN + AST_PRES_RESTRICTED
|
|
|
|
|
|
|
|
#define AST_PRES_PROHIB_NETWORK_NUMBER \
|
|
|
|
AST_PRES_NETWORK_NUMBER + AST_PRES_RESTRICTED
|
|
|
|
|
|
|
|
#define AST_PRES_NUMBER_NOT_AVAILABLE \
|
|
|
|
AST_PRES_NETWORK_NUMBER + AST_PRES_UNAVAILABLE
|
|
|
|
|
|
|
|
int ast_parse_caller_presentation(const char *data);
|
|
|
|
const char *ast_describe_caller_presentation(int data);
|
2001-12-20 15:21:47 +00:00
|
|
|
|
2005-11-06 15:09:47 +00:00
|
|
|
/*! \page Def_CallerPres Caller ID Presentation
|
|
|
|
|
2006-03-31 10:06:42 +00:00
|
|
|
Caller ID presentation values are used to set properties to a
|
2005-11-06 15:09:47 +00:00
|
|
|
caller ID in PSTN networks, and as RPID value in SIP transactions.
|
|
|
|
|
|
|
|
The following values are available to use:
|
|
|
|
\arg \b Defined value, text string in config file, explanation
|
|
|
|
|
|
|
|
\arg \b AST_PRES_ALLOWED_USER_NUMBER_NOT_SCREENED, "allowed_not_screened", Presentation Allowed, Not Screened,
|
|
|
|
\arg \b AST_PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN, "allowed_passed_screen", Presentation Allowed, Passed Screen,
|
|
|
|
\arg \b AST_PRES_ALLOWED_USER_NUMBER_FAILED_SCREEN, "allowed_failed_screen", Presentation Allowed, Failed Screen,
|
|
|
|
\arg \b AST_PRES_ALLOWED_NETWORK_NUMBER, "allowed", Presentation Allowed, Network Number,
|
|
|
|
\arg \b AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED, "prohib_not_screened", Presentation Prohibited, Not Screened,
|
|
|
|
\arg \b AST_PRES_PROHIB_USER_NUMBER_PASSED_SCREEN, "prohib_passed_screen", Presentation Prohibited, Passed Screen,
|
|
|
|
\arg \b AST_PRES_PROHIB_USER_NUMBER_FAILED_SCREEN, "prohib_failed_screen", Presentation Prohibited, Failed Screen,
|
|
|
|
\arg \b AST_PRES_PROHIB_NETWORK_NUMBER, "prohib", Presentation Prohibited, Network Number,
|
|
|
|
|
|
|
|
\par References
|
|
|
|
\arg \ref callerid.h Definitions
|
|
|
|
\arg \ref callerid.c Functions
|
2006-03-29 04:42:07 +00:00
|
|
|
\arg \ref CID Caller ID names and numbers
|
2005-11-06 15:09:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2005-08-30 18:32:10 +00:00
|
|
|
#endif /* _ASTERISK_CALLERID_H */
|