mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
refactor
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12989 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1447,19 +1447,17 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
|
||||
session->stack_count++;
|
||||
|
||||
new_profile = switch_caller_profile_clone(session, profile);
|
||||
new_profile->destination_number = switch_core_session_strdup(session, exten);
|
||||
new_profile->destination_number = switch_core_strdup(new_profile->pool, exten);
|
||||
|
||||
if (!switch_strlen_zero(dialplan)) {
|
||||
new_profile->dialplan = switch_core_session_strdup(session, dialplan);
|
||||
new_profile->dialplan = switch_core_strdup(new_profile->pool, dialplan);
|
||||
}
|
||||
|
||||
if (!switch_strlen_zero(context)) {
|
||||
new_profile->context = switch_core_session_strdup(session, context);
|
||||
new_profile->context = switch_core_strdup(new_profile->pool, context);
|
||||
}
|
||||
|
||||
if (!(dpstr = switch_core_session_strdup(session, new_profile->dialplan))) {
|
||||
abort();
|
||||
}
|
||||
dpstr = switch_core_session_strdup(session, new_profile->dialplan);
|
||||
|
||||
argc = switch_separate_string(dpstr, ',', dp, (sizeof(dp) / sizeof(dp[0])));
|
||||
for (x = 0; x < argc; x++) {
|
||||
|
||||
Reference in New Issue
Block a user