diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 0b73da41d3..2d0c8a8e4f 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1956,6 +1956,8 @@ static switch_call_cause_t error_outgoing_channel(switch_core_session_t *session cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER; } + UNPROTECT_INTERFACE(error_endpoint_interface); + return cause; } @@ -2116,6 +2118,8 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, done: + UNPROTECT_INTERFACE(user_endpoint_interface); + if (xml) { switch_xml_free(xml); } diff --git a/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c b/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c index 3092001c64..163cf995fc 100644 --- a/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c +++ b/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c @@ -318,6 +318,9 @@ static switch_call_cause_t sip_outgoing_channel(switch_core_session_t *session, } outbound_profile->destination_number = switch_core_sprintf(outbound_profile->pool, "%s/%s", profile, outbound_profile->destination_number); + + UNPROTECT_INTERFACE(sip_endpoint_interface); + return switch_core_session_outgoing_channel(session, var_event, "sofia", outbound_profile, new_session, pool, SOF_NONE); } @@ -337,6 +340,8 @@ static switch_call_cause_t iax2_outgoing_channel(switch_core_session_t *session, switch_caller_profile_t *outbound_profile, switch_core_session_t **new_session, switch_memory_pool_t **pool, switch_originate_flag_t flags) { + UNPROTECT_INTERFACE(iax2_endpoint_interface); + return switch_core_session_outgoing_channel(session, var_event, "iax", outbound_profile, new_session, pool, SOF_NONE); }