mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8868 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f1450d3a9a
commit
ae55323420
@ -330,6 +330,10 @@ static switch_caller_extension_t *parse_dp(FILE *input, switch_core_session_t *s
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (nv == 0) {
|
if (nv == 0) {
|
||||||
|
if (!strcasecmp(scalar_data, "exit")) {
|
||||||
|
yaml_event_delete(&event);
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
switch_set_string(name, scalar_data);
|
switch_set_string(name, scalar_data);
|
||||||
nv++;
|
nv++;
|
||||||
} else {
|
} else {
|
||||||
@ -340,10 +344,6 @@ static switch_caller_extension_t *parse_dp(FILE *input, switch_core_session_t *s
|
|||||||
char *substituted = NULL;
|
char *substituted = NULL;
|
||||||
char *app_data;
|
char *app_data;
|
||||||
|
|
||||||
if (!strcasecmp(name, "exit")) {
|
|
||||||
yaml_event_delete(&event);
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!extension) {
|
if (!extension) {
|
||||||
extension = switch_caller_extension_new(session, "YAML", caller_profile->destination_number);
|
extension = switch_caller_extension_new(session, "YAML", caller_profile->destination_number);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user