X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=call.cpp;h=38f6b19cc6893385d82f469f6988846e649d4d4b;hp=a566080853d668edb2e158e3927cfc46b03bdd83;hb=ef3fc1931a2fa82f482d21fb1296735206463d3a;hpb=2746009aca7e00678ad6f5f64da8b208ab635d60 diff --git a/call.cpp b/call.cpp index a566080..38f6b19 100644 --- a/call.cpp +++ b/call.cpp @@ -51,15 +51,10 @@ class Call *find_call_id(unsigned long call_id) /* * constructor for a new call */ -Call::Call(class Endpoint *epoint) +Call::Call(void) { class Call **callp; - if (!epoint) - { - PERROR("software error, epoint is NULL.\n"); - exit(-1); - } c_serial = call_serial++; c_type = CALL_TYPE_NONE; @@ -93,10 +88,7 @@ Call::~Call() cl = cl->next; } if (!cl) - { - PERROR("software error, call not in chain! exitting\n"); - exit(-1); - } + FATAL("software error, call not in chain!\n"); *clp = cl->next; /* detach from chain */ } @@ -119,10 +111,6 @@ int Call::handler(void) return(0); } -void Call::release(unsigned long epoint_id, int hold, int location, int cause) -{ -} - /* free all call structures */ void call_free(void) {