if (switch_test_flag(frame, SFF_CNG) ||
(switch_test_flag(tech_pvt, TFLAG_BOWOUT) && switch_test_flag(tech_pvt, TFLAG_BOWOUT_USED))) {
switch_core_timer_sync(&tech_pvt->timer);
- switch_core_timer_sync(&tech_pvt->other_tech_pvt->timer);
+ if (tech_pvt->other_tech_pvt) switch_core_timer_sync(&tech_pvt->other_tech_pvt->timer);
return SWITCH_STATUS_SUCCESS;
}
done = 1;
switch_set_flag(tech_pvt, TFLAG_CLEAR);
- switch_set_flag(tech_pvt->other_tech_pvt, TFLAG_CLEAR);
+ if (tech_pvt->other_tech_pvt) switch_set_flag(tech_pvt->other_tech_pvt, TFLAG_CLEAR);
switch_core_timer_sync(&tech_pvt->timer);
- switch_core_timer_sync(&tech_pvt->other_tech_pvt->timer);
+ if (tech_pvt->other_tech_pvt) switch_core_timer_sync(&tech_pvt->other_tech_pvt->timer);
}
break;
default: