1 /*****************************************************************************\
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg **
10 \*****************************************************************************/
12 /* answerin machine port class */
13 class VBoxPort : public Port
16 VBoxPort(int type, struct port_settings *settings);
18 int message_epoint(unsigned long epoint_id, int message, union parameter *param);
22 struct EndpointAppPBX *p_vbox_apppbx; /* pbx application */
23 unsigned long p_vbox_timeout; /* timeout for recording */
24 char p_vbox_extension[32]; /* current extension */
26 // int p_vbox_recording; /* if currently recording */
27 int p_vbox_announce_fh; /* the announcement filehandler */
28 int p_vbox_announce_codec; /* the announcement codec */
29 signed long p_vbox_announce_left; /* the number of bytes left of announcement sample */
30 signed long p_vbox_announce_size; /* size of current announcement (in bytes) */
31 int p_vbox_mode; /* type of recording VBOX_MODE_* */
32 double p_vbox_audio_start; /* time stamp of starting of audio (<1 == not yet started) */
33 unsigned long p_vbox_audio_transferred; /* number of samples sent to endpoint */
34 signed long p_vbox_record_start; /* start for recording */
35 signed long p_vbox_record_limit; /* limit for recording */