mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 02:22:56 +00:00
scope err
This commit is contained in:
parent
1901a41961
commit
b1ec52b024
@ -491,9 +491,11 @@ static switch_status_t parse_playback(const char *tag_name, client_t *client, sw
|
|||||||
|
|
||||||
if (sub_action && client->matching_action_binding && client->matching_action_binding->match_digits) {
|
if (sub_action && client->matching_action_binding && client->matching_action_binding->match_digits) {
|
||||||
if (!strncasecmp(sub_action, "dial:", 5)) {
|
if (!strncasecmp(sub_action, "dial:", 5)) {
|
||||||
|
char *context = NULL;
|
||||||
|
char *dp = NULL;
|
||||||
|
|
||||||
if (client->profile->perms.dial.set_context) {
|
if (client->profile->perms.dial.set_context) {
|
||||||
char *context = switch_core_session_strdup(client->session, sub_action + 5);
|
context = switch_core_session_strdup(client->session, sub_action + 5);
|
||||||
char *dp;
|
|
||||||
|
|
||||||
if ((dp = strchr(context, ':'))) {
|
if ((dp = strchr(context, ':'))) {
|
||||||
*dp++ = '\0';
|
*dp++ = '\0';
|
||||||
@ -501,10 +503,11 @@ static switch_status_t parse_playback(const char *tag_name, client_t *client, sw
|
|||||||
dp = NULL;
|
dp = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch_ivr_session_transfer(client->session, client->matching_action_binding->match_digits, dp, context);
|
switch_ivr_session_transfer(client->session, client->matching_action_binding->match_digits, dp, context);
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
switch_event_add_header_string(client->params, SWITCH_STACK_BOTTOM, "url", sub_action);
|
switch_event_add_header_string(client->params, SWITCH_STACK_BOTTOM, "url", sub_action);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user