mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 19:24:14 +00:00
add new execute_extension application to execute another extension in the current scope
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4993 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b1d3ae83ab
commit
b5a10d5a14
8 files changed
+182
-30
No files matched your search
@@ -519,10 +519,9 @@ static switch_status_t enum_lookup(char *root, char *in, enum_record_t ** result
|
||||
}
|
||||
|
||||
|
||||
static switch_caller_extension_t *enum_dialplan_hunt(switch_core_session_t *session, void *arg)
|
||||
static switch_caller_extension_t *enum_dialplan_hunt(switch_core_session_t *session, void *arg, switch_caller_profile_t *caller_profile)
|
||||
{
|
||||
switch_caller_extension_t *extension = NULL;
|
||||
switch_caller_profile_t *caller_profile;
|
||||
enum_record_t *results, *rp;
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
enum_route_t *rtp;
|
||||
@@ -530,7 +529,9 @@ static switch_caller_extension_t *enum_dialplan_hunt(switch_core_session_t *sess
|
||||
|
||||
assert(channel != NULL);
|
||||
|
||||
caller_profile = switch_channel_get_caller_profile(channel);
|
||||
if (!caller_profile) {
|
||||
caller_profile = switch_channel_get_caller_profile(channel);
|
||||
}
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "ENUM Lookup on %s\n", caller_profile->destination_number);
|
||||
|
||||
|
||||
Reference in new issue
Block a user