mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add hunt_caller_profile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13625 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1526,6 +1526,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
|
||||
|
||||
dpstr = switch_core_session_strdup(session, new_profile->dialplan);
|
||||
|
||||
switch_channel_set_hunt_caller_profile(channel, new_profile);
|
||||
argc = switch_separate_string(dpstr, ',', dp, (sizeof(dp) / sizeof(dp[0])));
|
||||
for (x = 0; x < argc; x++) {
|
||||
char *dpname = dp[x];
|
||||
@@ -1581,6 +1582,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
|
||||
}
|
||||
|
||||
done:
|
||||
switch_channel_set_hunt_caller_profile(channel, NULL);
|
||||
|
||||
session->stack_count--;
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user