diff --git a/src/mod/endpoints/mod_exosip/mod_exosip.c b/src/mod/endpoints/mod_exosip/mod_exosip.c index 277f80fadd..f70c6f7c9f 100644 --- a/src/mod/endpoints/mod_exosip/mod_exosip.c +++ b/src/mod/endpoints/mod_exosip/mod_exosip.c @@ -412,12 +412,10 @@ static switch_status exosip_on_hangup(switch_core_session *session) assert(tech_pvt != NULL); deactivate_rtp(tech_pvt); - eXosip_lock(); switch_core_hash_delete(globals.call_hash, tech_pvt->call_id); switch_set_flag(tech_pvt, TFLAG_BYE); switch_clear_flag(tech_pvt, TFLAG_IO); - i = eXosip_call_terminate(tech_pvt->cid, tech_pvt->did); eXosip_unlock(); @@ -426,8 +424,7 @@ static switch_status exosip_on_hangup(switch_core_session *session) switch_core_codec_destroy(&tech_pvt->write_codec); } - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "EXOSIP HANGUP %s %d/%d=%d\n", switch_channel_get_name(channel), - tech_pvt->cid, tech_pvt->did, i); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "EXOSIP HANGUP %s %d/%d=%d\n", switch_channel_get_name(channel), tech_pvt->cid, tech_pvt->did, i); return SWITCH_STATUS_SUCCESS; } diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 1cb97b7249..d76786b10b 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -844,7 +844,7 @@ static const switch_state_handler_table audio_bridge_peer_state_handlers = { /*.on_execute */ NULL, /*.on_hangup */ NULL, /*.on_loopback */ NULL, - /*.on_transmit */ audio_bridge_on_transmit, + /*.on_transmit */ audio_bridge_on_transmit };