SIP: Fix incoming re-invite
[lcr.git] / endpoint.h
index fb8e8d2..a74da30 100644 (file)
@@ -1,6 +1,6 @@
 /*****************************************************************************\
 **                                                                           **
-** PBX4Linux                                                                 **
+** Linux Call Router                                                         **
 **                                                                           **
 **---------------------------------------------------------------------------**
 ** Copyright: Andreas Eversberg                                              **
@@ -13,7 +13,7 @@
 /* structure of port_list */
 struct port_list {
        struct port_list        *next;
-       unsigned long           port_id;
+       unsigned int            port_id;
        int                     port_type;
        int                     early_b; /* if patterns are available */
 };
@@ -22,25 +22,26 @@ struct port_list {
 class Endpoint
 {
        public:
-       Endpoint(unsigned long port_id, unsigned long call_id, unsigned long use_epoint_id);
+       Endpoint(unsigned int port_id, unsigned int join_id);
        ~Endpoint();
        class Endpoint          *next;          /* next in list */
-       unsigned long           ep_serial;      /* a unique serial to identify */
-       int                     handler(void);
+       unsigned int            ep_serial;      /* a unique serial to identify */
 
        /* applocaton relation */
+       int                     ep_app_type;
        class EndpointApp       *ep_app;                /* link to application class */
 
        /* port relation */
        struct port_list        *ep_portlist;   /* link to list of ports */
-       struct port_list *portlist_new(unsigned long port_id, int port_type, int earlyb);
+       struct port_list *portlist_new(unsigned int port_id, int port_type, int earlyb);
        void free_portlist(struct port_list *portlist);
 
-       /* call relation */
-       unsigned long           ep_call_id;     /* link to call */
+       /* join relation */
+       unsigned int            ep_join_id;     /* link to join */
 
        /* if still used by threads */
        int                     ep_use;
+       struct lcr_work         ep_delete;
 
        /* application indipendant states */
        int                     ep_park;                /* indicates that the epoint is parked */
@@ -50,5 +51,5 @@ class Endpoint
 
 extern class Endpoint *epoint_first;
 
-class Endpoint *find_epoint_id(unsigned long epoint_id);
+class Endpoint *find_epoint_id(unsigned int epoint_id);