--- asterisk-driver/chan_oh323.c.orig 2008-03-20 16:49:39.000000000 +0200 +++ asterisk-driver/chan_oh323.c 2008-03-20 18:29:13.000000000 +0200 @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -43,6 +44,7 @@ #include #include #include +#include #include #include @@ -954,8 +956,8 @@ static void oh323_format2codecset(int, int *, int); static int context_from_alias(char *, char **); static int context_from_prefix(char *, char **); -static int oh323_release(void *); -static int oh323_exec_request(void *data); +static int oh323_release(const void *); +static int oh323_exec_request(const void *data); static struct oh323_ep *find_oh323_ep(char *epname, char *host, char *user); void oh323_atexit(void); unsigned int generate_uid(void); @@ -4110,7 +4112,7 @@ /******************************************************************************/ /* Monitoring thread and queue call-back functions ****************************/ -static int oh323_exec_request(void *data) +static int oh323_exec_request(const void *data) { struct request_oh323 *e; int res, i; @@ -4217,7 +4219,7 @@ return(0); } -static int oh323_release(void *data) +static int oh323_release(const void *data) { struct chan_oh323_pvt *pvt = (struct chan_oh323_pvt *)data; int index; @@ -4240,7 +4242,7 @@ return(0); } -static int oh323_gk_check(void *data) +static int oh323_gk_check(const void *data) { char gkname[256]; @@ -4443,7 +4445,7 @@ return(-1); } } - monitor_thread = -2; + monitor_thread = AST_PTHREADT_STOP; } else { ast_log(LOG_WARNING, "Unable to lock the monitor.\n"); return(-1);