mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-07 05:13:32 +00:00
fix issue
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7852 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2c8a689d8b
commit
975fec2222
@ -1000,7 +1000,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
|
|||||||
char *dpstr;
|
char *dpstr;
|
||||||
int argc, x, count = 0;
|
int argc, x, count = 0;
|
||||||
char *expanded = NULL;
|
char *expanded = NULL;
|
||||||
switch_caller_profile_t *profile, *new_profile, *pp;
|
switch_caller_profile_t *profile, *new_profile, *pp = NULL;
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
switch_dialplan_interface_t *dialplan_interface = NULL;
|
switch_dialplan_interface_t *dialplan_interface = NULL;
|
||||||
switch_caller_extension_t *extension = NULL;
|
switch_caller_extension_t *extension = NULL;
|
||||||
@ -1062,12 +1062,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
|
|||||||
|
|
||||||
new_profile->caller_extension = extension;
|
new_profile->caller_extension = extension;
|
||||||
|
|
||||||
for(pp = profile->caller_extension->children; pp && pp->next; pp = pp->next);
|
if (profile->caller_extension) {
|
||||||
|
for(pp = profile->caller_extension->children; pp && pp->next; pp = pp->next);
|
||||||
|
|
||||||
if (pp) {
|
if (pp) {
|
||||||
pp->next = new_profile;
|
pp->next = new_profile;
|
||||||
} else {
|
} else {
|
||||||
profile->caller_extension->children = new_profile;
|
profile->caller_extension->children = new_profile;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (switch_channel_ready(channel) && extension->current_application) {
|
while (switch_channel_ready(channel) && extension->current_application) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user