diff --git a/src/mod/endpoints/mod_iax/mod_iax.c b/src/mod/endpoints/mod_iax/mod_iax.c index 186dea3e94..4acde49b6e 100644 --- a/src/mod/endpoints/mod_iax/mod_iax.c +++ b/src/mod/endpoints/mod_iax/mod_iax.c @@ -767,6 +767,7 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s { if (tech_pvt->iax_session) { iax_reject(tech_pvt->iax_session, msg->string_arg ? msg->string_arg : "Call Rejected"); + switch_set_flag(tech_pvt, TFLAG_HANGUP); } } break;