Lines 6878-6900
Link Here
|
6878 |
|
6878 |
|
6879 |
manager_show_dialplan_helper(s, m, idtext, context, exten, &counters, NULL); |
6879 |
manager_show_dialplan_helper(s, m, idtext, context, exten, &counters, NULL); |
6880 |
|
6880 |
|
6881 |
if (context && !counters.context_existence) { |
6881 |
if (!ast_strlen_zero(context) && !counters.context_existence) { |
6882 |
char errorbuf[BUFSIZ]; |
6882 |
char errorbuf[BUFSIZ]; |
6883 |
|
6883 |
|
6884 |
snprintf(errorbuf, sizeof(errorbuf), "Did not find context %s", context); |
6884 |
snprintf(errorbuf, sizeof(errorbuf), "Did not find context %s", context); |
6885 |
astman_send_error(s, m, errorbuf); |
6885 |
astman_send_error(s, m, errorbuf); |
6886 |
return 0; |
6886 |
return 0; |
6887 |
} |
6887 |
} |
6888 |
if (exten && !counters.extension_existence) { |
6888 |
if (!ast_strlen_zero(exten) && !counters.extension_existence) { |
6889 |
char errorbuf[BUFSIZ]; |
6889 |
char errorbuf[BUFSIZ]; |
6890 |
|
6890 |
|
6891 |
if (context) |
6891 |
if (!ast_strlen_zero(context)) |
6892 |
snprintf(errorbuf, sizeof(errorbuf), "Did not find extension %s@%s", exten, context); |
6892 |
snprintf(errorbuf, sizeof(errorbuf), "Did not find extension %s@%s", exten, context); |
6893 |
else |
6893 |
else |
6894 |
snprintf(errorbuf, sizeof(errorbuf), "Did not find extension %s in any context", exten); |
6894 |
snprintf(errorbuf, sizeof(errorbuf), "Did not find extension %s in any context", exten); |
6895 |
astman_send_error(s, m, errorbuf); |
6895 |
astman_send_error(s, m, errorbuf); |
6896 |
return 0; |
6896 |
return 0; |
6897 |
} |
6897 |
} |
|
|
6898 |
if (counters.total_items == 0) { |
6899 |
manager_dpsendack(s, m); |
6900 |
} |
6898 |
|
6901 |
|
6899 |
astman_append(s, "Event: ShowDialPlanComplete\r\n" |
6902 |
astman_append(s, "Event: ShowDialPlanComplete\r\n" |
6900 |
"EventList: Complete\r\n" |
6903 |
"EventList: Complete\r\n" |