** **
\*****************************************************************************/
+/* maximum number of redial/powerdial and reply numbers to remember
+ */
+#define MAX_REMEMBER 99
+
/* display of callerid on internal numbers */
enum {
DISPLAY_CID_ABBREV_NUMBER, /* "05 5551212" */
DISPLAY_CID_ABBREV_NAME, /* "05 Axel" */
DISPLAY_CID_ABBREV_NUMBER_NAME, /* "05 5551212 Axel" */
- DISPLAY_CID_ABBREV_NAME_NUMBER, /* "05 Axel 5551212" */
+ DISPLAY_CID_ABBREV_NAME_NUMBER /* "05 Axel 5551212" */
};
enum {
DISPLAY_CID_INTERNAL_OFF, /* "20" */
- DISPLAY_CID_INTERNAL_ON, /* "Intern 20" */
+ DISPLAY_CID_INTERNAL_ON /* "Intern 20" */
};
/* display of clear causes using display messages */
DISPLAY_CAUSE_GERMAN, /* "34 - kein Kanal" */
DISPLAY_LOCATION_ENGLISH, /* "34 - Network (Remote)" */
DISPLAY_LOCATION_GERMAN, /* "34 - Vermittlung (Gegenstelle)" */
- DISPLAY_CAUSE_NUMBER, /* "Cause 34" */
+ DISPLAY_CAUSE_NUMBER /* "Cause 34" */
};
/* clip */
enum {
CLIP_ASIS, /* use colp as presented by caller */
- CLIP_HIDE, /* use extension's caller id */
+ CLIP_HIDE /* use extension's caller id */
};
/* colp */
enum {
COLP_ASIS, /* use colp as presented by called */
COLP_HIDE, /* use extension's caller id */
- COLP_FORCE, /* use colp even if called dosn't provide or allow */
+ COLP_FORCE /* use colp even if called dosn't provide or allow */
};
/* codec to use */
CODEC_MONO, /* record wave mono */
CODEC_STEREO, /* record wave stereo */
CODEC_8BIT, /* record wave mono 8bit */
- CODEC_LAW, /* record LAW */
+ CODEC_LAW /* record LAW */
};
/* VBOX mode */
enum {
VBOX_MODE_NORMAL, /* normal mode: send announcement, then record */
VBOX_MODE_PARALLEL, /* parallel mode: send announcement and record during announcement */
- VBOX_MODE_ANNOUNCEMENT, /* announcement mode: send announcement and disconnect */
+ VBOX_MODE_ANNOUNCEMENT /* announcement mode: send announcement and disconnect */
};
/* VBOX display */
enum {
VBOX_DISPLAY_BRIEF, /* parallel mode: send announcement and record during announcement */
VBOX_DISPLAY_DETAILED, /* announcement mode: send announcement and disconnect */
- VBOX_DISPLAY_OFF, /* normal mode: send announcement, then record */
+ VBOX_DISPLAY_OFF /* normal mode: send announcement, then record */
};
/* VBOX language */
enum {
VBOX_LANGUAGE_ENGLISH, /* display and announcements are in english */
- VBOX_LANGUAGE_GERMAN, /* display and announcements are in german */
+ VBOX_LANGUAGE_GERMAN /* display and announcements are in german */
};
/* dsptones */
DSP_NONE,
DSP_AMERICAN,
DSP_GERMAN,
- DSP_OLDGERMAN,
+ DSP_OLDGERMAN
};
int change_callerid;
int clip; /* how to present caller id on forwarded calls */
int colp; /* how to present called line id on forwarded calls */
- char clip_prefix[32]; /* prefix for screening incomming clip */
+ char clip_prefix[32]; /* prefix for screening incoming clip */
int keypad; /* support keypad for call control */
- int centrex; /* present name of caller/called on internal extension */
int anon_ignore; /* ignore anonymouse calls */
int rights;
int delete_ext; /* delete function for external dialing */
int noknocking; /* deny knocking of incoming call */
char last_out[MAX_REMEMBER][64]; /* numbers to redail */
char last_in[MAX_REMEMBER][64]; /* numbers to reply */
- int txvol;
- int rxvol;
+ int tx_gain;
+ int rx_gain;
int display_cause; /* clear cause using display message */
int display_ext; /* display external caller ids */
int display_int; /* display internal caller ids */
- int display_voip; /* display h323 caller ids */
int display_fake; /* display fake caller ids */
int display_anon; /* display anonymouse caller ids */
int display_menu; /* display menu */
int vbox_email_file; /* set, if also the audio fille will be attached */
int vbox_free; /* if vbox shall connect after announcment */
- int tout_setup;
- int tout_dialing;
- int tout_proceeding;
- int tout_alerting;
- int tout_disconnect;
-// int tout_hold;
-// int tout_park;
int own_setup;
int own_proceeding;
int own_alerting;
int parse_phonebook(char *number, char **abbrev_pointer, char **phone_pointer, char **name_pointer);
int parse_secrets(char *number, char *remote_id, char **auth_pointer, char **crypt_pointer, char **key_pointer);
char *parse_directory(char *number, int type);
+struct caller_info;
int parse_callbackauth(char *number, struct caller_info *callerinfo);
void append_callbackauth(char *number, struct caller_info *callerinfo);