ast_log(LOG_WARNING, "Cannot allocate new structure on channel %d\n", i->channel);
} else if (ast_pthread_create_detached(&threadid, NULL, analog_ss_thread, chan)) {
ast_log(LOG_WARNING, "Unable to start simple switch thread on channel %d\n", i->channel);
+ ast_hangup(chan);
}
}
ast_callid_threadstorage_auto_clean(callid, callid_created);
res = ast_pthread_create_detached(&threadid, NULL, analog_ss_thread, chan);
if (res) {
ast_log(LOG_WARNING, "Unable to start simple switch thread on channel %d\n", i->channel);
+ ast_hangup(chan);
} else {
i->dtmfcid_holdoff_state = 1;
}
ast_log(LOG_WARNING, "Cannot allocate new structure on channel %d\n", i->channel);
} else if (ast_pthread_create_detached(&threadid, NULL, __analog_ss_thread, i)) {
ast_log(LOG_WARNING, "Unable to start simple switch thread on channel %d\n", i->channel);
+ ast_hangup(chan);
}
}
ast_callid_threadstorage_auto_clean(callid, callid_created);
ast_log(LOG_WARNING, "Cannot allocate new structure on channel %d\n", i->channel);
} else if (ast_pthread_create_detached(&threadid, NULL, __analog_ss_thread, i)) {
ast_log(LOG_WARNING, "Unable to start simple switch thread on channel %d\n", i->channel);
+ ast_hangup(chan);
}
}
ast_callid_threadstorage_auto_clean(callid, callid_created);