X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=interface.h;h=ea9cbadfeea3a48b61fefbf7ae9bc731d401ed77;hp=09e077898485161ba1a07b541c4d031df7941a79;hb=5463e1b62a39ce417b610584e3d34a8bc30ac15e;hpb=ee848d3a9e333b3b91c0e40679c9d0512d511fc2 diff --git a/interface.h b/interface.h index 09e0778..ea9cbad 100644 --- a/interface.h +++ b/interface.h @@ -49,7 +49,11 @@ struct interface_port { int ptmp; /* force load stack in PTP mode */ int nt; /* load stack in NT-mode */ int tespecial; /* special TE-mode behavior */ - int l2hold; /* hold layer 2 (1=force, -1=disable */ + int l1hold; /* hold layer 1 (1=on, 0=off) */ + int l2hold; /* hold layer 2 (1=force, -1=disable, 0=default) */ + unsigned int ss5; /* set, if SS5 signalling enabled, also holds feature bits */ + int remote; /* interface is a remote app interface */ + char remote_app[32]; /* name of remote application */ int channel_force; /* forces channel by protocol */ int nodtmf; /* disables DTMF */ struct select_channel *out_channel; /* list of channels to select */ @@ -62,6 +66,9 @@ struct interface_port { int tout_disconnect; // int tout_hold; // int tout_park; + int dialmax; /* maximum number of digits to dial */ + char tones_dir[128]; + int nonotify; /* blocks outgoing notify messages */ }; struct interface_msn { @@ -82,9 +89,11 @@ struct interface_screen { struct interface { struct interface *next; char name[64]; /* name of interface */ + int external; /* interface used for external calls */ int extension; /* calls are handled as extension */ int is_tones; /* generate tones */ int is_earlyb; /* bridge tones during call setup */ + int shutdown; /* interface will not automatically be loaded */ int hunt; /* select algorithm */ int hunt_next; /* ifport index to start hunt */ struct interface_port *ifport; /* link to interface port list */ @@ -95,6 +104,20 @@ struct interface { char pipeline[256]; /* filter pipeline */ unsigned char bf_key[56]; /* filter blowfish */ int bf_len; /* filter length of blowfish */ +#ifdef WITH_GSM_BS + int gsm_bs; /* interface is an GSM BS interface */ +#endif +#ifdef WITH_GSM_MS + int gsm_ms; /* interface is an GSM MS interface */ + char gsm_ms_name[32]; /* name of ms */ +#endif +#ifdef WITH_SIP + int sip; /* interface is a SIP interface */ + char sip_local_ip[16]; + char sip_remote_ip[16]; + void *sip_inst; /* sip instance */ +#endif + int rtp_bridge; /* bridge RTP directly (for calls comming from interface) */ }; struct interface_param { @@ -115,5 +138,5 @@ void free_interfaces(struct interface *interface_start); void relink_interfaces(void); void load_port(struct interface_port *ifport); void doc_interface(void); -void do_screen(int out, char *id, int idsize, int *type, int *present, struct interface *interface); +void do_screen(int out, char *id, int idsize, int *type, int *present, const char *interface_name);