diff --git a/src/mod/endpoints/mod_exosip/mod_exosip.c b/src/mod/endpoints/mod_exosip/mod_exosip.c index 43b0955830..a2efe4da9c 100644 --- a/src/mod/endpoints/mod_exosip/mod_exosip.c +++ b/src/mod/endpoints/mod_exosip/mod_exosip.c @@ -579,6 +579,7 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram } if (globals.supress_telephony_events && payload != tech_pvt->payload_num) { + switch_yield(1000); continue; } @@ -592,7 +593,7 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram break; } - switch_yield(100); + switch_yield(1000); } } else { diff --git a/src/switch_ivr.c b/src/switch_ivr.c index f7219f7a22..a1d1974cf5 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -772,6 +772,7 @@ static void *audio_bridge_thread(switch_thread *thread, void *obj) data->running = -1; } + switch_yield(1000); } //switch_channel_hangup(chan_b); data->running = 0;