Adding negotiation of speech codecs between GSM and SIP when using rtp-bridge
[lcr.git] / interface.h
index ea9cbad..cf1b192 100644 (file)
@@ -89,6 +89,8 @@ struct interface_screen {
 struct interface {
        struct interface        *next;
        char                    name[64]; /* name of interface */
+       int                     app; /* application to use for interface (0 = PBX) */
+       char                    bridge_if[64]; /* name of destination interface for bridge application */
        int                     external; /* interface used for external calls */
        int                     extension; /* calls are handled as extension */
        int                     is_tones; /* generate tones */
@@ -106,6 +108,10 @@ struct interface {
        int                     bf_len; /* filter length of blowfish */
 #ifdef WITH_GSM_BS
        int                     gsm_bs; /* interface is an GSM BS interface */
+#if 0
+       int                     gsm_bs_payloads;
+       unsigned char           gsm_bs_payload_types[8];
+#endif
 #endif
 #ifdef WITH_GSM_MS
        int                     gsm_ms; /* interface is an GSM MS interface */
@@ -136,7 +142,8 @@ extern char interface_error[256];
 struct interface *read_interfaces(void);
 void free_interfaces(struct interface *interface_start);
 void relink_interfaces(void);
-void load_port(struct interface_port *ifport);
+void load_mISDN_port(struct interface_port *ifport);
 void doc_interface(void);
 void do_screen(int out, char *id, int idsize, int *type, int *present, const char *interface_name);
+struct interface *getinterfacebyname(const char *name);