summaryrefslogtreecommitdiffstats
path: root/endpoint.cpp
diff options
context:
space:
mode:
authorSuper User2007-05-09 07:39:20 +0200
committerSuper User2007-05-09 07:39:20 +0200
commit559ff64e3062b70f27ddceba825f40642a6c5725 (patch)
tree5d1fcfb704616da846db41ec7985b84a32e0bfd1 /endpoint.cpp
parentonly for backup, still in coding state - no compile!!! (diff)
downloadlcr-559ff64e3062b70f27ddceba825f40642a6c5725.tar.gz
lcr-559ff64e3062b70f27ddceba825f40642a6c5725.tar.xz
lcr-559ff64e3062b70f27ddceba825f40642a6c5725.zip
backup work
Diffstat (limited to 'endpoint.cpp')
-rw-r--r--endpoint.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/endpoint.cpp b/endpoint.cpp
index 3f67f41..39cba95 100644
--- a/endpoint.cpp
+++ b/endpoint.cpp
@@ -43,6 +43,7 @@ Endpoint::Endpoint(int port_id, int call_id)
{
class Port *port;
class Endpoint **epointpointer;
+ int earlyb = 0;
/* epoint structure */
PDEBUG(DEBUG_EPOINT, "EPOINT(%d): Allocating enpoint %d and connecting it with:%s%s\n", epoint_serial, epoint_serial, (port_id)?" ioport":"", (call_id)?" call":"");
@@ -66,10 +67,14 @@ Endpoint::Endpoint(int port_id, int call_id)
{
port = find_port_id(port_id);
if (port)
- if (!portlist_new(port_id, port->p_type))
{
- PERROR("no mem for portlist, exitting...\n");
- exit(-1);
+ if ((port->p_type&PORT_CLASS_mISDN_MASK) == PORT_CLASS_mISDN_DSS1)
+ earlyb = port->mISDNport->is_earlyb;
+ if (!portlist_new(port_id, port->p_type, earlyb))
+ {
+ PERROR("no mem for portlist, exitting...\n");
+ exit(-1);
+ }
}
}
ep_call_id = call_id;
@@ -140,7 +145,7 @@ Endpoint::~Endpoint(void)
/* create new portlist relation
*/
-struct port_list *Endpoint::portlist_new(unsigned long port_id, int port_type)
+struct port_list *Endpoint::portlist_new(unsigned long port_id, int port_type, int earlyb)
{
struct port_list *portlist, **portlistpointer;
@@ -165,6 +170,7 @@ struct port_list *Endpoint::portlist_new(unsigned long port_id, int port_type)
/* link to call or port */
portlist->port_id = port_id;
portlist->port_type = port_type;
+ portlist->earlyb = earlyb;
return(portlist);
}