unprotect these interfaces when done

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10393 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-11-14 01:00:02 +00:00
parent a2dc540831
commit 01a9438332
2 changed files with 9 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}