From 01a94383327da2dfc477039226e0c724810a5211 Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 14 Nov 2008 01:00:02 +0000 Subject: [PATCH] unprotect these interfaces when done git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10393 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_dptools/mod_dptools.c | 4 ++++ .../dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c | 5 +++++ 2 files changed, 9 insertions(+) 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); }