|
|
|
@ -12987,12 +12987,12 @@ static int dialog_needdestroy(void *dialogobj, void *arg, int flags)
|
|
|
|
|
|
|
|
|
|
/* We absolutely cannot destroy the rtp struct while a bridge is active or we WILL crash */
|
|
|
|
|
if (dialog->rtp && ast_rtp_get_bridged(dialog->rtp)) {
|
|
|
|
|
ast_verbose("Bridge still active. Delaying destroy of SIP dialog '%s' Method: %s\n", dialog->callid, sip_methods[dialog->method].text);
|
|
|
|
|
ast_debug(2, "Bridge still active. Delaying destroy of SIP dialog '%s' Method: %s\n", dialog->callid, sip_methods[dialog->method].text);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (dialog->vrtp && ast_rtp_get_bridged(dialog->vrtp)) {
|
|
|
|
|
ast_verbose("Bridge still active. Delaying destroy of SIP dialog '%s' Method: %s\n", dialog->callid, sip_methods[dialog->method].text);
|
|
|
|
|
ast_debug(2, "Bridge still active. Delaying destroy of SIP dialog '%s' Method: %s\n", dialog->callid, sip_methods[dialog->method].text);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
/* Check RTP timeouts and kill calls if we have a timeout set and do not get RTP */
|
|
|
|
|