--- asterisk/chan_h323.c 2008-08-27 09:33:20.930818500 +0300 +++ asterisk-patched/chan_h323.c 2008-08-27 09:34:21.177732300 +0300 @@ -3298,9 +3298,6 @@ static int unload_module(void) } if (!ast_mutex_lock(&monlock)) { if ((monitor_thread != AST_PTHREADT_STOP) && (monitor_thread != AST_PTHREADT_NULL)) { - /* this causes a seg, anyone know why? */ - if (monitor_thread != pthread_self()) - pthread_cancel(monitor_thread); pthread_kill(monitor_thread, SIGURG); pthread_join(monitor_thread, NULL); }