2007-03-10 14:23:20 +00:00
|
|
|
/*
|
2007-04-15 19:39:49 +00:00
|
|
|
* An implementation of Common ISDN API 2.0 for Asterisk
|
2007-03-10 14:23:20 +00:00
|
|
|
*
|
2008-02-05 11:16:25 +00:00
|
|
|
* Copyright (C) 2005-2008 Cytronics & Melware
|
2007-03-10 14:23:20 +00:00
|
|
|
* Copyright (C) 2007 Mario Goegel
|
|
|
|
*
|
|
|
|
* Armin Schindler <armin@melware.de>
|
|
|
|
* Mario Goegel <m.goegel@gmx.de>
|
|
|
|
*
|
|
|
|
* This program is free software and may be modified and
|
|
|
|
* distributed under the terms of the GNU Public License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Decoding of addressing-data-elements from asn1-97
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PBX_QSIG_ASN197ADE_H
|
|
|
|
#define PBX_QSIG_ASN197ADE_H
|
|
|
|
|
|
|
|
#define ASN197ADE_NUMDIGITS_STRSIZE 20
|
|
|
|
|
2007-06-07 19:24:32 +00:00
|
|
|
struct asn197ade_numberscreened {
|
2007-06-12 20:02:36 +00:00
|
|
|
char *partyNumber;
|
2007-06-09 08:53:42 +00:00
|
|
|
enum {
|
|
|
|
userProvidedNotScreened,
|
|
|
|
userProvidedVerifiedAndPassed,
|
|
|
|
userProvidedVerifiedAndFailed,
|
|
|
|
networkProvided
|
|
|
|
} screeningInd;
|
2007-06-07 19:24:32 +00:00
|
|
|
};
|
|
|
|
|
2007-03-11 11:12:47 +00:00
|
|
|
extern unsigned int cc_qsig_asn197ade_get_partynumber(char *buf, int buflen, int *idx, unsigned char *data);
|
|
|
|
extern unsigned int cc_qsig_asn197ade_get_numdigits(char *buf, int buflen, int *idx, unsigned char *data);
|
2007-03-10 14:23:20 +00:00
|
|
|
|
2007-03-28 19:24:55 +00:00
|
|
|
extern unsigned int cc_qsig_asn197ade_add_numdigits(char *buf, int buflen, int *idx, unsigned char *data);
|
|
|
|
|
2007-06-12 20:02:36 +00:00
|
|
|
extern unsigned int cc_qsig_asn197ade_get_pns(unsigned char *data, int *idx, struct asn197ade_numberscreened *ns);
|
|
|
|
|
2007-03-10 14:23:20 +00:00
|
|
|
#endif
|