diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2c4eb1642d..9e0b0665ca 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11342,7 +11342,7 @@ static int restart_monitor(void) pthread_kill(monitor_thread, SIGURG); } else { /* Start a new monitor */ - if (ast_pthread_create(&monitor_thread, &attr, do_monitor, NULL) < 0) { + if (ast_pthread_create(&monitor_thread, NULL, do_monitor, NULL) < 0) { ast_mutex_unlock(&monlock); ast_log(LOG_ERROR, "Unable to start monitor thread.\n"); return -1;