#define CALL_NONE	0
#define CALL_VOICE	1
#define CALL_DATA	2
#define CALL_INCOMING	1
#define CALL_OUTGOING	2

typedef struct {
	int  type;
	int  idirection;
	int  bcount;
	int  remid;
	int  sbrt;
	int  bchan;
	char calltype  [32];
	char direction [32];
	char spname    [64];
	char ip        [64];
	char dns1      [64];
	char dns2      [64];
	char doptions  [128];
	char starttime [64];
	char callup    [32];
	char callidle  [32];
	char rxoctets  [32];
	char txoctets  [32];
	char calling   [32];
	char called    [32];
	char reason    [128];
} callstruct;

extern callstruct *current ;

typedef struct {
	char name [64];
	char stateinfo [64];
	char url[64];
	int state;
	int sbrt ;
} manualstruct;

extern manualstruct manual[];
